Skip to content

coji/durably

Repository files navigation

durably

Steps that survive crashes. SQLite to PostgreSQL.

Documentation | Live Demo

Packages

Package Description
@coji/durably Core library - job definitions, steps, and persistence
@coji/durably-react React bindings - hooks for triggering and monitoring jobs

Features

  • 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 cleanupretainRuns option 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

Quick Start

pnpm add @coji/durably kysely zod @libsql/client @libsql/kysely-libsql

See the Quick Start guide, or Choosing a Database for PostgreSQL and other backends.

License

MIT

About

Step-oriented resumable batch execution for Node.js and browsers using SQLite

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors