Steps that survive crashes. SQLite to PostgreSQL.
| Package | Description |
|---|---|
| @coji/durably | Core library - job definitions, steps, and persistence |
| @coji/durably-react | React bindings - hooks for triggering and monitoring jobs |
- Resumable — each step's result is persisted; interrupted jobs resume from the last successful step
- Flexible storage — libSQL/Turso, PostgreSQL, better-sqlite3, or browser OPFS
- Browser + server — same API for Node.js and browsers
- Lease-based recovery — stale workers are automatically reclaimed via fencing tokens
- Auto cleanup —
retainRunsoption purges old completed runs automatically - React hooks — real-time progress via SSE, fullstack and SPA modes
- Type-safe — Zod schemas for input/output, labels, and auth context
pnpm add @coji/durably kysely zod @libsql/client @libsql/kysely-libsqlSee the Quick Start guide, or Choosing a Database for PostgreSQL and other backends.
MIT