+ A self-hosted workflow orchestration engine that runs on Postgres
+ alone.
+ Durable workflows, workers in
+ any language, and just one dependency.
+
+
+
+ Build your first workflow
+
+
+ Read the documentation
+
+
{[{ title: 'Start your local stack', body: 'Bring up Postgres, the server, and the dashboard with Docker Compose.' }, { title: 'Define the workflow', body: 'Describe your tasks in JSON. Register the definition with the API.' }, { title: 'Connect a worker. Watch it flow.', body: 'Lease a task, execute your logic, and report the result.' }].map((s, i) =>
{i + 1}
{s.title}
{s.body}
)}Follow the complete quickstart
-
YOUR TERMINAL
# From a checkout of the repository
$docker compose -f docker/docker-compose.yml up
Postgresready
Node Flow server:3000
Dashboard:3100
$
{copied ? 'Command copied' : copyError ? 'Select the command above to copy it.' : 'Example output · Docker Compose starts three services'}
-
-
-
THE NEXT STEP IS YOURS
Built for builders. Documented for humans.
All documentation
{docs.map((item, i) =>
{item.title}
{item.text}
{item.label})}
-
-
YOUR INFRASTRUCTURE. YOUR RULES.
Let it flow.
Your next workflow starts with a single step.
Start building with Node Flow
-
-
-
-
-
+
+
+
+ 01 / THE DEVELOPER EXPERIENCE
+
+ You write the work.
+
+ Node Flow connects it.
+
+
+ From a simple sequence to a sprawling graph, the same clear model
+ takes you from definition to execution.
+
+
+
+
+
+ INPUT
+
+
+ task A
+ task B
+ task C
+
+
+ JOIN
+
+ DECLARE
+
A graph you can reason about.
+
+ Express branches, parallel work, loops, and human approvals in
+ inspectable JSON.
+
+
+ Explore the workflow DSL
+
+
+
+
+ ATTEMPT 01
+
+ interrupted
+
+ retrying
+
+ completed
+
+
+
+ EXECUTE
+
Built for the unexpected.
+
+ Durable state, task leases, and configurable retries keep
+ distributed work moving.
+
+
+ Understand execution
+
+
+
+
+ {[65, 90, 48, 78].map((width, i) => (
+
+ 0{i + 1}
+
+ ✓
+
+ ))}
+
+ OBSERVE
+
Every run tells a story.
+
+ Follow execution history, inspect task outputs, and retry from
+ the point that matters.
+
+
+ Take control of a run
+
+
+
+
+
+
+
+
+
+ 02 / RADICALLY SIMPLE INFRASTRUCTURE
+
+
+ Big workflows.
+
+ Small footprint.
+
+
+ Queues, timers, workflow state, and the outbox. All backed by
+ Postgres. One transactional foundation for the whole system.
+
+ {[
+ {
+ title: 'Start your local stack',
+ body: 'Bring up Postgres, the server, and the dashboard with Docker Compose.',
+ },
+ {
+ title: 'Define the workflow',
+ body: 'Describe your tasks in JSON. Register the definition with the API.',
+ },
+ {
+ title: 'Connect a worker. Watch it flow.',
+ body: 'Lease a task, execute your logic, and report the result.',
+ },
+ ].map((s, i) => (
+
+ {i + 1}
+
+
{s.title}
+
{s.body}
+
+
+ ))}
+
+ Follow the complete quickstart
+
+
+
+
+
+
+
+
+
+ YOUR TERMINAL
+
+
+
+
+ # From a checkout of the repository
+
+
+ $
+ docker compose -f docker/docker-compose.yml up
+
+
+ );
}
diff --git a/packages/docs/src/components/mdx.tsx b/packages/docs/src/components/mdx.tsx
index 9cc18a0..eec7666 100644
--- a/packages/docs/src/components/mdx.tsx
+++ b/packages/docs/src/components/mdx.tsx
@@ -6,6 +6,7 @@ import { Step, Steps } from 'fumadocs-ui/components/steps';
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
import { TypeTable } from 'fumadocs-ui/components/type-table';
import type { MDXComponents } from 'mdx/types';
+import { FAQ } from './faq';
import { Mermaid } from './mermaid';
/**
@@ -23,6 +24,7 @@ export function getMDXComponents(components?: MDXComponents): MDXComponents {
Accordion,
Accordions,
Callout,
+ FAQ,
File,
Files,
Folder,
diff --git a/packages/docs/src/lib/landing-content.ts b/packages/docs/src/lib/landing-content.ts
new file mode 100644
index 0000000..6caf371
--- /dev/null
+++ b/packages/docs/src/lib/landing-content.ts
@@ -0,0 +1,85 @@
+import type { FaqItem } from '../components/json-ld';
+
+/**
+ * Copy the landing page renders *and* the structured data describes.
+ *
+ * Kept outside `landing.tsx` because that file is a client component and the
+ * JSON-LD is emitted by the server page; one array imported by both means the
+ * FAQ a crawler reads is always the one a visitor sees.
+ */
+
+export const comparisons = [
+ {
+ name: 'Netflix Conductor',
+ href: '/docs/alternatives/conductor',
+ text: 'Same JSON model and a compatible API — without Redis or Elasticsearch.',
+ },
+ {
+ name: 'Orkes Conductor',
+ href: '/docs/alternatives/orkes',
+ text: 'RBAC, SSO and AI tasks, self-hosted and free to run commercially.',
+ },
+ {
+ name: 'Temporal',
+ href: '/docs/alternatives/temporal',
+ text: 'Workflows as readable data, workers without determinism rules.',
+ },
+ {
+ name: 'Trigger.dev',
+ href: '/docs/alternatives/trigger-dev',
+ text: 'Workers in any language, running on compute you already have.',
+ },
+ {
+ name: 'Inngest',
+ href: '/docs/alternatives/inngest',
+ text: 'Pull-based workers and server-side flow control on Postgres.',
+ },
+ {
+ name: 'iii',
+ href: '/docs/alternatives/iii',
+ text: 'A focused orchestrator for the services you already run.',
+ },
+ {
+ name: 'AWS Step Functions',
+ href: '/docs/alternatives/aws-step-functions',
+ text: 'JSON workflows anywhere, with no per-transition bill.',
+ },
+ {
+ name: 'Open-source engines',
+ href: '/docs/alternatives/open-source-workflow-engines',
+ text: 'Conductor OSS, Temporal, Airflow, Hatchet and more, side by side.',
+ },
+] as const;
+
+export const landingFaq: FaqItem[] = [
+ {
+ question: 'What is Node Flow?',
+ answer:
+ 'Node Flow (node-flow) is a self-hosted workflow orchestration engine. You describe a process as a declarative JSON DAG, workers in any language poll for the steps they own, and the engine makes every step run, retry, time out and compensate as defined — across restarts, deploys and failures. PostgreSQL 18 is its only infrastructure dependency.',
+ },
+ {
+ question: 'Is Node Flow an alternative to Netflix Conductor and Orkes?',
+ answer:
+ 'Yes. Node Flow follows Conductor’s workflow model and serves a Conductor-compatible REST API at /conductor/api, so supported Conductor SDKs and workers connect with a base-URL change. It replaces Conductor’s Redis, persistence and Elasticsearch stack with a single Postgres database.',
+ },
+ {
+ question: 'How is Node Flow different from Temporal or Trigger.dev?',
+ answer:
+ 'Temporal and Trigger.dev make code durable: the workflow is a function in an SDK. Node Flow makes the workflow a JSON document the engine runs, and workers in any language implement individual steps. That suits processes that cross teams, services and languages, and that operators need to see and act on.',
+ },
+ {
+ question: 'What infrastructure does Node Flow need?',
+ answer:
+ 'Only PostgreSQL 18. Workflow state, task queues, timers, the transactional outbox and search all live in Postgres. There is no Redis, Cassandra, Elasticsearch or Kafka to run.',
+ },
+ {
+ question: 'Which languages can workers be written in?',
+ answer:
+ 'Any. The worker protocol is plain HTTP — lease a task, heartbeat, report a result. There is a TypeScript SDK and generated clients for Python, Go, Java and TypeScript.',
+ },
+ {
+ question: 'Is Node Flow open source and free?',
+ answer:
+ 'Node Flow is free to run, including commercially and inside products you sell. It is source available rather than OSI open source: the code is public and may be redistributed unmodified, but modified versions may not be distributed.',
+ },
+];
diff --git a/packages/docs/src/lib/layout.shared.tsx b/packages/docs/src/lib/layout.shared.tsx
index 80aeb27..0aa1643 100644
--- a/packages/docs/src/lib/layout.shared.tsx
+++ b/packages/docs/src/lib/layout.shared.tsx
@@ -13,7 +13,13 @@ export function baseOptions(): BaseLayoutProps {
nav: {
title: (
-
+ docs
),
@@ -21,6 +27,7 @@ export function baseOptions(): BaseLayoutProps {
},
links: [
{ text: 'Guide', url: '/docs/guide', active: 'nested-url' },
+ { text: 'Compare', url: '/docs/alternatives', active: 'nested-url' },
{ text: 'Contributing', url: '/docs/contributing', active: 'nested-url' },
{ text: 'API', url: '/api-reference', active: 'nested-url' },
],
diff --git a/packages/docs/src/lib/metadata.ts b/packages/docs/src/lib/metadata.ts
index 9ba47e8..6623dfc 100644
--- a/packages/docs/src/lib/metadata.ts
+++ b/packages/docs/src/lib/metadata.ts
@@ -14,6 +14,12 @@ interface PageMetadata {
image: string;
/** `article` for documentation, `website` for the landing page. */
type?: 'website' | 'article';
+ /**
+ * The same page as plain Markdown, for LLM crawlers and agents. Advertised
+ * as a `` so they need not
+ * scrape the rendered HTML.
+ */
+ markdown?: string;
/** Replace the templated `` outright instead of suffixing the site name. */
absoluteTitle?: boolean;
}
@@ -39,6 +45,7 @@ export function pageMetadata({
image,
type = 'website',
absoluteTitle = false,
+ markdown,
}: PageMetadata): Metadata {
// Previews show the site name alongside a page title, so `Quickstart` alone
// would read as an orphan in a feed. The landing page's title already
@@ -51,7 +58,10 @@ export function pageMetadata({
return {
title: absoluteTitle ? { absolute: title } : title,
description,
- alternates: { canonical: path },
+ alternates: {
+ canonical: path,
+ ...(markdown ? { types: { 'text/markdown': markdown } } : {}),
+ },
openGraph: {
type,
siteName: site.displayName,
diff --git a/packages/docs/src/lib/site.ts b/packages/docs/src/lib/site.ts
index 98d108f..bd58781 100644
--- a/packages/docs/src/lib/site.ts
+++ b/packages/docs/src/lib/site.ts
@@ -11,10 +11,10 @@ export const site = {
name: 'node-flow',
/** The brand as the logo spells it, for places a human reads it. */
displayName: 'Node Flow',
- title: 'Node Flow — make complex workflows flow',
+ title: 'Node Flow — self-hosted workflow orchestration on Postgres',
tagline: 'Conductor’s model, Node’s ecosystem, one dependency.',
description:
- 'Workflow orchestration you can read. Build durable workflows with declarative JSON, workers in any language, and Postgres as your only infrastructure dependency.',
+ 'A self-hosted workflow orchestration engine and Conductor-compatible alternative to Orkes, Temporal and Trigger.dev. Durable JSON workflows, workers in any language, and Postgres as the only dependency.',
/**
* Absolute origin, used to resolve every relative URL in the metadata.
*
@@ -31,25 +31,62 @@ export const site = {
name: 'Dwaipayan Sardar',
url: 'https://github.com/dsardar099',
},
+ /**
+ * The searches the site should answer.
+ *
+ * Google ignores ``, but Bing, Yandex, Baidu and
+ * several LLM crawlers still read it — and keeping the list here keeps the
+ * comparison pages, the landing copy and the structured data honest about
+ * which queries they are meant to serve.
+ */
keywords: [
'workflow orchestration',
+ 'workflow orchestrator',
'workflow engine',
+ 'open source workflow engine alternative',
+ 'self-hosted workflow engine',
+ 'durable workflows',
+ 'durable execution',
'Conductor',
'Netflix Conductor',
+ 'Netflix Conductor alternative',
+ 'Conductor OSS alternative',
'Orkes',
- 'Conductor alternative',
- 'durable workflows',
+ 'Orkes Conductor alternative',
+ 'Temporal alternative',
+ 'Trigger.dev alternative',
+ 'iii alternative',
+ 'Inngest alternative',
+ 'Restate alternative',
+ 'Hatchet alternative',
+ 'Airflow alternative',
+ 'AWS Step Functions alternative',
+ 'Camunda alternative',
+ 'microservice orchestration',
+ 'saga pattern',
'DAG',
+ 'JSON workflow DSL',
+ 'task queue',
+ 'Postgres queue',
'Postgres',
'PostgreSQL',
'Node.js',
'TypeScript',
- 'saga',
- 'task queue',
- 'microservice orchestration',
- 'AI agents',
- 'self-hosted',
+ 'human in the loop',
+ 'AI agent orchestration',
+ 'LLM workflows',
+ 'BPMN',
],
+ /**
+ * Search-engine ownership tokens, from Google Search Console and Bing
+ * Webmaster Tools. Environment variables rather than literals so a preview
+ * deployment never claims to be the production property.
+ */
+ verification: {
+ google: process.env.NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION,
+ bing: process.env.NEXT_PUBLIC_BING_SITE_VERIFICATION,
+ yandex: process.env.NEXT_PUBLIC_YANDEX_SITE_VERIFICATION,
+ },
/** Brand colours, for the parts of the preview image the logo does not cover. */
colors: {
ink: '#0c0d10',
diff --git a/packages/docs/src/lib/source.ts b/packages/docs/src/lib/source.ts
index 7506692..c4ee6d9 100644
--- a/packages/docs/src/lib/source.ts
+++ b/packages/docs/src/lib/source.ts
@@ -1,5 +1,6 @@
import { defineDocs } from 'fumadocs-mdx/macro';
import { loader } from 'fumadocs-core/source';
+import { absoluteUrl } from './site';
/**
* The content tree.
@@ -22,7 +23,14 @@ import { loader } from 'fumadocs-core/source';
* people — someone running node-flow, and someone changing it — and the only
* thing they share is the site they live on.
*/
-const docs = defineDocs({ dir: 'content/docs' });
+const docs = defineDocs({
+ dir: 'content/docs',
+ // Compiles a Markdown rendering of every page into the bundle, for
+ // `llms.txt`, `llms-full.txt` and the per-page `.md` routes. Built in rather
+ // than read from disk at request time, because the deployed image does not
+ // necessarily carry `content/`.
+ docs: { postprocess: { includeProcessedMarkdown: true } },
+});
export const source = loader({
baseUrl: '/docs',
@@ -50,6 +58,7 @@ export function pageImage(page: Page) {
const SECTIONS: Record = {
guide: 'Guide',
contributing: 'Contributing',
+ alternatives: 'Compare',
};
/**
@@ -62,3 +71,45 @@ const SECTIONS: Record = {
export function sectionOf(page: Page): string {
return SECTIONS[page.slugs[0] ?? ''] ?? 'Documentation';
}
+
+/**
+ * Where a page's Markdown twin lives: the page URL with `.md` appended.
+ *
+ * `next.config.mjs` rewrites that onto `app/llms.mdx/[[...slug]]`, which is
+ * what serves it. A section index maps to `/docs/guide.md`, not
+ * `/docs/guide/index.md`, so the rule stays "append `.md`".
+ */
+export function markdownUrl(page: Page) {
+ return `${page.url}.md`;
+}
+
+/** A page as Markdown, headed by its title and description. */
+export async function markdownOf(page: Page) {
+ const body = toPlainMarkdown(await page.data.getText('processed'));
+ const lines = [`# ${page.data.title}`, ''];
+ if (page.data.description) lines.push(`> ${page.data.description}`, '');
+ lines.push(`Source: ${absoluteUrl(page.url)}`, '', body.trim(), '');
+ return lines.join('\n');
+}
+
+/**
+ * Undo the two things the processed Markdown keeps that only make sense to
+ * the site itself: the `[#slug]` anchor ids on headings, and `` blocks,
+ * which stay as JSX. The FAQ is often the most quotable part of a page, so it
+ * is rewritten as headings and paragraphs rather than dropped.
+ */
+function toPlainMarkdown(markdown: string) {
+ return markdown
+ .replace(/^(#{1,6} .*?) \[#[^\]]+\]$/gm, '$1')
+ .replace(//g, (_, items: string) => {
+ const pairs = [
+ ...items.matchAll(
+ /question:\s*'((?:[^'\\]|\\.)*)',\s*answer:\s*'((?:[^'\\]|\\.)*)'/g,
+ ),
+ ];
+ return [
+ '## Frequently asked questions',
+ ...pairs.map(([, question, answer]) => `### ${question}\n\n${answer}`),
+ ].join('\n\n');
+ });
+}