Open source · MIT · PostgreSQL ≥ 10
Durable workflows on the Postgres you already run
pg-workflows saves every step's result in PostgreSQL, retries from the step that failed, and pauses for events, timers, or polled conditions. No Redis, no broker, no scheduler.
Add pg-workflows to this project. Fetch https://pgworkflows.dev/skill.md and follow it step by step: pick the right layout for this codebase (monolith, web app plus worker, or microservices), install and verify the engine, add the @pg-workflows/ui dashboard for our stack, then ask me whether to add OpenTelemetry tracing.
Explore the docs
Quickstart
Run your first durable workflow against Postgres in about two minutes.
Install with an agent
What the install skill does, and how to add it to your agent.
Architectures
One service, a web app plus a worker, or many services.
Workflows and steps
Durable steps, events, timers, polling, and child workflows.
Recurring schedules
Cron expressions and fixed intervals, with singleton overlap control.
UI components
Browse, inspect, and control runs with @pg-workflows/ui.
Tracing
OpenTelemetry spans for every execution and step.
API reference
WorkflowEngine, WorkflowClient, workflow(), and every type.