Installation
What to install for backend, client, and React.
Pick the layer(s) you need.
Backend
Plus the peer deps:
Database driver — pick one:
Optional, only needed if you enable the matching feature:
React (SPA / Next.js)
Peer dep:
The React package re-exports from the client and contracts, so a single import gets you all three:
Vanilla JS / Vue / Angular
No peer dependencies. Works in Node 18+, modern browsers, React Native, Cloudflare Workers, Deno, Bun.
TypeScript config
The library ships full type definitions. No extra types packages needed.
If you're on module: "nodenext" (Node 20+ ESM), nothing to do. If you're on classic CommonJS, the contracts package supports both.
Versioning
All four packages release together — same version number on the same day. Pin them all to the same version:
Mixing versions across the four packages is not supported.
Next
- Setup Checklist — wiring up
main.ts. - Database Setup — three ways to create the tables.
- Environment & Secrets.