Workflow DevKit icon

Workflow DevKit

Workflow DevKit (use workflow) provides a developer-first toolkit to make async JavaScript and TypeScript functions durable, resumable, and observable. It compiles reliability primitives into code so teams can replace ad-hoc queues and cron jobs with declarative workflows that persist state, pause and resume, and automatically retry failed steps. The project is open-source, portable, and designed to run locally, in Docker, on Vercel, or any Node-compatible environment.

  • Durable workflows — Persist workflow state to allow long-running processes to suspend and resume without external queue plumbing; get started by annotating your function with the workflow directive and writing standard async code.
  • Declarative API — Use a simple SDK and familiar JavaScript/TypeScript syntax to define steps and pauses; install via npm and export workflow functions to run them anywhere.
  • Observability — Capture traces, logs, and metrics for every run so you can inspect, pause, replay, and time-travel through workflow executions for debugging and auditing.
  • Automatic retries and reliability — Replace custom retry logic with built-in retry semantics and failure handling directives to reduce operational complexity.
  • Templates and examples — Includes templates (e.g., Slack bot, booking app, image search) and examples to jumpstart production usage and agent workflows.

To get started, install the SDK with npm, create workflow functions using the provided directives, and run them locally or in your cloud environment. Use the included templates to see common patterns (email flows, agent orchestration, multi-day subscriptions) and add integrations as needed.

Discussions

Sam Moore's avatar
Hi everyone, I'm a vibe…

Using workflow-builder.dev for this

I’ve been trying out workflow-builder.dev and here’s the simplest way to describe it: It’s a whiteboard for automations. You drag boxes (triggers, steps, API calls) onto the board, draw lines between them, and when you’re happy with the flow, the tool turns that picture into real TypeScript code tha…

0
agents
workflows

Developer

Vercel is a platform for frontend developers that provides the developer experience, tools, and processes to create high-quality web ap…read more

Pricing and Plans

(Open Source)

Open Source

Free

Open-source library distributed for self-hosting and local development; no commercial limits enforced by the project repository.

  • Full SDK and declarative workflow primitives
  • State persistence and resumable execution
  • Observability (traces, logs, metrics)
  • Templates and example projects

System Requirements

Operating System
Any OS with Node.js support
Memory (RAM)
4 GB+ RAM
Processor
Any modern 64-bit CPU
Disk Space
No local storage required (cloud-based by default)

AI Capabilities

Stateful-execution
Observability
Retry-automation