vercel/workflow
WORKFLOW SDK: DURABLE TYPESCRIPT FUNCTIONS
SDK for building durable TypeScript functions with persistence, retries, and observability. Runs locally and on Vercel without infrastructure management.
// KEY FEATURES
- Persists progress and automatically retries failed steps
- Built-in observability and CLI debugging UI
- Suspends execution without consuming compute resources
- Local backend out of the box, deploy to Vercel or Postgres
// DEEP DIVE: HOW IT WORKS
Workflow SDK wraps TypeScript functions to make them durable: step state is saved, errors are retried, execution can be suspended without compute costs. Progress is visible in a local web UI via CLI.
No separate dev server required — a bundled backend is used. For production: managed Vercel, self-hosted Postgres, or custom World. Integration is one line in framework config (Next.js example), docs ship inside the package for AI agents.
Requires TS/JS environment and framework for lifecycle hooks (registered at host startup, not inside workflows). Self-hosting needs Postgres. Vulnerabilities must be reported to responsible.disclosure@vercel.com, public issues are prohibited.
// USE CASES
Best for: TypeScript developers building long-running processes and AI agents
- Create multi-step user onboarding with guaranteed execution
- Build AI agents with long external API waits without state loss
- Orchestrate serverless tasks with automatic retries and observability
// QUICK START
npm install workflow
npm run dev
npx workflow webCommands are taken from the repository README — check the current version on GitHub before running.
New repositories every 30 minutes
REDDYX AI scans GitHub 24/7 and ships the best AI/ML/Web3 projects to Telegram.
Join on Telegram