{"library":"pg-workflows","type":"library","category":null,"description":"pg-workflows v0.13.0 is a TypeScript workflow engine that uses PostgreSQL as its sole backing store for durable execution, event-driven orchestration, and automatic retries. It eliminates the need for Redis, message brokers, or external workflow servers by storing all state in Postgres. Released under MIT, it targets Node >=18.0.0 and Postgres >=10. Key differentiators include a minimal API that feels like plain async TypeScript (no DSL), built-in step-level persistence with exactly-once semantics, event-driven pauses (step.waitFor), scheduling primitives (delay, waitUntil), and client/worker separation. Compared to Temporal or BullMQ, it requires zero new infrastructure and automatically runs schema migrations on start. Peer dependencies are pg (Postgres client) and optionally @opentelemetry/api for tracing. The package ships TypeScript types and is ESM-only.","language":"javascript","status":"active","version":"0.13.0","tags":["javascript","postgres-workflow","postgresql-workflow-engine","workflow","workflow-engine","durable-execution","postgresql","postgres","pg-boss","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install pg-workflows","imports":["import { WorkflowEngine } from 'pg-workflows'","import { workflow } from 'pg-workflows'","import type { WorkflowContext } from 'pg-workflows'"]},{"cmd":"yarn add pg-workflows","imports":[]},{"cmd":"pnpm add pg-workflows","imports":[]}],"homepage":"https://github.com/SokratisVidros/pg-workflows#readme","github":"https://github.com/SokratisVidros/pg-workflows","docs":null,"changelog":null,"pypi":null,"npm":"pg-workflows","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}