Small workflows for small jobs

KOMA/flow is a visual builder for the five-step job. Wire a few steps together on a canvas: call an API, check the answer, query Supabase, wait for someone to approve. Run it in your browser, or export it as one file you can run anywhere.

No account, no connectors, no AI. Add a Supabase URL and key only if a flow uses Supabase.

The tool should not be bigger than the job

Most workflow tools come as a whole platform: workspaces, a connection for every service, a hosted runtime, a pricing page. For a five-step job, setting up the tool is more work than the job. KOMA/flow makes the opposite trade.

A handful of nodes

Each one does one plain thing, like an HTTP call, a condition or a table query. For anything else, a Script node runs JavaScript.

Your flow is a file

Export gives you one readable .mjs with the engine inside it. Put it in a repo, a cron job or CI, and open it in the builder again to keep editing.

Nothing to host

The canvas runs flows in your browser and the exported file runs anywhere with Node or Bun. A server is only involved for durable runs.

Ten building blocks

Everything in the palette on the left of the canvas. Drag one on, connect it, and edit it in the side panel.

  • Webhookhttp

    The entry point. Passes on the input the flow was started with, or a saved JSON payload when there is none.

  • Role / Authsupabase.auth

    Switches the Supabase client for the steps after it: anon, authenticated (email and password) or service_role.

  • Edge FunctionJS

    Invokes a Supabase edge function by name, with the method, body and headers you set.

  • DB: Functionpg

    Calls a Postgres function with arguments, like ship_order().

  • DB: QuerySQL

    Selects, inserts, updates or deletes rows in a table, with filters and a limit.

  • Scriptjs

    A JavaScript function body for anything the other nodes do not cover: reshaping data, building a payload.

  • Conditionif

    Checks a list of rules, each with its own output, plus an else for when none match.

  • HTTP Requestfetch

    Calls any API with the method, headers and body you set. The response, parsed if it is JSON, goes on to the next step.

  • Waithook

    Waits for a request from outside, like an approval, or times out after 30s, 5m, 1h or 2d. Each outcome has its own output.

  • Result=

    Marks the value the flow returns.

Pass data with templates

Every step gets prev, the output of the step feeding into it. Any text setting, such as a URL, a JSON body, a header or a filter, can use {{…}} tokens to read from it.

Only the branch behind a condition that fired runs. The rest are marked skipped, and a failed step does not stop independent branches.

// an HTTP Request node
GET /orders/{{prev.id}}

// a DB: Query filter, one per line
status eq active
created_at gte {{prev.since}}

// a JSON body
{ "user_id": "{{prev.body.id}}" }

Three ways to run a flow

All three use the same engine, so a flow behaves the same everywhere.

Run

Press Run in the browser. Nodes turn green or red and the run log shows each node's output and timing. HTTP calls need the target to allow CORS.

Export

Download the flow as one file and run it with Bun or Node: bun order-approval.mjs '{"id": 42}'. The result goes to stdout as JSON.

Durable run

For long waits and flaky APIs. Every node is a retried, saved step, so a run waiting on a one-hour approval survives a restart.

Pin a flow as a door

KOMA Home embeds the builder. Build a flow, save it to a project, and it becomes a card there. Click it to run the file with that project's Supabase keys and watch the output live, or open it to edit it in the same builder.

Not a replacement for a full automation platform. If you need hundreds of integrations or scheduled cloud runs for a team, use one of those.