Welcome to Workflow DevKit
Workflow DevKit lets you easily add durability, reliability, and observability to async JavaScript. Build apps and AI agents that can suspend, resume, and maintain state with ease.Built by engineers at Vercel, Workflow DevKit is designed to integrate seamlessly with modern JavaScript frameworks like Next.js, SvelteKit, Nuxt, and more.
Why Workflow DevKit?
Building reliable async operations in JavaScript is hard. Workflows can fail midway, external APIs can timeout, and maintaining state across retries is complex. Workflow DevKit solves these problems by providing:Durability
Workflows automatically persist their state. If your server crashes or restarts, workflows resume exactly where they left off.
Automatic Retries
Failed steps are automatically retried with configurable backoff strategies. No manual retry logic needed.
Observability
Built-in OpenTelemetry support gives you deep insights into workflow execution, performance, and errors.
Type Safety
Full TypeScript support with intelligent type inference. Catch errors at compile time, not runtime.
Perfect For
Workflow DevKit excels at handling complex async operations:- AI Agents: Build durable AI agents that can pause for external tool calls, wait for user input, or handle long-running LLM operations
- User Onboarding: Create multi-step signup flows with emails, webhooks, and delayed follow-ups
- Data Processing: Orchestrate ETL pipelines, batch jobs, and multi-stage transformations
- API Orchestration: Coordinate calls to multiple external services with proper error handling
- Human-in-the-Loop: Build workflows that pause for manual approval or user action
How It Works
Workflow DevKit uses two simple directives to mark your functions:Key Features
Durable State Management
Workflows persist their execution state after each step. If your application crashes or restarts, workflows resume from the last completed step:Smart Fetch Hoisting
HTTP requests are automatically extracted and made durable. No need to wrap every fetch in a step:Built-in Utilities
Workflow DevKit provides powerful utilities for common patterns:sleep(duration): Pause execution for a specific durationcreateHook(): Create resumable hooks for callbackscreateWebhook(): Generate webhook URLs for external servicesgetWorkflowMetadata(): Access workflow context and run informationgetStepMetadata(): Get step execution details and retry counts
Webhooks and Hooks
Pause workflows and resume them via webhooks or custom callbacks:Framework Support
Workflow DevKit integrates seamlessly with popular JavaScript frameworks:Next.js
Full App Router and Pages Router support
SvelteKit
Native SvelteKit integration
Nuxt
Nuxt 3 with Nitro support
Astro
Server-side workflow execution
NestJS
Enterprise-ready workflows
Vite
Universal Vite plugin
Ready to Get Started?
Jump into the quickstart guide to build your first workflow in under 5 minutes:Quickstart Guide
Build and deploy your first durable workflow
Community & Support
GitHub Discussions
Ask questions and share your projects
Report Issues
Found a bug? Let us know
API Reference
Complete API documentation
Examples
Real-world workflow examples