vercel/workflow

Workflow SDK: Build durable, reliable, and observable apps and AI Agents in TypeScript

What it solves

It addresses the challenge of creating reliable, long-running processes in TypeScript and JavaScript. Standard functions can fail or time out, and tracking their progress across multiple steps is typically difficult. This SDK makes functions "durable," meaning they can survive failures and maintain their state over time.

How it works

The SDK persists the progress of a workflow, allowing it to automatically retry failed steps and suspend itself without consuming compute resources while waiting for an event or a time delay. It integrates with various frameworks (like Next.js) and can be run locally, deployed to Vercel for managed infrastructure, or self-hosted using a Postgres backend.

Who it’s for

Developers building server-side applications in JavaScript or TypeScript who need to manage complex, multi-step sequences of actions that must be guaranteed to complete.

Highlights

  • Durable Execution: Persists progress and retries failed steps automatically.
  • Compute Efficiency: Workflows can suspend without using active compute while waiting.
  • Observability: Includes a built-in UI for monitoring workflow execution.
  • Flexible Deployment: Supports managed Vercel hosting, self-hosted Postgres, or custom backends (Worlds).

Related

  • Project
  • Project
  • Project
  • Project
  • Project