WorkflowInstallation
Installation
Install @visulima/workflow and learn which parts run on which runtimes
Installation
npm install @visulima/workflowyarn add @visulima/workflowpnpm add @visulima/workflowDependencies
The engine ships with a small, fixed dependency set:
xstate— models the run lifecycle and produces the persisted snapshot.croner— cron/interval math for delays (zero-dependency, edge-safe).@standard-schema/spec— the types-only payload-validation contract.
unstorage is an optional peer, needed only if you use the UnstorageStore.
Runtime support
The engine core and the in-memory / unstorage stores are fetch + Web Crypto only — no node:* — so they run on:
| Runtime | Core + MemoryStore / UnstorageStore | Notes |
|---|---|---|
| Node.js | ✅ | ^22.14.0 || >=24.10.0 |
| Cloudflare Workers | ✅ | back the store with KV / D1 / a Durable Object |
| Vercel Edge | ✅ | back the store with a KV/SQL driver |
| Deno | ✅ | |
| Bun | ✅ |
Node-only durability (Postgres, Redis) lives entirely behind your own
WorkflowStore adapter — the engine itself stays edge-pure.