Skip to content

Durability packages

The public avenceslau/durability repository publishes 4 focused npm packages.

PackagePurposeInstall
durabilityDurable operations, named alarms, retries, results, and migrationsnpm install durability
@durability/transformsTyped caller and callee transforms for Cloudflare RPCnpm install @durability/transforms
@durability/lintOxlint rules for alarm delegation and SQLite migrationsnpm install -D oxlint @durability/lint
@durability/storageShared reversible migration typesnpm install @durability/storage

The repository requires Node.js 22 or newer for development. Published runtime packages are ESM and target Cloudflare Workers. @durability/transforms uses optional peers for integrations that need them, including Vite, Wrangler, Better Result, and Cloudflare Worker types.

Each package is versioned independently with Changesets. Pin package versions according to your application’s update policy; do not assume every package in the repository shares one version number.

Clone the public repository and run its complete check:

Terminal window
git clone https://github.com/avenceslau/durability.git
cd durability
pnpm install
pnpm check

Changes to a published package need a Changeset:

Terminal window
pnpm changeset

The test suite includes local Workerd integration tests and does not require Cloudflare credentials.