ts-libs: tested TypeScript building blocks for web-standards back ends
Eight framework-agnostic packages built on web standards: ES modules, Fetch, Web Crypto and Streams. Sign-in, Postgres access, SMTP, safe outbound requests, time zones and validation, each with a one-line install. Every package is tested on Deno, the runtime I build with.
Live proof
My SaaS template imports @spy4x/validation, @spy4x/platform and @spy4x/server, and this site encrypts its environment files with @spy4x/server's age64 module. More of the site is moving over to these packages now.
Install
deno add jsr:@spy4x/[email protected]From JSR, pinned to 1.3.0.
8 packages, each installed on its own:
@spy4x/email@spy4x/integrations@spy4x/net@spy4x/platform@spy4x/realtime@spy4x/server@spy4x/time@spy4x/validation
Use it if
- You build TypeScript services on web standards and want sign-in, Postgres access, SMTP or SSRF-safe outbound requests without writing them again.
- You validate data with arktype and want one result shape for it.
- You want small packages you install one at a time, not a framework.
Don't use it if
- You validate with zod and want to keep it: these packages use arktype only.
- You need a package tested on Node or Bun: every package is tested on Deno only.
- You want an app framework: there are no app shells and no UI here.
How it fits with my other repos
What next
Star it or open an issue.
spy4x/ts-libs on GitHubNeed something like this for your team? That's my day job.
Services