pgflow (Postgres-native workflow engine)
A Postgres-native workflow engine that compiles workflows into SQL row definitions, letting Postgres orchestrate the DAG as state machines. It uses pgmq for queues with a TypeScript worker, and offers a type-safe TypeScript DSL with inferred inputs/outputs across dependencies and full autocomplete. Declarative manifest-style definitions replace hundreds of lines of manual pg_cron -> pgmq -> Supabase Edge Function boilerplate with explicit DAG definitions. Currently Supabase-only, with plans to support vanilla Postgres setups.
What it addresses
Replaces 240 lines of manual pg_cron -> pgmq -> Supabase Edge Function boilerplate with 20 lines of explicit DAG definitions.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
pgflow (Postgres-native workflow engine)
A Postgres-native workflow engine that compiles workflows into SQL row definitions, letting Postgres orchestrate the DAG as state machines. It uses pgmq for queues with a TypeScript worker, and offers a type-safe TypeScript DSL with inferred inputs/outputs across dependencies and full autocomplete. Declarative manifest-style definitions replace hundreds of lines of manual pg_cron -> pgmq -> Supabase Edge Function boilerplate with explicit DAG definitions. Currently Supabase-only, with plans to support vanilla Postgres setups.
Problem: Replaces 240 lines of manual pg_cron -> pgmq -> Supabase Edge Function boilerplate with 20 lines of explicit DAG definitions.
Posted by @jumski · Original source ↗
Source text · @jumski · · Source ↗
I'm building a Postgres-native workflow engine using pgmq for queues and TypeScript worker. Workflows compile to definitions (SQL rows), letting Postgres orchestrate the DAG as state machines. The TypeScript DSL is type-safe with inferred inputs/outputs across dependencies with full autocomplete.