No events yet. Start a flow to see events.
This demo runs a 4-step DAG: fetch → (summarize + extractKeywords in parallel) → publish.
Postgres handles orchestration, state management, output persistence, retries, and queue management.
Auto-respawning Edge Function worker executes your handlers.
TypeScript Client wraps RPC and Realtime for starting flows and observing state changes.
Click any step to inspect inputs, outputs, and dependencies
No events yet. Start a flow to see events.
article_flowProcesses web articles by fetching content, generating summaries and keywords in parallel, then publishing the results. Demonstrates parallel execution, automatic retries, and dependency management.
The pgflow client calls SQL function start_flow() via Supabase RPC, which
creates a run and initializes state for each step. Root steps (no dependencies) get tasks
queued immediately.
Edge Function worker polls the queue, calls SQL function start_tasks() to reserve tasks,
executes handlers, then calls complete_task() to save outputs.
complete_task() checks
dependencies after each completion, creates tasks for steps with all dependencies
met, and marks the run complete when remaining_steps = 0.
Supabase Realtime streams database events. The pgflow client transforms these into a developer-friendly API with promises for completion and reactive state updates.