← All projects
Project record1 mention
Originally shared on Hacker News

pgflow

Open-source, DAG-based workflow engine that uses Postgres to orchestrate workers on top of PGMQ queues. It integrates with Supabase without new infrastructure, executing tasks on Edge Functions via a serverless task queue worker. All current and past execution state is stored in Postgres and queryable with simple SELECTs, and flows can be started from within the database (e.g., via pg_cron or triggers). Emphasizes database consistency and type safety between steps, with core SQL orchestration (state machine, retries, observability, queue management), a strictly typed TypeScript DSL plus compiler that turns flow definitions into migrations, an Edge Function worker, and a client library that uses Supabase Realtime to stream flow-run events and progress to the browser. Planned features include parallel fanouts with per-item retry logic and SQL-based conditionals/branching using JSONB containment.

Last shared
01 / The problem

What it addresses

Workflow orchestration usually requires new, separate infrastructure; pgflow runs on existing Postgres/Supabase setups with no new infra needed.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. pgflow

    Open-source, DAG-based workflow engine that uses Postgres to orchestrate workers on top of PGMQ queues. It integrates with Supabase without new infrastructure, executing tasks on Edge Functions via a serverless task queue worker. All current and past execution state is stored in Postgres and queryable with simple SELECTs, and flows can be started from within the database (e.g., via pg_cron or triggers). Emphasizes database consistency and type safety between steps, with core SQL orchestration (state machine, retries, observability, queue management), a strictly typed TypeScript DSL plus compiler that turns flow definitions into migrations, an Edge Function worker, and a client library that uses Supabase Realtime to stream flow-run events and progress to the browser. Planned features include parallel fanouts with per-item retry logic and SQL-based conditionals/branching using JSONB containment.

    Problem: Workflow orchestration usually requires new, separate infrastructure; pgflow runs on existing Postgres/Supabase setups with no new infra needed.

    Posted by @jumski · Original source ↗

    Source text · @jumski · · Source ↗

    I’m tinkering on pgflow – an open-source, DAG-based workflow engine that uses Postgres to orchestrate workers on top of PGMQ queues. It seamlessly integrates with Supabase (no new infra needed!) and executes code on Edge Functions using custom, serverless task queue worker.