π€ Type-safe durable execution for agents and workflows. Resumable runs, append-only history, and compensable steps for TS/JS, React, Solid, Vue, and Svelte.
TanStack Workflow is a TypeScript library for building reliable, long-running business processes. Think of it as a way to write code that can take breaksβyour workflow can pause to wait for a person to approve something, wait for an external system to send a message, or simply wait until a certain time. The key benefit is durability: if your server restarts while a workflow is waiting, it picks up exactly where it left off without losing any progress. Developers define workflows as ordinary async functions with built-in steps for reliable operations, time-based pauses, approval gates, and custom events. The system automatically records everything in an append-only log, enabling replay and resume across server restarts. It supports middleware for adding shared functionality (like authentication or tracing) and includes version routing so you can update workflows without breaking in-progress runs.
How It Works
You discover a tool for building reliable business processes that can pause, wait for approvals, and resume exactly where they left off.
You define a workflow as a simple function with steps, using clear input and output types that TypeScript understands automatically.
You launch your workflow and it starts processing, completing each step in order while keeping track of everything in a durable log.
When your workflow reaches a point that needs human approval or an external event, it automatically pauses and saves its progress safely.
Workflow pauses and shows someone a prompt to approve or reject an action.
Workflow pauses until a webhook arrives or a timer fires.
When the approval comes in or the webhook arrives, your workflow automatically wakes up and continues from where it stopped.
Whether it took minutes or days, your workflow finishes with the same reliable result, even if your server restarted in between.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.