Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions packages/docs/content/docs/alternatives/airflow.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
title: "Apache Airflow alternative: node-flow vs Airflow"
description: node-flow vs Apache Airflow — event-driven, long-running business workflows with polyglot workers, compared with Airflow's scheduled Python data pipelines.
---

**node-flow is an Airflow alternative for business and service workflows —
not a replacement for data pipelines.** Apache Airflow schedules batch DAGs
written in Python: run this pipeline every night, backfill last month. node-flow
runs *per-event* workflows: an order was placed, a document arrived, a user
signed up — thousands of concurrent runs, each with its own inputs, retries,
waits and human steps.

## node-flow vs Airflow at a glance

| | node-flow | Apache Airflow |
|---|---|---|
| Typical workload | Per-event business processes, microservice orchestration, AI agents | Scheduled batch and data pipelines |
| Workflow is… | A JSON DAG | A Python DAG |
| Triggered by | API calls, cron, webhooks, message-broker events | Schedules, datasets/assets, API |
| Run inputs | Every run has its own typed input | DAG run configuration |
| Latency to start a step | Workers long-poll; steps start as soon as they are ready | Scheduler loop and executor |
| Languages | Any, over HTTP | Python operators (others via containers) |
| Long waits and human approvals | First-class | Sensors and deferrable operators |
| Infrastructure | PostgreSQL 18 | Scheduler, metadata database, executor, webserver |

## Choose which

**Choose Airflow** for ETL and ELT, backfills, and data-team-owned scheduled
pipelines — its operator ecosystem is unmatched there.

**Choose node-flow** when each run is a transaction in your product: a payment,
an onboarding, a claim, a document pipeline triggered per upload, an LLM agent
loop.

<FAQ
items={[
{
question: 'Is node-flow a replacement for Airflow?',
answer:
'For event-driven business workflows and microservice orchestration, yes. For scheduled batch data pipelines and backfills, Airflow remains the better tool; the two are often used together.',
},
]}
/>

## Next

- [Concepts](/docs/guide/concepts)
- [System tasks](/docs/guide/system-tasks)
61 changes: 61 additions & 0 deletions packages/docs/content/docs/alternatives/aws-step-functions.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
title: "AWS Step Functions alternative: node-flow vs Step Functions"
description: node-flow vs AWS Step Functions — a portable, self-hosted JSON workflow engine with no per-transition pricing and no cloud lock-in.
---

**node-flow is a self-hosted AWS Step Functions alternative.** Both describe a
workflow as JSON rather than code: Step Functions uses the Amazon States
Language, node-flow uses a Conductor-style DAG. The difference is where it runs
and what it costs. Step Functions is an AWS-managed service billed per state
transition (Standard) or per request and duration (Express). node-flow runs
wherever you run a container and a Postgres database, for free.

## Why people look for a Step Functions alternative

- **Portability.** Run the same workflows on AWS, GCP, Azure, on-premises or a
laptop — including in air-gapped environments.
- **Predictable cost at volume.** No per-transition charge; you pay for the
compute and Postgres you already size.
- **Workers anywhere.** node-flow workers are HTTP clients, not Lambda
functions or AWS activity workers.
- **Local development and tests.** `nf test` and `@node-flow-dev/testkit` run a
whole workflow in milliseconds without any cloud account.

## node-flow vs Step Functions at a glance

| | node-flow | AWS Step Functions |
|---|---|---|
| Definition | JSON DAG | Amazon States Language (JSON) |
| Hosting | Self-hosted anywhere | AWS only |
| Pricing | Free to run | Per state transition or per request/duration |
| Workers | Any process over HTTP | Lambda, AWS service integrations, activity workers |
| Branching and parallelism | `SWITCH`, `FORK_JOIN`, `FORK_JOIN_DYNAMIC`, `DO_WHILE` | `Choice`, `Parallel`, `Map` |
| Long waits | `WAIT`, `HUMAN`, `WAIT_FOR_WEBHOOK` — one row each | `Wait`, task tokens |
| Human approvals | `HUMAN` task with inbox | Task tokens plus your own UI |
| Visual editor | Yes | Workflow Studio |
| Access control | Namespaces, RBAC, SSO | IAM |

## When Step Functions is the better choice

Choose Step Functions when you are all-in on AWS, your steps are mostly Lambda
and AWS service calls, and you want zero infrastructure to operate.

<FAQ
items={[
{
question: 'Is there a self-hosted alternative to AWS Step Functions?',
answer:
'node-flow is a self-hosted workflow engine where workflows are also JSON. It runs anywhere Docker and PostgreSQL run, has no per-transition pricing, and supports branching, parallelism, loops, waits, human approvals and saga compensation.',
},
{
question: 'Can node-flow call AWS services?',
answer:
'Yes. HTTP system tasks can call any API, workers can use any AWS SDK, and event handlers can consume from SQS. node-flow simply does not require AWS to run.',
},
]}
/>

## Next

- [Workflows](/docs/guide/workflows)
- [CLI](/docs/guide/cli)
53 changes: 53 additions & 0 deletions packages/docs/content/docs/alternatives/camunda.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
title: "Camunda alternative: node-flow vs Camunda"
description: node-flow vs Camunda — import BPMN 2.0 into a lightweight, developer-first JSON workflow engine that runs on Postgres and is free to run commercially.
---

**node-flow is a lightweight Camunda alternative for developer-owned
processes.** Camunda executes BPMN — the process diagram *is* the program — and
is built for organisations where business analysts model processes. node-flow
executes a JSON DAG, keeps the diagram-first spirit with a visual editor, and
can **import BPMN 2.0** to give you a draft definition to start from.

## Why people look for a Camunda alternative

- **Licensing.** Camunda 8's self-managed production use requires a commercial
licence under Camunda's current terms. node-flow is free to run in
production, including commercially.
- **Footprint.** A Camunda 8 installation is a set of components (the Zeebe
engine, Operate, Tasklist, identity, a search store). node-flow is one image
on PostgreSQL 18.
- **JSON in version control.** A node-flow definition diffs cleanly in a pull
request and needs no modeller to edit.

## node-flow vs Camunda at a glance

| | node-flow | Camunda 8 |
|---|---|---|
| Process language | JSON DAG; BPMN 2.0 import to a draft | BPMN 2.0 and DMN |
| Workers | Any language, HTTP long-poll | Job workers via Camunda clients |
| Human tasks | `HUMAN` task and inbox | Tasklist and forms |
| Business rules | `BUSINESS_RULE` system task | DMN |
| Infrastructure | PostgreSQL 18 | Several platform components and a search store |
| Price | Free to run | Commercial for self-managed production; SaaS plans |

## When Camunda is the better choice

Choose Camunda when business analysts own process models in BPMN and DMN,
when you need BPMN's full event and compensation semantics exactly, or when
your organisation standardises on it.

<FAQ
items={[
{
question: 'Can node-flow import BPMN?',
answer:
'Yes. POST a BPMN 2.0 XML document to the import-bpmn endpoint and node-flow converts it into a draft workflow definition for you to review and register. It is a starting point, not a BPMN runtime.',
},
]}
/>

## Next

- [API](/docs/guide/api)
- [Workflows](/docs/guide/workflows)
101 changes: 101 additions & 0 deletions packages/docs/content/docs/alternatives/conductor.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
---
title: "Netflix Conductor alternative: node-flow vs Conductor"
description: node-flow vs Netflix Conductor and Conductor OSS — the same JSON workflow model and a Conductor-compatible API, with Postgres as the only dependency.
---

**node-flow is a Netflix Conductor alternative that keeps Conductor's model and
drops its infrastructure.** Workflows are the same kind of JSON DAG, workers
still poll for `SIMPLE` tasks in any language, and a Conductor-shaped REST API
at `/conductor/api` lets supported Conductor clients connect with a base-URL
change. What goes away is the stack: node-flow runs on PostgreSQL alone.

## Why people look for a Conductor alternative

- **Netflix stopped maintaining Conductor.** Netflix announced the end of its
maintenance of the original repository in December 2023; the community fork
continues as [Conductor OSS](https://github.com/conductor-oss/conductor),
with Orkes as its main steward.
- **The footprint.** A production Conductor deployment is a JVM server plus
separate queue, persistence and indexing backends — typically Redis and
Elasticsearch or OpenSearch, alongside a database, depending on which modules
you choose. Each is a system to size, patch, back up and page on.
- **Node.js and TypeScript teams.** Conductor is a Java/Spring application. If
your team, tooling and on-call knowledge are Node, running and extending it
is a context switch.

## node-flow vs Conductor at a glance

| | node-flow | Netflix Conductor / Conductor OSS |
|---|---|---|
| Workflow model | JSON DAG | JSON DAG |
| Workers | Any language, HTTP long-poll | Any language, HTTP poll |
| Server | Node.js, one image with three roles (`api`, `decider`, `poller`) | Java / Spring Boot |
| Required infrastructure | **PostgreSQL 18 only** — state, queues, timers, outbox and search | Queue, persistence and index stores (commonly Redis + Elasticsearch/OpenSearch) |
| Conductor API | Compatible layer at `/conductor/api` for supported endpoints | Native |
| Side effects | Transactional outbox — no side effect escapes a transaction | Depends on the backend combination |
| Engine | Pure `decide(blueprint, state)` function; deterministic replay | Imperative decider service |
| Testing | `@node-flow-dev/testkit` runs a whole workflow in milliseconds, no server | Integration tests against a running server |
| Access control | Namespaces, RBAC, SSO (OIDC, SAML), API keys, service accounts, audit log | Minimal in OSS; richer in Orkes' commercial product |
| AI tasks | LLM, embeddings, vector search in Postgres, MCP, durable `AGENT` loop | Available in Orkes' product |
| Licence | Source available, free to run commercially | Apache 2.0 |

## Migrating from Conductor

Because the model is the same, a migration is mostly configuration:

1. Point your Conductor SDK's base URL at `https://your-host/conductor` (or
`/conductor/api`, depending on the SDK — see
[Conductor compatibility](/docs/guide/conductor#connection-settings)).
2. Create node-flow credentials for your publishers and workers. The credential
selects the namespace.
3. Register your existing workflow and task definitions. Supported task types
keep their names: `SIMPLE`, `SWITCH`, `FORK_JOIN`, `JOIN`, `DO_WHILE`,
`SUB_WORKFLOW`, `HTTP`, `INLINE`, `JSON_JQ_TRANSFORM`, `WAIT`, `HUMAN`,
`TERMINATE` and more.
4. Run workers unchanged, then move them over one queue at a time.

<Callout type="warn">
The compatibility layer is **not full Conductor or Orkes parity**. Read
[Migration boundaries](/docs/guide/conductor#migration-boundaries) before
switching a production fleet.
</Callout>

## When to stay on Conductor

- You depend on a Conductor module, task type or SDK feature outside
node-flow's compatibility surface.
- You need an OSI-approved licence. Conductor OSS is Apache 2.0; node-flow is
[source available](/docs/guide/licence).
- Your platform team already runs Conductor's backends well and the footprint
is not a cost you feel.

<FAQ
items={[
{
question: 'Is Netflix Conductor still maintained?',
answer:
'Netflix ended its own maintenance of the original Conductor repository in December 2023. Development continues in the community fork, Conductor OSS, and in Orkes’ commercial product. node-flow is an independent engine that implements the same model and a compatible API.',
},
{
question: 'Can I use my existing Conductor SDK with node-flow?',
answer:
'Yes, for the supported workflow and worker endpoints. node-flow serves a Conductor-shaped REST API at /conductor/api; you change the base URL and use a node-flow credential. It is a compatibility layer, not full platform parity, so review the migration boundaries first.',
},
{
question: 'Does node-flow need Redis or Elasticsearch like Conductor?',
answer:
'No. node-flow keeps workflow state, task queues, timers, the outbox and search in PostgreSQL 18. There is no Redis, Cassandra, Elasticsearch or Kafka to run.',
},
{
question: 'Is node-flow a fork of Conductor?',
answer:
'No. node-flow is a separate implementation written in TypeScript for Node.js. It follows Conductor’s workflow model and speaks a compatible API, but shares no code with it.',
},
]}
/>

## Next

- [Quickstart](/docs/guide/quickstart) — a completed run in about a minute.
- [Conductor compatibility](/docs/guide/conductor) — connection settings, credentials and boundaries.
- [Orkes Conductor alternative](/docs/alternatives/orkes).
49 changes: 49 additions & 0 deletions packages/docs/content/docs/alternatives/hatchet.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
title: "Hatchet alternative: node-flow vs Hatchet"
description: node-flow vs Hatchet — two Postgres-backed engines; node-flow defines workflows as JSON DAGs with a Conductor-compatible API, Hatchet defines them in code.
---

**node-flow and [Hatchet](https://hatchet.run) share a bet: Postgres is
enough.** Both avoid a separate broker and use PostgreSQL for durable state and
queueing. They differ in where the workflow lives. Hatchet workflows — tasks,
DAGs and durable tasks — are declared in code with its Python, TypeScript or Go
SDKs. node-flow workflows are JSON documents the engine reads, and workers in
any language poll for their steps.

## node-flow vs Hatchet at a glance

| | node-flow | Hatchet |
|---|---|---|
| Workflow is… | A JSON DAG | Code (tasks, DAGs, durable tasks) |
| Languages | Any, over HTTP | Languages with a Hatchet SDK |
| Worker connection | HTTP long-poll | Persistent connection to the engine |
| Infrastructure | PostgreSQL 18 | Postgres, plus the Hatchet engine |
| Operators | `SWITCH`, `FORK_JOIN`, `DO_WHILE`, `SUB_WORKFLOW`, `DYNAMIC`, saga compensation | Expressed in code |
| Built-in system tasks | HTTP, SQL, gRPC, jq, sandboxed JS, LLM, MCP, email, webhooks — no worker needed | Tasks run in your workers |
| Human approvals | `HUMAN` task with inbox | Durable events plus your own UI |
| Conductor API | Yes | No |
| Managed offering | Self-hosted | Hatchet Cloud |

## Choose which

**Choose Hatchet** for a code-first, high-throughput task queue with fan-out,
concurrency keys and durable tasks inside services you control.

**Choose node-flow** when the definition itself should be data — reviewable,
diffable, editable in a visual editor, importable from BPMN — and when
non-engineers need to see and act on runs.

<FAQ
items={[
{
question: 'Are node-flow and Hatchet both built on Postgres?',
answer:
'Yes. Both use PostgreSQL for durable state and queueing. node-flow’s only required dependency is PostgreSQL 18, which also holds its timers, transactional outbox and search.',
},
]}
/>

## Next

- [Self-hosting](/docs/guide/self-hosting)
- [Open-source workflow engines](/docs/alternatives/open-source-workflow-engines)
55 changes: 55 additions & 0 deletions packages/docs/content/docs/alternatives/iii.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
title: "iii.dev alternative: node-flow vs iii (Motia)"
description: node-flow vs iii (iii.dev, formerly Motia) — a Postgres-backed workflow orchestrator with JSON workflows, compared with iii's workers, triggers and functions runtime.
---

**node-flow is an alternative to [iii](https://iii.dev) for teams that want a
workflow orchestrator rather than a backend runtime.** iii — from the team
behind Motia, which it succeeds — is a Rust engine that unifies a backend around
three primitives: *workers*, *triggers* and *functions*, with SDKs for Node.js,
Python and Rust. node-flow does one narrower thing: it runs durable,
long-lived workflows described as JSON, and hands each step to a worker.

## node-flow vs iii at a glance

| | node-flow | iii |
|---|---|---|
| Scope | Workflow orchestration | Backend runtime: APIs, queues, cron, state, streams, workflows |
| Workflow is… | A JSON DAG, versioned and visual | Functions wired together by triggers, in code |
| Languages | Any, over HTTP | Languages with an iii SDK |
| Engine | Node.js, pure deterministic decide function | Rust engine |
| Storage | PostgreSQL 18 | See iii's documentation |
| Operator tooling | DAG view and editor, retry, rerun-from-task, terminate, human-task inbox | iii console and observability |
| Access control | Namespaces, RBAC, SSO, audit log | See iii's documentation |
| Conductor API | Yes | No |

## Choose which

**Choose iii** if you want one runtime to replace your web framework, queue,
scheduler and background jobs, and are happy for your backend to be built
around its primitives.

**Choose node-flow** if you already have services, want to keep them as they
are, and need something to coordinate long-running processes across them —
with retries, compensation, human approvals and an audit trail an operator can
follow.

<FAQ
items={[
{
question: 'What is iii.dev?',
answer:
'iii is an open-source backend runtime from Motia LLC, built around three primitives — workers, triggers and functions — with a Rust engine and SDKs for Node.js, Python and Rust. It succeeds the Motia framework.',
},
{
question: 'Is node-flow a replacement for Motia or iii?',
answer:
'For workflow orchestration, yes: node-flow runs durable JSON workflows whose steps are executed by workers in any language, on PostgreSQL alone. It does not try to be a web framework or general backend runtime.',
},
]}
/>

## Next

- [Quickstart](/docs/guide/quickstart)
- [Workflows](/docs/guide/workflows)
Loading
Loading