From bf7a2bc46f01b06d0ff0963281b34122083c4e16 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 24 Sep 2026 06:08:33 +0000 Subject: [PATCH 1/2] docs(seo): comparison pages, llms.txt, FAQ structured data and AI-crawler rules - Add a Compare section (/docs/alternatives) comparing node-flow with Netflix Conductor, Orkes, Temporal, Trigger.dev, Inngest, Restate, iii, Hatchet, AWS Step Functions, Airflow and Camunda, plus an open-source workflow engines overview that states node-flow's source-available licence plainly. - Add a MDX component that renders visible Q&A and emits FAQPage JSON-LD from the same data; use it on every comparison page and on the landing page. - Serve /llms.txt, /llms-full.txt and a Markdown twin of every docs page at .md, advertised via rel=alternate type=text/markdown. - Name AI crawlers explicitly in robots.txt; weight the sitemap toward the guide and comparison pages. - Richer site metadata: keyword-bearing title and description, expanded keywords, Search Console / Bing / Yandex verification via env vars, SoftwareSourceCode and featureList in the structured data. - Landing page: keyword-bearing hero copy, a "How it compares" section, an FAQ, and Compare links in the header, mobile nav and footer. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016G6Nhuho3hTe6WLcMCPp2e --- .../content/docs/alternatives/airflow.mdx | 48 +++++++++ .../docs/alternatives/aws-step-functions.mdx | 61 +++++++++++ .../content/docs/alternatives/camunda.mdx | 53 +++++++++ .../content/docs/alternatives/conductor.mdx | 101 ++++++++++++++++++ .../content/docs/alternatives/hatchet.mdx | 49 +++++++++ .../docs/content/docs/alternatives/iii.mdx | 55 ++++++++++ .../docs/content/docs/alternatives/index.mdx | 100 +++++++++++++++++ .../content/docs/alternatives/inngest.mdx | 61 +++++++++++ .../docs/content/docs/alternatives/meta.json | 23 ++++ .../open-source-workflow-engines.mdx | 73 +++++++++++++ .../docs/content/docs/alternatives/orkes.mdx | 77 +++++++++++++ .../content/docs/alternatives/restate.mdx | 46 ++++++++ .../content/docs/alternatives/temporal.mdx | 90 ++++++++++++++++ .../content/docs/alternatives/trigger-dev.mdx | 73 +++++++++++++ packages/docs/next.config.mjs | 10 ++ .../docs/src/app/docs/[[...slug]]/page.tsx | 8 +- packages/docs/src/app/landing.css | 8 ++ packages/docs/src/app/layout.tsx | 7 ++ packages/docs/src/app/llms-full.txt/route.ts | 34 ++++++ .../src/app/llms.mdx/[[...slug]]/route.ts | 31 ++++++ packages/docs/src/app/llms.txt/route.ts | 58 ++++++++++ packages/docs/src/app/page.tsx | 4 +- packages/docs/src/app/robots.ts | 37 ++++++- packages/docs/src/app/sitemap.ts | 15 ++- packages/docs/src/components/faq.tsx | 31 ++++++ packages/docs/src/components/json-ld.tsx | 83 +++++++++++--- packages/docs/src/components/landing.tsx | 13 ++- packages/docs/src/components/mdx.tsx | 2 + packages/docs/src/lib/landing-content.ts | 53 +++++++++ packages/docs/src/lib/layout.shared.tsx | 1 + packages/docs/src/lib/metadata.ts | 12 ++- packages/docs/src/lib/site.ts | 55 ++++++++-- packages/docs/src/lib/source.ts | 53 ++++++++- 33 files changed, 1391 insertions(+), 34 deletions(-) create mode 100644 packages/docs/content/docs/alternatives/airflow.mdx create mode 100644 packages/docs/content/docs/alternatives/aws-step-functions.mdx create mode 100644 packages/docs/content/docs/alternatives/camunda.mdx create mode 100644 packages/docs/content/docs/alternatives/conductor.mdx create mode 100644 packages/docs/content/docs/alternatives/hatchet.mdx create mode 100644 packages/docs/content/docs/alternatives/iii.mdx create mode 100644 packages/docs/content/docs/alternatives/index.mdx create mode 100644 packages/docs/content/docs/alternatives/inngest.mdx create mode 100644 packages/docs/content/docs/alternatives/meta.json create mode 100644 packages/docs/content/docs/alternatives/open-source-workflow-engines.mdx create mode 100644 packages/docs/content/docs/alternatives/orkes.mdx create mode 100644 packages/docs/content/docs/alternatives/restate.mdx create mode 100644 packages/docs/content/docs/alternatives/temporal.mdx create mode 100644 packages/docs/content/docs/alternatives/trigger-dev.mdx create mode 100644 packages/docs/src/app/llms-full.txt/route.ts create mode 100644 packages/docs/src/app/llms.mdx/[[...slug]]/route.ts create mode 100644 packages/docs/src/app/llms.txt/route.ts create mode 100644 packages/docs/src/components/faq.tsx create mode 100644 packages/docs/src/lib/landing-content.ts diff --git a/packages/docs/content/docs/alternatives/airflow.mdx b/packages/docs/content/docs/alternatives/airflow.mdx new file mode 100644 index 0000000..43dc548 --- /dev/null +++ b/packages/docs/content/docs/alternatives/airflow.mdx @@ -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. + + + +## Next + +- [Concepts](/docs/guide/concepts) +- [System tasks](/docs/guide/system-tasks) diff --git a/packages/docs/content/docs/alternatives/aws-step-functions.mdx b/packages/docs/content/docs/alternatives/aws-step-functions.mdx new file mode 100644 index 0000000..9e682d2 --- /dev/null +++ b/packages/docs/content/docs/alternatives/aws-step-functions.mdx @@ -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. + + + +## Next + +- [Workflows](/docs/guide/workflows) +- [CLI](/docs/guide/cli) diff --git a/packages/docs/content/docs/alternatives/camunda.mdx b/packages/docs/content/docs/alternatives/camunda.mdx new file mode 100644 index 0000000..e7272e2 --- /dev/null +++ b/packages/docs/content/docs/alternatives/camunda.mdx @@ -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. + + + +## Next + +- [API](/docs/guide/api) +- [Workflows](/docs/guide/workflows) diff --git a/packages/docs/content/docs/alternatives/conductor.mdx b/packages/docs/content/docs/alternatives/conductor.mdx new file mode 100644 index 0000000..52ecd62 --- /dev/null +++ b/packages/docs/content/docs/alternatives/conductor.mdx @@ -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. + + + The compatibility layer is **not full Conductor or Orkes parity**. Read + [Migration boundaries](/docs/guide/conductor#migration-boundaries) before + switching a production fleet. + + +## 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. + + + +## 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). diff --git a/packages/docs/content/docs/alternatives/hatchet.mdx b/packages/docs/content/docs/alternatives/hatchet.mdx new file mode 100644 index 0000000..5fb8624 --- /dev/null +++ b/packages/docs/content/docs/alternatives/hatchet.mdx @@ -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. + + + +## Next + +- [Self-hosting](/docs/guide/self-hosting) +- [Open-source workflow engines](/docs/alternatives/open-source-workflow-engines) diff --git a/packages/docs/content/docs/alternatives/iii.mdx b/packages/docs/content/docs/alternatives/iii.mdx new file mode 100644 index 0000000..e013bd5 --- /dev/null +++ b/packages/docs/content/docs/alternatives/iii.mdx @@ -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. + + + +## Next + +- [Quickstart](/docs/guide/quickstart) +- [Workflows](/docs/guide/workflows) diff --git a/packages/docs/content/docs/alternatives/index.mdx b/packages/docs/content/docs/alternatives/index.mdx new file mode 100644 index 0000000..5ec421f --- /dev/null +++ b/packages/docs/content/docs/alternatives/index.mdx @@ -0,0 +1,100 @@ +--- +title: Workflow engine alternatives compared +description: How node-flow compares with Conductor, Orkes, Temporal, Trigger.dev, Inngest, Restate, iii, Hatchet, Step Functions, Airflow and Camunda — and when to pick each. +--- + +Choosing a workflow orchestrator is mostly choosing a **model**. Once the model +is right, the rest — languages, hosting, pricing — narrows quickly. These pages +compare node-flow with the engines people most often evaluate it against, and +say plainly when the other tool is the better fit. + +## The short version + +node-flow is a **self-hosted workflow orchestration engine** in the Netflix +Conductor tradition: a workflow is a JSON DAG, workers in any language poll for +the steps they own, and the engine owns retries, timeouts, compensation, waits +and human approvals. Its one infrastructure dependency is **PostgreSQL**. + +| | Workflow is… | Runs on | Workers in | Self-host footprint | +|---|---|---|---|---| +| **node-flow** | JSON DAG (data) | Your infrastructure | Any language, plain HTTP | Postgres only | +| [Netflix Conductor / Conductor OSS](/docs/alternatives/conductor) | JSON DAG (data) | Your infrastructure | Any language | JVM server plus queue, persistence and index stores | +| [Orkes Conductor](/docs/alternatives/orkes) | JSON DAG (data) | Orkes Cloud or enterprise install | Any language | Managed, or a commercial self-hosted install | +| [Temporal](/docs/alternatives/temporal) | Code (deterministic functions) | Temporal Cloud or self-hosted | Languages with a Temporal SDK | Server cluster plus a SQL or Cassandra store, optional Elasticsearch | +| [Trigger.dev](/docs/alternatives/trigger-dev) | TypeScript code | Trigger.dev Cloud or self-hosted | TypeScript | Webapp, Postgres, Redis, object storage, registry | +| [Inngest](/docs/alternatives/inngest) | Code (step functions) | Inngest Cloud or self-hosted | Languages with an Inngest SDK | Inngest server and its stores | +| [Restate](/docs/alternatives/restate) | Code (durable handlers) | Restate Cloud or self-hosted | Languages with a Restate SDK | Restate server | +| [iii](/docs/alternatives/iii) | Code (functions + triggers) | Self-hosted engine | Languages with an iii SDK | iii engine | +| [Hatchet](/docs/alternatives/hatchet) | Code (tasks and DAGs) | Hatchet Cloud or self-hosted | Languages with a Hatchet SDK | Hatchet engine plus Postgres | +| [AWS Step Functions](/docs/alternatives/aws-step-functions) | JSON state machine | AWS only | Lambda, AWS services, activity workers | None — fully managed | +| [Apache Airflow](/docs/alternatives/airflow) | Python DAG | Your infrastructure or a managed service | Python operators | Scheduler, metadata DB, executor | +| [Camunda](/docs/alternatives/camunda) | BPMN diagram | Camunda SaaS or self-managed | Job workers | Camunda platform components | + +Competitor details change quickly. Each page links to the vendor's own +documentation — check it before you decide. + +## Two models, one decision + + O2 --> O3 + end + subgraph DUR[Durable execution: Temporal, Restate, Inngest, Trigger.dev, iii, Hatchet] + D1[The workflow is code in your service] + D2[SDK replays or checkpoints it] + D3[One SDK per language] + D1 --> D2 --> D3 + end +`} +/> + +**Pick orchestration (node-flow)** when a process crosses teams, services or +languages; when operators who do not read your code need to see, retry or +terminate a run; when long waits and human approvals are normal; and when you +want to run one database rather than a platform. + +**Pick durable execution** when the whole workflow lives inside one team's +service, in one language, and is genuinely code — rich types, complex state, +logic that would be miserable as JSON. + +They also combine: node-flow can own a cross-team process and call a Temporal +workflow, a Trigger.dev task or a Lambda as one step. + +## By search + +- Looking for a **Netflix Conductor alternative** now that Netflix no longer maintains it? → [Conductor](/docs/alternatives/conductor) +- Looking for an **Orkes Conductor alternative** you can self-host without a licence negotiation? → [Orkes](/docs/alternatives/orkes) +- Looking for a **Temporal alternative** without determinism rules or a Cassandra cluster? → [Temporal](/docs/alternatives/temporal) +- Looking for a **Trigger.dev alternative** that is not TypeScript-only? → [Trigger.dev](/docs/alternatives/trigger-dev) +- Looking for an **open-source workflow orchestrator**? → [Open-source workflow engines](/docs/alternatives/open-source-workflow-engines) + + diff --git a/packages/docs/content/docs/alternatives/inngest.mdx b/packages/docs/content/docs/alternatives/inngest.mdx new file mode 100644 index 0000000..a670b5f --- /dev/null +++ b/packages/docs/content/docs/alternatives/inngest.mdx @@ -0,0 +1,61 @@ +--- +title: "Inngest alternative: node-flow vs Inngest" +description: node-flow vs Inngest — a self-hosted JSON workflow orchestrator with polling workers in any language, as an alternative to event-driven step functions. +--- + +**node-flow is an Inngest alternative for workflows that should be data, not +code.** Inngest runs *step functions*: event-triggered functions in your app, +written with its SDK, where each `step.run` is checkpointed and the function is +re-invoked over HTTP to continue. node-flow holds the workflow itself as a JSON +DAG, and workers — any language, no SDK required — poll for the steps they own. + +## Why people look for an Inngest alternative + +- **The workflow should outlive one codebase.** When a process spans several + services and teams, a JSON definition registered with the orchestrator is a + shared artefact; a function inside one app is not. +- **Pull, not push.** Inngest calls your endpoints. node-flow workers poll and + lease, so they can sit behind a firewall with no inbound route, and + concurrency caps and rate limits are enforced at dequeue on the server. +- **One dependency to self-host.** node-flow is one image on PostgreSQL 18. +- **Operators, not just developers.** Retry a step, rerun from a task, + terminate, bulk actions and a human-task inbox are in the dashboard. + +## node-flow vs Inngest at a glance + +| | node-flow | Inngest | +|---|---|---| +| Workflow is… | A JSON DAG | A function using the Inngest SDK | +| Execution | Workers poll and lease tasks | Inngest invokes your function over HTTP per step | +| Languages | Any, over HTTP | Languages with an Inngest SDK | +| Triggers | API, cron, signed webhooks, Kafka/NATS/AMQP/SQS/Redis Streams events | Events, cron, webhooks | +| Flow control | Concurrency, rate limits, semaphores enforced server-side at dequeue | Concurrency, throttling, debounce, priority | +| Human approvals | `HUMAN` task with inbox | `waitForEvent` plus your own UI | +| Self-hosting | PostgreSQL 18 | Inngest server with its own stores | +| Managed offering | Self-hosted | Inngest Cloud | + +## When Inngest is the better choice + +Choose Inngest when your workflows live inside one application, you like +defining them next to the code that runs them, and you want event-driven +features such as debounce and batching with a managed service behind them. + + + +## Next + +- [Execution controls](/docs/guide/execution-controls) +- [Workers](/docs/guide/workers) diff --git a/packages/docs/content/docs/alternatives/meta.json b/packages/docs/content/docs/alternatives/meta.json new file mode 100644 index 0000000..5e60b64 --- /dev/null +++ b/packages/docs/content/docs/alternatives/meta.json @@ -0,0 +1,23 @@ +{ + "title": "Compare", + "description": "node-flow against other workflow engines", + "root": true, + "pages": [ + "index", + "open-source-workflow-engines", + "---Conductor family---", + "conductor", + "orkes", + "---Durable execution---", + "temporal", + "trigger-dev", + "inngest", + "restate", + "iii", + "hatchet", + "---Other orchestrators---", + "aws-step-functions", + "airflow", + "camunda" + ] +} diff --git a/packages/docs/content/docs/alternatives/open-source-workflow-engines.mdx b/packages/docs/content/docs/alternatives/open-source-workflow-engines.mdx new file mode 100644 index 0000000..caa6087 --- /dev/null +++ b/packages/docs/content/docs/alternatives/open-source-workflow-engines.mdx @@ -0,0 +1,73 @@ +--- +title: Open-source workflow orchestrators compared +description: A practical guide to open-source and source-available workflow orchestration engines — Conductor OSS, Temporal, Airflow, Trigger.dev, Hatchet and node-flow — and how to choose. +--- + +If you searched for an **open-source workflow orchestrator**, you probably +want three things: to read the code, to self-host it, and not to pay per +execution. This page lays out the main options by licence and model, including +where node-flow fits — and why it is *source available* rather than open source. + +## node-flow's licence, stated up front + +node-flow is **source available**, not OSI open source. You can read the source, +run it for any purpose (including commercially and inside products you sell), +redistribute it unmodified, and patch your own deployment. You cannot publish +a fork or distribute a modified build. Your workflow definitions are yours and +untouched by the licence. Details are on the [Licence](/docs/guide/licence) page. + +If your organisation requires an OSI-approved licence, pick one of the +open-source engines below. + +## The options + +| Engine | Licence | Model | Required infrastructure | +|---|---|---|---| +| **node-flow** | Source available, free to run | JSON DAG, polyglot polling workers | PostgreSQL 18 | +| Conductor OSS | Apache 2.0 | JSON DAG, polyglot polling workers | JVM server plus queue, persistence and index stores | +| Temporal | MIT | Durable code | Temporal services plus a SQL or Cassandra store | +| Apache Airflow | Apache 2.0 | Python DAGs, scheduled | Scheduler, metadata DB, executor | +| Trigger.dev | Apache 2.0 | TypeScript tasks | Webapp, Postgres, Redis, object storage, registry | +| Hatchet | MIT | Code-defined tasks and DAGs | Engine plus Postgres | +| Camunda 7 Community | Apache 2.0 (end of life for community) | BPMN | JVM plus a SQL database | + +Licences change — several projects in this space have moved between licences +in recent years. Check each project's repository before you commit. + +## How to choose + +1. **Is the workflow code or data?** If it lives in one team's service and is + genuinely code, look at Temporal, Hatchet or Trigger.dev. If it is a process + several teams and an operator need to see and change, look at Conductor OSS + or node-flow. +2. **What will you operate?** Count the stateful systems. node-flow and Hatchet + lean on Postgres; Temporal and Conductor OSS add more. +3. **Which languages?** Polling-worker engines work with anything that speaks + HTTP; SDK-based engines work with the languages they ship SDKs for. +4. **Batch or per-event?** Scheduled data pipelines belong in Airflow. + Per-event business processes belong in an orchestrator. + + + +## Next + +- [Workflow engine alternatives compared](/docs/alternatives) +- [Quickstart](/docs/guide/quickstart) diff --git a/packages/docs/content/docs/alternatives/orkes.mdx b/packages/docs/content/docs/alternatives/orkes.mdx new file mode 100644 index 0000000..2f85c3c --- /dev/null +++ b/packages/docs/content/docs/alternatives/orkes.mdx @@ -0,0 +1,77 @@ +--- +title: "Orkes Conductor alternative: node-flow vs Orkes" +description: node-flow vs Orkes Conductor — a self-hosted, Conductor-compatible workflow engine with RBAC, SSO and AI tasks, free to run commercially on Postgres alone. +--- + +**node-flow is a self-hosted alternative to Orkes Conductor.** Orkes is the +company founded by Conductor's original creators; it sells Conductor as a +managed cloud and as an enterprise install. node-flow offers the same workflow +model and a Conductor-compatible API as software you run yourself, on one +Postgres database, with no licence fee. + +## Why people look for an Orkes alternative + +- **Self-hosting without a sales process.** Running node-flow in production — + for a business, inside a product you sell, for your customers — needs no + commercial licence, seat count or revenue threshold. +- **Data residency.** Every workflow input, output and secret stays in your own + Postgres, in your own network. +- **Enterprise features, included.** Namespaces, RBAC with groups and tags, + OIDC and SAML SSO, service accounts, mTLS, sealed secrets, audit log and + quotas are part of node-flow, not a paid tier. +- **One dependency.** Orkes' self-hosted distribution runs on a larger backend + stack; node-flow needs PostgreSQL 18. + +## node-flow vs Orkes at a glance + +| | node-flow | Orkes Conductor | +|---|---|---| +| Workflow model | JSON DAG, Conductor-style | JSON DAG, Conductor | +| Hosting | Self-hosted — Docker, Kubernetes, any managed Postgres | Orkes Cloud, or enterprise self-hosted | +| Price | Free to run, including commercially | Commercial | +| Infrastructure | PostgreSQL 18 only | Managed, or a multi-store backend when self-hosted | +| Conductor SDKs | Supported through `/conductor/api` | Native | +| RBAC, SSO, audit | Included | Included in commercial plans | +| AI / LLM tasks | LLM text and chat, embeddings, vector indexes in Postgres, MCP, `AGENT`, guardrails | Included in Orkes' product | +| Human tasks | `HUMAN` tasks with an inbox in the dashboard | Included | +| Support | Community, or terms by agreement | Commercial support | + +## When Orkes is the better choice + +- You want someone else to operate the orchestrator, with an SLA. +- You rely on Orkes-specific features, integrations or SDK behaviour beyond the + Conductor API node-flow implements. +- Your procurement process needs an established vendor and a standard licence. + +## Moving from Orkes + +The path is the same as from Conductor OSS: change the SDK base URL to +node-flow's `/conductor` prefix, create node-flow service accounts, register +your definitions and move workers one queue at a time. Orkes credentials are +not imported — see [Conductor compatibility](/docs/guide/conductor#credentials-and-permissions). + + + +## Next + +- [Quickstart](/docs/guide/quickstart) +- [Security](/docs/guide/security) +- [Netflix Conductor alternative](/docs/alternatives/conductor) diff --git a/packages/docs/content/docs/alternatives/restate.mdx b/packages/docs/content/docs/alternatives/restate.mdx new file mode 100644 index 0000000..eb0c88c --- /dev/null +++ b/packages/docs/content/docs/alternatives/restate.mdx @@ -0,0 +1,46 @@ +--- +title: "Restate alternative: node-flow vs Restate" +description: node-flow vs Restate — JSON-defined orchestration with polling workers in any language, compared with Restate's durable handlers and virtual objects. +--- + +**node-flow is a Restate alternative when you want orchestration rather than +durable RPC.** Restate is a durable-execution server: your services register +handlers, Restate proxies calls to them and journals each step so a handler +resumes where it stopped. node-flow keeps the process as a JSON DAG and leases +each step to a worker — the engine, not a handler, owns control flow. + +## node-flow vs Restate at a glance + +| | node-flow | Restate | +|---|---|---| +| Workflow is… | A JSON DAG | Code in durable handlers, workflows and virtual objects | +| How work reaches your code | Workers poll and lease | Restate pushes invocations to your service | +| Languages | Any, over HTTP | Languages with a Restate SDK | +| Storage | PostgreSQL 18 — queryable with SQL, backed up like any database | Restate's own embedded log and state store | +| Visual DAG, editor and operator actions | Yes | Run inspection in Restate's UI and CLI | +| Human approvals | `HUMAN` task with inbox | Awakeables / durable promises plus your own UI | +| Conductor API | Yes | No | + +## Choose which + +**Choose Restate** for low-latency durable RPC between services you own — +exactly-once-style handlers, keyed virtual objects, sagas written as code. + +**Choose node-flow** when the process should be a readable, versioned +document; when steps are run by many teams' workers in many languages; and when +you want all state in a Postgres database your team already knows how to run. + + + +## Next + +- [What node-flow is](/docs/guide) +- [Temporal alternative](/docs/alternatives/temporal) diff --git a/packages/docs/content/docs/alternatives/temporal.mdx b/packages/docs/content/docs/alternatives/temporal.mdx new file mode 100644 index 0000000..f9a270b --- /dev/null +++ b/packages/docs/content/docs/alternatives/temporal.mdx @@ -0,0 +1,90 @@ +--- +title: "Temporal alternative: node-flow vs Temporal" +description: node-flow vs Temporal — JSON workflows and polyglot workers instead of deterministic workflow code, on Postgres alone instead of a Temporal cluster. +--- + +**node-flow is a Temporal alternative for processes that cross teams, services +and languages.** Temporal makes *code* durable: your workflow is a function +that the SDK replays from an event history. node-flow orchestrates a *document*: +the workflow is a JSON DAG the engine reads, and your code only ever +implements one step. The two answer different questions, and it is worth being +honest about which one you have. + +## Why people look for a Temporal alternative + +- **Determinism rules.** Temporal workflow code must be deterministic — no + direct clock, randomness, network or unversioned logic changes — because it + is replayed. node-flow workers are ordinary code with no such rules; the + engine is the only deterministic part, and it is ours to keep that way. +- **Versioning in-flight workflows.** Changing Temporal workflow code while + runs are in flight needs patching or worker versioning. A node-flow + definition is versioned data: running executions keep the version they + started with. +- **Running the cluster.** Self-hosted Temporal is a set of services (frontend, + history, matching, worker) over Cassandra, MySQL or PostgreSQL, with + Elasticsearch commonly added for advanced visibility. node-flow is one image + on one Postgres database. +- **People who are not the workflow's author.** In node-flow an operator can + open a run in the dashboard, see the DAG, retry a step, rerun from a task or + terminate — without reading the code that defined it. + +## node-flow vs Temporal at a glance + +| | node-flow | Temporal | +|---|---|---| +| Workflow is… | A JSON DAG (data) | Code in a Temporal SDK | +| Determinism constraints on your code | None | Workflow code must be deterministic | +| Worker languages | Any — workers are HTTP clients; generated Python, Go, Java, TypeScript clients | Languages with an official SDK | +| Worker runtime | None; poll, do the work, report | SDK workflow runtime in your process | +| Infrastructure | PostgreSQL 18 | Temporal services + Cassandra/MySQL/PostgreSQL, optional Elasticsearch | +| Long waits and timers | One row per wait, no worker held | Durable timers | +| Human approvals | First-class `HUMAN` task and inbox | Built from signals and your own UI | +| Visual editing | DAG editor in the dashboard | Not applicable — workflows are code | +| Testing | `testkit` runs a definition with no server | SDK test environments with time skipping | +| Conductor compatibility | Yes | No | +| Managed offering | Self-hosted | Temporal Cloud | +| Licence | Source available, free to run commercially | MIT | + +## When Temporal is the better choice + +Choose Temporal when the workflow lives inside **one team's service, in one +language**, and is genuinely code: complex state, rich types, loops whose logic +would be painful to express as JSON. Temporal's model is excellent at that, its +ecosystem is large, and Temporal Cloud removes the operational cost. + +## Using both + +They are not mutually exclusive. A common shape is node-flow owning the +cross-team process — the one operators look at — and calling a Temporal +workflow as a single `SIMPLE` step inside it. + + + +## Next + +- [What node-flow is](/docs/guide) — the model, and when not to use it. +- [Workflows](/docs/guide/workflows) — the JSON DSL. +- [Workers](/docs/guide/workers) — writing one in any language. diff --git a/packages/docs/content/docs/alternatives/trigger-dev.mdx b/packages/docs/content/docs/alternatives/trigger-dev.mdx new file mode 100644 index 0000000..a2b6d64 --- /dev/null +++ b/packages/docs/content/docs/alternatives/trigger-dev.mdx @@ -0,0 +1,73 @@ +--- +title: "Trigger.dev alternative: node-flow vs Trigger.dev" +description: node-flow vs Trigger.dev — language-agnostic workers and JSON workflows on your own Postgres, instead of TypeScript tasks deployed to a task runtime. +--- + +**node-flow is a Trigger.dev alternative for teams whose work is not all +TypeScript, or not all in one codebase.** Trigger.dev is a platform for +background jobs and AI agents written as TypeScript tasks, which it builds, +deploys and runs for you. node-flow is an orchestrator: it runs a JSON workflow +and hands each step to whichever worker owns it — in TypeScript, Python, Go, +Java, Rust or a plain HTTP client — running wherever you already run code. + +## Why people look for a Trigger.dev alternative + +- **More than one language.** Trigger.dev tasks are TypeScript. node-flow's + worker protocol is HTTP, so a Python ML service and a Go payments service can + be steps in the same workflow. +- **Your compute stays yours.** node-flow does not build or host your code. + Workers are processes you already deploy; node-flow only leases them work. +- **A smaller self-hosted footprint.** Self-hosting Trigger.dev means its + webapp and supervisor plus Postgres, Redis, object storage and a container + registry. node-flow needs Postgres. +- **Processes, not just jobs.** Fork/join, switch, loops, sub-workflows, saga + compensation, human approvals and waits of days are workflow primitives, and + the whole graph is visible to operators. + +## node-flow vs Trigger.dev at a glance + +| | node-flow | Trigger.dev | +|---|---|---| +| Unit of work | A step in a JSON DAG | A TypeScript task | +| Languages | Any, over HTTP | TypeScript (can shell out to other runtimes) | +| Where your code runs | Your own workers, anywhere | Trigger.dev's runtime (cloud or self-hosted) | +| Deploy step | None for workers; register a definition | Build and deploy tasks with the CLI | +| Self-hosted dependencies | PostgreSQL 18 | Postgres, Redis, object storage, registry and more | +| Orchestration | Operators: `SWITCH`, `FORK_JOIN`, `DO_WHILE`, `SUB_WORKFLOW`, saga compensation | Code: `triggerAndWait`, batch triggers | +| Human approvals | `HUMAN` task with inbox | Wait tokens, your own UI | +| Schedules and webhooks | Leased cron with timezones; signed inbound webhooks | Scheduled tasks; triggers from your code | +| Managed offering | Self-hosted | Trigger.dev Cloud | +| Licence | Source available, free to run commercially | Apache 2.0 | + +## When Trigger.dev is the better choice + +Choose Trigger.dev when your team is TypeScript-first, wants background jobs +colocated with an app, and would rather not operate the compute that runs them. +Its developer experience for that case — local dev, deploys, realtime run +updates in your frontend — is excellent. + + + +## Next + +- [Quickstart](/docs/guide/quickstart) +- [System tasks](/docs/guide/system-tasks) — what runs without a worker. +- [Inngest alternative](/docs/alternatives/inngest) diff --git a/packages/docs/next.config.mjs b/packages/docs/next.config.mjs index e63b3dd..7c456f5 100644 --- a/packages/docs/next.config.mjs +++ b/packages/docs/next.config.mjs @@ -8,6 +8,16 @@ import { createMDX } from 'fumadocs-mdx/next'; */ const nextConfig = { reactStrictMode: true, + /** + * Every docs page has a Markdown twin at its own URL plus `.md`, for LLM + * crawlers and agents; `app/llms.mdx` serves it. A rewrite, not a redirect, + * so the address an agent quotes is the one it fetched. + */ + async rewrites() { + return [ + { source: '/docs/:path*.md', destination: '/llms.mdx/:path*' }, + ]; + }, }; export default createMDX()(nextConfig); diff --git a/packages/docs/src/app/docs/[[...slug]]/page.tsx b/packages/docs/src/app/docs/[[...slug]]/page.tsx index e1aeeb4..1bdcd13 100644 --- a/packages/docs/src/app/docs/[[...slug]]/page.tsx +++ b/packages/docs/src/app/docs/[[...slug]]/page.tsx @@ -6,7 +6,12 @@ import { DocsPage, DocsTitle, } from 'fumadocs-ui/page'; -import { pageImage, sectionOf, source } from '../../../lib/source'; +import { + markdownUrl, + pageImage, + sectionOf, + source, +} from '../../../lib/source'; import { pageMetadata } from '../../../lib/metadata'; import { site } from '../../../lib/site'; import { JsonLd, docGraph } from '../../../components/json-ld'; @@ -61,5 +66,6 @@ export async function generateMetadata(props: { path: page.url, image: pageImage(page).url, type: 'article', + markdown: markdownUrl(page), }); } diff --git a/packages/docs/src/app/landing.css b/packages/docs/src/app/landing.css index 039b581..a525630 100644 --- a/packages/docs/src/app/landing.css +++ b/packages/docs/src/app/landing.css @@ -153,6 +153,14 @@ .nf-terminal-prompt { display: flex; gap: 12px; align-items: center; color: #71ceef; margin-top: 25px; }.nf-terminal-prompt i { height: 12px; width: 6px; background: #9baad4; animation: nf-cursor 1.2s step-end infinite; }.nf-copy-feedback { display: block; min-height: 24px; margin-top: 25px; color: #969eb3; font-size: 8px; } .nf-docs-section { border-top: 1px solid var(--nf-line); }.nf-docs-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }.nf-docs-heading > a { margin-bottom: 7px; }.nf-docs-grid { gap: 12px; margin-top: 40px; } .nf-doc-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--nf-line); border-radius: 7px; background: linear-gradient(145deg, #171922, #111216); transition: transform .3s, border-color .3s, box-shadow .3s; }.nf-doc-card:hover { transform: translateY(-6px); border-color: #738aff5c; box-shadow: 0 10px 35px #5267eb0d; }.nf-doc-icon { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #93a5ff26; border-radius: 7px; color: #8bacf4; background: #657dff0e; }.nf-doc-card:nth-child(2n) .nf-doc-icon { color: #ba9fff; }.nf-doc-icon svg { width: 17px; height: 17px; }.nf-doc-card h3 { margin: 25px 0 12px; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -.02em; }.nf-doc-card p { color: var(--nf-muted); font-size: 11px; line-height: 1.8; margin: 0 0 30px; }.nf-doc-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; font-size: 10px; color: #c6cfe5; }.nf-doc-link svg { width: 14px; height: 14px; transition: transform .25s; }.nf-doc-card:hover .nf-doc-link svg { transform: translateX(4px); } +.nf-faq-list { display: grid; gap: 10px; margin-top: 40px; max-width: 860px; } +.nf-faq-item { padding: 0 24px; border: 1px solid var(--nf-line); border-radius: 7px; background: linear-gradient(145deg, #171922, #111216); } +.nf-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; } +.nf-faq-item summary::-webkit-details-marker { display: none; } +.nf-faq-item summary::after { content: '+'; flex: none; color: #8bacf4; font-size: 18px; line-height: 1; transition: transform .25s; } +.nf-faq-item[open] summary::after { transform: rotate(45deg); } +.nf-faq-item h3 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -.02em; } +.nf-faq-item p { margin: 0 0 22px; color: var(--nf-muted); font-size: 13px; line-height: 1.8; } .nf-final { position: relative; isolation: isolate; overflow: hidden; padding: 105px 0 110px; text-align: center; border-top: 1px solid var(--nf-line); background: radial-gradient(ellipse at 50% 90%, #3d3aa824, transparent 65%); } .nf-final h2 { font-size: clamp(64px, 9vw, 110px); letter-spacing: -.06em; color: transparent; background: linear-gradient(100deg, #74ddf3 20%, #85a2ff 50%, #c998ff 80%); background-clip: text; }.nf-final p { margin: 21px 0 30px; font-size: 14px; color: #acb2c4; } .nf-final-rings { position: absolute; inset: 0; z-index: -1; pointer-events: none; }.nf-final-rings i { position: absolute; width: 730px; height: 730px; top: 65%; left: 50%; translate: -50% -50%; border: 1px solid #8fa0ed0f; border-radius: 50%; animation: nf-ring 9s ease-out infinite; }.nf-final-rings i:nth-child(2) { animation-delay: -3s; }.nf-final-rings i:nth-child(3) { animation-delay: -6s; } diff --git a/packages/docs/src/app/layout.tsx b/packages/docs/src/app/layout.tsx index d659421..67acfe1 100644 --- a/packages/docs/src/app/layout.tsx +++ b/packages/docs/src/app/layout.tsx @@ -70,6 +70,13 @@ export const metadata: Metadata = { 'max-video-preview': -1, }, }, + verification: { + google: site.verification.google, + yandex: site.verification.yandex, + other: site.verification.bing + ? { 'msvalidate.01': site.verification.bing } + : undefined, + }, formatDetection: { telephone: false, email: false, address: false }, }; diff --git a/packages/docs/src/app/llms-full.txt/route.ts b/packages/docs/src/app/llms-full.txt/route.ts new file mode 100644 index 0000000..1d39983 --- /dev/null +++ b/packages/docs/src/app/llms-full.txt/route.ts @@ -0,0 +1,34 @@ +import { markdownOf, source } from '../../lib/source'; +import { site } from '../../lib/site'; + +/** + * `/llms-full.txt` — every documentation page, concatenated as Markdown. + * + * The companion to `/llms.txt` for readers that would rather take the whole + * corpus in one fetch than follow links. The guide comes first and the + * comparison pages second, because that is the order a reader deciding + * whether to use node-flow needs them in. + */ +export const dynamic = 'force-static'; + +const ORDER = ['guide', 'alternatives', 'contributing']; + +export async function GET() { + const pages = [...source.getPages()].sort( + (a, b) => + rank(a.slugs[0]) - rank(b.slugs[0]) || a.url.localeCompare(b.url), + ); + const texts = await Promise.all(pages.map(markdownOf)); + + return new Response( + [`# ${site.displayName} documentation\n\n> ${site.description}\n`, ...texts].join( + '\n---\n\n', + ), + { headers: { 'Content-Type': 'text/plain; charset=utf-8' } }, + ); +} + +function rank(section: string | undefined) { + const index = ORDER.indexOf(section ?? ''); + return index === -1 ? ORDER.length : index; +} diff --git a/packages/docs/src/app/llms.mdx/[[...slug]]/route.ts b/packages/docs/src/app/llms.mdx/[[...slug]]/route.ts new file mode 100644 index 0000000..182a387 --- /dev/null +++ b/packages/docs/src/app/llms.mdx/[[...slug]]/route.ts @@ -0,0 +1,31 @@ +import { notFound } from 'next/navigation'; +import { markdownOf, source } from '../../../lib/source'; + +/** + * Every documentation page as Markdown, at its own URL plus `.md`. + * + * LLM crawlers and coding agents read text, not rendered HTML; handing them + * the page without navigation, scripts and markup is the difference between + * the page being quoted accurately and being summarised from the sidebar. + * Reached through the rewrite in `next.config.mjs`; this path itself is an + * implementation detail. + */ +export const revalidate = false; +export const dynamicParams = false; + +export async function GET( + _request: Request, + { params }: { params: Promise<{ slug?: string[] }> }, +) { + const { slug } = await params; + const page = source.getPage(slug); + if (!page) notFound(); + + return new Response(await markdownOf(page), { + headers: { 'Content-Type': 'text/markdown; charset=utf-8' }, + }); +} + +export function generateStaticParams() { + return source.generateParams(); +} diff --git a/packages/docs/src/app/llms.txt/route.ts b/packages/docs/src/app/llms.txt/route.ts new file mode 100644 index 0000000..0384e3b --- /dev/null +++ b/packages/docs/src/app/llms.txt/route.ts @@ -0,0 +1,58 @@ +import { source } from '../../lib/source'; +import { absoluteUrl, site } from '../../lib/site'; + +/** + * `/llms.txt` — the site as an index an LLM can read in one request. + * + * The format (llmstxt.org) is a Markdown file: a title, a one-paragraph + * summary, then sections of links with a line each. Answer engines and coding + * agents fetch it to decide which pages to read, so the summary states plainly + * what node-flow is and what it is an alternative to, and every link points at + * the page's Markdown twin rather than its HTML. + */ +export const dynamic = 'force-static'; + +const SECTION_TITLES: Record = { + guide: 'Guide — running node-flow and building workflows', + alternatives: 'Compare — node-flow against other workflow engines', + contributing: 'Contributing — how node-flow is built', +}; + +export function GET() { + const groups = new Map(); + for (const page of source.getPages()) { + const key = page.slugs[0] ?? ''; + const line = `- [${page.data.title}](${absoluteUrl(`${page.url}.md`)})${ + page.data.description ? `: ${page.data.description}` : '' + }`; + groups.set(key, [...(groups.get(key) ?? []), line]); + } + + const sections = ['guide', 'alternatives', 'contributing'] + .filter((key) => groups.has(key)) + .map((key) => `## ${SECTION_TITLES[key]}\n\n${groups.get(key)!.join('\n')}`); + + const body = `# ${site.displayName} + +> ${site.description} + +node-flow is a workflow orchestrator: a workflow is a declarative JSON DAG, workers in any language (TypeScript, Python, Go, Java, Rust or plain HTTP) poll for the steps they own, and the engine handles retries, timeouts, compensation (sagas), waits, human approvals, sub-workflows, cron schedules, webhooks and LLM/AI tasks. PostgreSQL 18 is its only infrastructure dependency — no Redis, Cassandra, Elasticsearch or Kafka required. It exposes a Conductor-compatible API at \`/conductor/api\`, so it can replace Netflix Conductor or Orkes Conductor for supported workflow and worker endpoints. + +Licence: source available (free to run, including commercially; modified redistribution is not permitted). It is not an OSI open-source licence. + +- Website and docs: ${site.url} +- Source code: ${site.repository} +- Full text of every page: ${absoluteUrl('/llms-full.txt')} +- OpenAPI document: ${absoluteUrl('/api/openapi')} + +${sections.join('\n\n')} + +## Optional + +- [API reference](${absoluteUrl('/api-reference')}): every REST endpoint, rendered from the OpenAPI document. +`; + + return new Response(body, { + headers: { 'Content-Type': 'text/plain; charset=utf-8' }, + }); +} diff --git a/packages/docs/src/app/page.tsx b/packages/docs/src/app/page.tsx index ac374da..e76df9b 100644 --- a/packages/docs/src/app/page.tsx +++ b/packages/docs/src/app/page.tsx @@ -1,6 +1,7 @@ import type { Metadata } from 'next'; -import { JsonLd, siteGraph } from '../components/json-ld'; +import { JsonLd, faqGraph, siteGraph } from '../components/json-ld'; import { LandingPage } from '../components/landing'; +import { landingFaq } from '../lib/landing-content'; import { pageMetadata } from '../lib/metadata'; import { site } from '../lib/site'; import './landing.css'; @@ -19,6 +20,7 @@ export default function Home() { return ( <> + ); diff --git a/packages/docs/src/app/robots.ts b/packages/docs/src/app/robots.ts index e643141..c3d2a26 100644 --- a/packages/docs/src/app/robots.ts +++ b/packages/docs/src/app/robots.ts @@ -15,11 +15,46 @@ import { absoluteUrl } from '../lib/site'; * * Only the search endpoint is excluded: it answers queries, and indexing its * responses would put arbitrary result lists in search results. + * + * ## AI crawlers are named, and welcomed + * + * A `*` rule already admits them, but several answer engines treat an explicit + * `Allow` as the stronger signal, and naming them documents a decision rather + * than leaving it to a default: this site *wants* to be what ChatGPT, Claude, + * Perplexity, Gemini and Copilot quote when someone asks for a Conductor or + * Temporal alternative. `Google-Extended` and `Applebot-Extended` are the + * opt-ins for training and grounding, separate from ordinary search indexing. */ export default function robots(): MetadataRoute.Robots { return { - rules: [{ userAgent: '*', allow: '/', disallow: ['/api/search'] }], + rules: [ + { userAgent: '*', allow: '/', disallow: ['/api/search'] }, + { userAgent: AI_CRAWLERS, allow: '/', disallow: ['/api/search'] }, + ], sitemap: absoluteUrl('/sitemap.xml'), host: absoluteUrl('/'), }; } + +const AI_CRAWLERS = [ + 'GPTBot', + 'OAI-SearchBot', + 'ChatGPT-User', + 'ClaudeBot', + 'Claude-SearchBot', + 'Claude-User', + 'anthropic-ai', + 'PerplexityBot', + 'Perplexity-User', + 'Google-Extended', + 'Applebot', + 'Applebot-Extended', + 'Bingbot', + 'DuckAssistBot', + 'cohere-ai', + 'MistralAI-User', + 'meta-externalagent', + 'Amazonbot', + 'YouBot', + 'CCBot', +]; diff --git a/packages/docs/src/app/sitemap.ts b/packages/docs/src/app/sitemap.ts index f18c22f..c1f57dc 100644 --- a/packages/docs/src/app/sitemap.ts +++ b/packages/docs/src/app/sitemap.ts @@ -25,7 +25,20 @@ export default function sitemap(): MetadataRoute.Sitemap { ...source.getPages().map((page) => ({ url: absoluteUrl(page.url), changeFrequency: 'weekly' as const, - priority: 0.8, + priority: PRIORITY[page.slugs[0] ?? ''] ?? 0.7, })), ]; } + +/** + * How much each section matters relative to the rest of the site. + * + * The guide and the comparison pages are what someone searching for a + * workflow engine should land on; the contributor docs are for people already + * inside the project. + */ +const PRIORITY: Record = { + guide: 0.8, + alternatives: 0.9, + contributing: 0.5, +}; diff --git a/packages/docs/src/components/faq.tsx b/packages/docs/src/components/faq.tsx new file mode 100644 index 0000000..56175bc --- /dev/null +++ b/packages/docs/src/components/faq.tsx @@ -0,0 +1,31 @@ +import { JsonLd, faqGraph, type FaqItem } from './json-ld'; + +/** + * Questions and answers, rendered as readable text *and* as `FAQPage` + * structured data from the same array. + * + * One source for both is the point: structured data that says something the + * page does not is how a site loses rich results, and two copies of an answer + * drift. Plain headings and paragraphs rather than an accordion, so every + * answer is in the HTML a crawler reads without running a click handler. + */ +export function FAQ({ + items, + title = 'Frequently asked questions', +}: { + items: FaqItem[]; + title?: string; +}) { + return ( +
+ +

{title}

+ {items.map(({ question, answer }) => ( +
+

{question}

+

{answer}

+
+ ))} +
+ ); +} diff --git a/packages/docs/src/components/json-ld.tsx b/packages/docs/src/components/json-ld.tsx index d0f1713..b79d34f 100644 --- a/packages/docs/src/components/json-ld.tsx +++ b/packages/docs/src/components/json-ld.tsx @@ -22,6 +22,16 @@ export function JsonLd({ data }: { data: Record }) { const websiteId = absoluteUrl('/#website'); const softwareId = absoluteUrl('/#software'); +const authorId = absoluteUrl('/#author'); +const sourceId = absoluteUrl('/#source'); + +const author = { + '@type': 'Person', + '@id': authorId, + name: site.author.name, + url: site.author.url, + sameAs: [site.author.url, 'https://www.dwaipayan.in/'], +}; /** * What the site is, and what it documents. @@ -42,12 +52,9 @@ export const siteGraph = { alternateName: site.name, description: site.description, inLanguage: 'en', - publisher: { - '@type': 'Person', - name: site.author.name, - url: site.author.url, - }, + publisher: { '@id': authorId }, }, + author, { '@type': 'SoftwareApplication', '@id': softwareId, @@ -58,18 +65,44 @@ export const siteGraph = { image: absoluteUrl('/og/image.png'), logo: absoluteUrl('/brand/node-flow-mark.png'), applicationCategory: 'DeveloperApplication', + applicationSubCategory: 'Workflow orchestration engine', + keywords: site.keywords.join(', '), + featureList: [ + 'Declarative JSON workflow DSL (DAG)', + 'Workers in any language over HTTP long-poll', + 'PostgreSQL as the only infrastructure dependency', + 'Retries, timeouts, rate limits and concurrency limits enforced server-side', + 'Saga compensation, sub-workflows, fork/join, loops, switch', + 'Long waits, timers and human approval tasks', + 'Cron schedules, inbound webhooks and event handlers', + 'LLM, embedding, vector search, MCP and durable AI agent tasks', + 'Netflix Conductor / Orkes Conductor compatible API', + 'BPMN 2.0 import', + 'Deterministic replay and unit tests without a server', + 'RBAC, SSO (OIDC, SAML), audit log and namespaces', + ], + sameAs: [site.repository], operatingSystem: 'Linux, macOS, Windows (Docker)', softwareVersion: '1.0.0', softwareRequirements: 'PostgreSQL 18', license: `${site.repository}/blob/main/LICENSE`, downloadUrl: site.repository, - author: { - '@type': 'Person', - name: site.author.name, - url: site.author.url, - }, + installUrl: absoluteUrl('/docs/guide/quickstart'), + author: { '@id': authorId }, offers: { '@type': 'Offer', price: '0', priceCurrency: 'USD' }, }, + { + '@type': 'SoftwareSourceCode', + '@id': sourceId, + name: site.name, + description: site.description, + codeRepository: site.repository, + programmingLanguage: ['TypeScript', 'SQL'], + runtimePlatform: 'Node.js', + license: `${site.repository}/blob/main/LICENSE`, + author: { '@id': authorId }, + targetProduct: { '@id': softwareId }, + }, ], }; @@ -116,11 +149,7 @@ export function docGraph({ image: absoluteUrl(image), isPartOf: { '@id': websiteId }, about: { '@id': softwareId }, - author: { - '@type': 'Person', - name: site.author.name, - url: site.author.url, - }, + author, }, { '@type': 'BreadcrumbList', @@ -133,3 +162,27 @@ export function docGraph({ ], }; } + +export interface FaqItem { + question: string; + answer: string; +} + +/** + * A `FAQPage` for questions a page answers visibly. + * + * Structured data must describe what is on the page — Google treats markup for + * content a reader cannot see as spam — so this is only ever emitted by the + * `` component, alongside the rendered questions themselves. + */ +export function faqGraph(items: FaqItem[]) { + return { + '@context': 'https://schema.org', + '@type': 'FAQPage', + mainEntity: items.map(({ question, answer }) => ({ + '@type': 'Question', + name: question, + acceptedAnswer: { '@type': 'Answer', text: answer }, + })), + }; +} diff --git a/packages/docs/src/components/landing.tsx b/packages/docs/src/components/landing.tsx index bcb4d4c..0b8596e 100644 --- a/packages/docs/src/components/landing.tsx +++ b/packages/docs/src/components/landing.tsx @@ -3,6 +3,7 @@ import Image from 'next/image'; import Link from 'next/link'; import { useEffect, useRef, useState, type CSSProperties } from 'react'; +import { comparisons, landingFaq } from '../lib/landing-content'; function Icon({ name = 'arrow', ...props }: { name?: string; className?: string }) { const paths: Record = { @@ -141,10 +142,10 @@ export function LandingPage() {
- {menu && } + {menu && }
@@ -153,7 +154,7 @@ export function LandingPage() {
Source available. Built on Postgres.

Complex workflows.
Beautifully orchestrated.

-

Turn distributed work into a flow you can follow.
Durable execution, workers in any language, and just one dependency.

+

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
Source available Self-hostable Postgres-powered
@@ -210,6 +211,10 @@ export function LandingPage() {
THE NEXT STEP IS YOURS

Built for builders.
Documented for humans.

All documentation
{docs.map((item, i) =>

{item.title}

{item.text}

{item.label})}
+
04 / HOW IT COMPARES

A Conductor, Temporal and
Trigger.dev alternative.

All comparisons
{comparisons.map((item, i) =>

{item.name === 'Open-source engines' ? 'Open-source workflow engines' : `${item.name} alternative`}

{item.text}

node-flow vs {item.name})}
+ +
05 / QUESTIONS

Frequently asked.
Plainly answered.

{landingFaq.map(item =>

{item.question}

{item.answer}

)}
+
YOUR INFRASTRUCTURE. YOUR RULES.

Let it flow.

Your next workflow starts with a single step.

Start building with Node Flow
@@ -231,6 +236,6 @@ export function LandingPage() {
-

Source available. Free to run, including commercially. Built to keep work moving.

+

Source available. Free to run, including commercially. Built to keep work moving.

; } 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..075cb29 --- /dev/null +++ b/packages/docs/src/lib/landing-content.ts @@ -0,0 +1,53 @@ +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..c6086d6 100644 --- a/packages/docs/src/lib/layout.shared.tsx +++ b/packages/docs/src/lib/layout.shared.tsx @@ -21,6 +21,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 `<meta name="keywords">`, 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<string, string> = { guide: 'Guide', contributing: 'Contributing', + alternatives: 'Compare', }; /** @@ -62,3 +71,45 @@ const SECTIONS: Record<string, string> = { 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 `<FAQ>` 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(/<FAQ\s+items="([\s\S]*?)"\s*\/>/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'); + }); +} From d423f269f1755f12f6f68bf24ab9d886faaf8e33 Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Thu, 24 Sep 2026 06:18:55 +0000 Subject: [PATCH 2/2] style(docs): apply prettier to the files this branch touches CI's `nx format:check` covers every changed file, including landing.css and landing.tsx, which were not prettier-formatted on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016G6Nhuho3hTe6WLcMCPp2e --- packages/docs/next.config.mjs | 4 +- .../docs/src/app/docs/[[...slug]]/page.tsx | 7 +- packages/docs/src/app/landing.css | 2520 +++++++++++++++-- packages/docs/src/app/llms-full.txt/route.ts | 10 +- packages/docs/src/app/llms.txt/route.ts | 4 +- packages/docs/src/components/landing.tsx | 1254 +++++++- packages/docs/src/lib/landing-content.ts | 48 +- packages/docs/src/lib/layout.shared.tsx | 8 +- 8 files changed, 3426 insertions(+), 429 deletions(-) diff --git a/packages/docs/next.config.mjs b/packages/docs/next.config.mjs index 7c456f5..4a31027 100644 --- a/packages/docs/next.config.mjs +++ b/packages/docs/next.config.mjs @@ -14,9 +14,7 @@ const nextConfig = { * so the address an agent quotes is the one it fetched. */ async rewrites() { - return [ - { source: '/docs/:path*.md', destination: '/llms.mdx/:path*' }, - ]; + return [{ source: '/docs/:path*.md', destination: '/llms.mdx/:path*' }]; }, }; diff --git a/packages/docs/src/app/docs/[[...slug]]/page.tsx b/packages/docs/src/app/docs/[[...slug]]/page.tsx index 1bdcd13..4544ffb 100644 --- a/packages/docs/src/app/docs/[[...slug]]/page.tsx +++ b/packages/docs/src/app/docs/[[...slug]]/page.tsx @@ -6,12 +6,7 @@ import { DocsPage, DocsTitle, } from 'fumadocs-ui/page'; -import { - markdownUrl, - pageImage, - sectionOf, - source, -} from '../../../lib/source'; +import { markdownUrl, pageImage, sectionOf, source } from '../../../lib/source'; import { pageMetadata } from '../../../lib/metadata'; import { site } from '../../../lib/site'; import { JsonLd, docGraph } from '../../../components/json-ld'; diff --git a/packages/docs/src/app/landing.css b/packages/docs/src/app/landing.css index a525630..c429ba5 100644 --- a/packages/docs/src/app/landing.css +++ b/packages/docs/src/app/landing.css @@ -7,296 +7,2296 @@ --nf-violet: #b898ff; color: #f2f3f7; background: var(--nf-bg); - font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; + font-family: + Inter, + ui-sans-serif, + system-ui, + -apple-system, + BlinkMacSystemFont, + 'Segoe UI', + sans-serif; overflow: clip; -webkit-font-smoothing: antialiased; } -.nf-landing a { text-decoration: none; } -.nf-landing button { cursor: pointer; } -.nf-landing button:disabled { cursor: default; opacity: .6; } -.nf-landing :is(a, button, pre):focus-visible { outline: 2px solid var(--nf-cyan); outline-offset: 5px; } -.nf-container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; } -.nf-skip { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 20px; color: #080d15; background: var(--nf-cyan); } -.nf-skip:focus { top: 12px; } -.nf-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--nf-line); background: #0c0d10ed; backdrop-filter: blur(18px); } -.nf-logo { width: 142px; height: auto; } -.nf-brand { display: flex; align-items: center; gap: 16px; } -.nf-brand > span { padding-left: 16px; border-left: 1px solid #ffffff26; color: #969aaa; font: 9px ui-monospace, monospace; letter-spacing: .08em; } -.nf-desktop-nav a { font-size: 12px; color: #a7a9b5; transition: color .2s; } -.nf-desktop-nav a:hover { color: #fff; } -.nf-desktop-nav { gap: clamp(12px, 2vw, 32px); } -.nf-github-link { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; } -.nf-github-link svg { width: 16px; height: 16px; flex-shrink: 0; } -.nf-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 46px; padding: 0 21px; border: 1px solid #84deff66; border-radius: 6px; color: #061322; background: linear-gradient(115deg, #67e2f9, #60bcff); font-size: 13px; font-weight: 650; box-shadow: inset 0 1px #ffffff55, 0 0 24px #24aaff12; transition: transform .25s, box-shadow .25s, background .25s; white-space: nowrap; } -.nf-button:hover { transform: translateY(-3px); box-shadow: 0 4px 32px #2aaaff38; } -.nf-button svg, .nf-text-link svg { width: 17px; height: 17px; transition: transform .25s; } -.nf-button:hover svg:last-child, .nf-text-link:hover svg { transform: translateX(3px); } -.nf-button-small { min-height: 35px; padding-inline: 14px; font-size: 11px; } -.nf-button-quiet { color: #d0d2dc; background: #ffffff03; border-color: #ffffff18; box-shadow: none; } -.nf-button-quiet:hover { background: #ffffff07; box-shadow: none; } -.nf-motion, .nf-menu-toggle { display: grid; place-items: center; width: 36px; height: 36px; color: #b8bac5; border: 1px solid #ffffff14; border-radius: 5px; background: transparent; } -.nf-motion svg, .nf-menu-toggle svg { width: 16px; height: 16px; } -.nf-menu-toggle, .nf-mobile-nav { display: none; } +.nf-landing a { + text-decoration: none; +} +.nf-landing button { + cursor: pointer; +} +.nf-landing button:disabled { + cursor: default; + opacity: 0.6; +} +.nf-landing :is(a, button, pre):focus-visible { + outline: 2px solid var(--nf-cyan); + outline-offset: 5px; +} +.nf-container { + width: min(1200px, calc(100% - 64px)); + margin-inline: auto; +} +.nf-skip { + position: fixed; + top: -80px; + left: 16px; + z-index: 100; + padding: 12px 20px; + color: #080d15; + background: var(--nf-cyan); +} +.nf-skip:focus { + top: 12px; +} +.nf-header { + position: sticky; + top: 0; + z-index: 40; + border-bottom: 1px solid var(--nf-line); + background: #0c0d10ed; + backdrop-filter: blur(18px); +} +.nf-logo { + width: 142px; + height: auto; +} +.nf-brand { + display: flex; + align-items: center; + gap: 16px; +} +.nf-brand > span { + padding-left: 16px; + border-left: 1px solid #ffffff26; + color: #969aaa; + font: + 9px ui-monospace, + monospace; + letter-spacing: 0.08em; +} +.nf-desktop-nav a { + font-size: 12px; + color: #a7a9b5; + transition: color 0.2s; +} +.nf-desktop-nav a:hover { + color: #fff; +} +.nf-desktop-nav { + gap: clamp(12px, 2vw, 32px); +} +.nf-github-link { + display: inline-flex; + align-items: center; + gap: 7px; + white-space: nowrap; +} +.nf-github-link svg { + width: 16px; + height: 16px; + flex-shrink: 0; +} +.nf-button { + display: inline-flex; + justify-content: center; + align-items: center; + gap: 12px; + min-height: 46px; + padding: 0 21px; + border: 1px solid #84deff66; + border-radius: 6px; + color: #061322; + background: linear-gradient(115deg, #67e2f9, #60bcff); + font-size: 13px; + font-weight: 650; + box-shadow: + inset 0 1px #ffffff55, + 0 0 24px #24aaff12; + transition: + transform 0.25s, + box-shadow 0.25s, + background 0.25s; + white-space: nowrap; +} +.nf-button:hover { + transform: translateY(-3px); + box-shadow: 0 4px 32px #2aaaff38; +} +.nf-button svg, +.nf-text-link svg { + width: 17px; + height: 17px; + transition: transform 0.25s; +} +.nf-button:hover svg:last-child, +.nf-text-link:hover svg { + transform: translateX(3px); +} +.nf-button-small { + min-height: 35px; + padding-inline: 14px; + font-size: 11px; +} +.nf-button-quiet { + color: #d0d2dc; + background: #ffffff03; + border-color: #ffffff18; + box-shadow: none; +} +.nf-button-quiet:hover { + background: #ffffff07; + box-shadow: none; +} +.nf-motion, +.nf-menu-toggle { + display: grid; + place-items: center; + width: 36px; + height: 36px; + color: #b8bac5; + border: 1px solid #ffffff14; + border-radius: 5px; + background: transparent; +} +.nf-motion svg, +.nf-menu-toggle svg { + width: 16px; + height: 16px; +} +.nf-menu-toggle, +.nf-mobile-nav { + display: none; +} /* Product-shaped motion behind the hero; the copy stays on a calm surface. */ -.nf-hero { position: relative; isolation: isolate; padding: 134px 0 76px; text-align: center; } -.nf-hero-scene { position: absolute; z-index: -1; inset: 0; overflow: hidden; mask-image: linear-gradient(#000, #000 65%, transparent); pointer-events: none; } -.nf-scene-grid { position: absolute; inset: 0; background-image: linear-gradient(#a1b3ff09 1px, transparent 1px), linear-gradient(90deg, #a1b3ff09 1px, transparent 1px); background-size: 78px 78px; mask-image: radial-gradient(ellipse at 50% 10%, #000, transparent 65%); } -.nf-background-graph { position: absolute; width: 1300px; max-width: none; height: 477px; top: -245px; left: calc(50% - 650px); transform: perspective(700px) rotateX(35deg) rotateZ(-16deg); opacity: .42; animation: nf-scene-drift 18s ease-in-out infinite alternate; } -.nf-aurora { position: absolute; top: -160px; width: 620px; height: 370px; border-radius: 100%; filter: blur(80px); opacity: .22; animation: nf-aurora-drift 12s ease-in-out infinite alternate; } -.nf-aurora-blue { left: calc(50% - 540px); background: radial-gradient(ellipse, #086aff, transparent 70%); } -.nf-aurora-violet { right: calc(50% - 600px); background: radial-gradient(ellipse, #8f35ff, transparent 70%); animation-delay: -6s; } -.nf-hero-content { position: relative; } -.nf-announcement { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid #768ad32e; border-radius: 50px; color: #c4c9dc; background: #161a2899; font-size: 11px; } -.nf-announcement > svg { width: 13px; height: 13px; margin-left: 6px; color: #a3abc5; } -.nf-status-dot { display: inline-block; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--nf-cyan); box-shadow: 0 0 10px #4bd6ff66; animation: nf-pulse 2.8s ease-in-out infinite; } -.nf-hero h1 { margin: 25px 0 21px; font-size: clamp(46px, 5.3vw, 76px); font-weight: 520; line-height: 1.09; letter-spacing: -.035em; word-spacing: .035em; } -.nf-hero h1 > span { color: transparent; background: linear-gradient(100deg, #55dcf9 10%, #6aa5ff 45%, #b697ff 80%, #db94fa); background-size: 150% 100%; background-clip: text; animation: nf-gradient 9s ease-in-out infinite alternate; } -.nf-hero-description { margin: 0 auto; max-width: 660px; color: #a8acba; font-size: 16px; line-height: 1.8; } -.nf-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; } -.nf-hero-facts { display: flex; justify-content: center; gap: 24px; margin-top: 23px; color: #9499aa; font-size: 10px; } -.nf-hero-facts span { display: flex; align-items: center; gap: 5px; } -.nf-hero-facts svg { width: 12px; height: 12px; color: #868ec6; } -.nf-enter { animation: nf-enter .8s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--entry, 0ms); } +.nf-hero { + position: relative; + isolation: isolate; + padding: 134px 0 76px; + text-align: center; +} +.nf-hero-scene { + position: absolute; + z-index: -1; + inset: 0; + overflow: hidden; + mask-image: linear-gradient(#000, #000 65%, transparent); + pointer-events: none; +} +.nf-scene-grid { + position: absolute; + inset: 0; + background-image: + linear-gradient(#a1b3ff09 1px, transparent 1px), + linear-gradient(90deg, #a1b3ff09 1px, transparent 1px); + background-size: 78px 78px; + mask-image: radial-gradient(ellipse at 50% 10%, #000, transparent 65%); +} +.nf-background-graph { + position: absolute; + width: 1300px; + max-width: none; + height: 477px; + top: -245px; + left: calc(50% - 650px); + transform: perspective(700px) rotateX(35deg) rotateZ(-16deg); + opacity: 0.42; + animation: nf-scene-drift 18s ease-in-out infinite alternate; +} +.nf-aurora { + position: absolute; + top: -160px; + width: 620px; + height: 370px; + border-radius: 100%; + filter: blur(80px); + opacity: 0.22; + animation: nf-aurora-drift 12s ease-in-out infinite alternate; +} +.nf-aurora-blue { + left: calc(50% - 540px); + background: radial-gradient(ellipse, #086aff, transparent 70%); +} +.nf-aurora-violet { + right: calc(50% - 600px); + background: radial-gradient(ellipse, #8f35ff, transparent 70%); + animation-delay: -6s; +} +.nf-hero-content { + position: relative; +} +.nf-announcement { + display: inline-flex; + align-items: center; + gap: 9px; + padding: 7px 12px; + border: 1px solid #768ad32e; + border-radius: 50px; + color: #c4c9dc; + background: #161a2899; + font-size: 11px; +} +.nf-announcement > svg { + width: 13px; + height: 13px; + margin-left: 6px; + color: #a3abc5; +} +.nf-status-dot { + display: inline-block; + flex-shrink: 0; + width: 5px; + height: 5px; + border-radius: 50%; + background: var(--nf-cyan); + box-shadow: 0 0 10px #4bd6ff66; + animation: nf-pulse 2.8s ease-in-out infinite; +} +.nf-hero h1 { + margin: 25px 0 21px; + font-size: clamp(46px, 5.3vw, 76px); + font-weight: 520; + line-height: 1.09; + letter-spacing: -0.035em; + word-spacing: 0.035em; +} +.nf-hero h1 > span { + color: transparent; + background: linear-gradient( + 100deg, + #55dcf9 10%, + #6aa5ff 45%, + #b697ff 80%, + #db94fa + ); + background-size: 150% 100%; + background-clip: text; + animation: nf-gradient 9s ease-in-out infinite alternate; +} +.nf-hero-description { + margin: 0 auto; + max-width: 660px; + color: #a8acba; + font-size: 16px; + line-height: 1.8; +} +.nf-hero-actions { + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: 12px; + margin-top: 28px; +} +.nf-hero-facts { + display: flex; + justify-content: center; + gap: 24px; + margin-top: 23px; + color: #9499aa; + font-size: 10px; +} +.nf-hero-facts span { + display: flex; + align-items: center; + gap: 5px; +} +.nf-hero-facts svg { + width: 12px; + height: 12px; + color: #868ec6; +} +.nf-enter { + animation: nf-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; + animation-delay: var(--entry, 0ms); +} /* Interactive execution preview. */ -.nf-preview-section { position: relative; } -.nf-preview-section::before { content: ''; position: absolute; z-index: 0; left: 15%; right: 15%; top: 10px; height: 100px; background: linear-gradient(90deg, #00bded29, #674bff33, #b62fff21); filter: blur(65px); pointer-events: none; } -.nf-example-tabs { position: relative; display: flex; justify-content: center; gap: 35px; margin-bottom: 18px; } -.nf-example-tabs button { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 4px 16px; border: 0; background: transparent; color: #9498a8; font-size: 12px; transition: color .2s; } -.nf-example-tabs svg { width: 17px; height: 17px; } -.nf-example-tabs button[aria-pressed=true] { color: #e4eafb; } -.nf-example-tabs button[aria-pressed=true] svg { color: var(--nf-cyan); } -.nf-tab-indicator { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #3cdcff, #a178ff); transform: scaleX(0); transition: transform .3s; } -[aria-pressed=true] .nf-tab-indicator { transform: scaleX(1); } -.nf-preview { position: relative; border: 1px solid #69769740; border-radius: 10px; background: #101116; box-shadow: 0 0 0 5px #a8aaff03, 0 36px 85px #0005; overflow: hidden; } -.nf-preview-top { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--nf-line); background: #15161d; color: #cbd0df; font-size: 11px; } -.nf-preview-top strong { font-weight: 500; font-family: ui-monospace, monospace; } -.nf-app-icon { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #8874ff44; border-radius: 5px; color: #ad9eff; background: #5147ae1f; } -.nf-app-icon svg { width: 16px; height: 16px; } -.nf-preview-breadcrumb { color: #9599a9; }.nf-preview-breadcrumb span { padding-left: 12px; color: #757c91; } -.nf-version { padding: 1px 5px; border-radius: 4px; border: 1px solid #ffffff14; color: #9da2b2; font: 9px ui-monospace, monospace; } -.nf-demo-label { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #a6aabc; } -.nf-preview-body { display: grid; grid-template-columns: 204px minmax(0, 1fr); } -.nf-preview-sidebar { display: flex; flex-direction: column; padding: 22px 13px 16px; border-right: 1px solid var(--nf-line); background: #121319; } -.nf-label { display: block; font: 9px ui-monospace, monospace; letter-spacing: .12em; color: #9198ae; } -.nf-preview-sidebar > .nf-label { margin: 0 9px 17px; } -.nf-task-row { display: flex; align-items: center; gap: 9px; min-height: 35px; padding: 0 9px; border: 1px solid transparent; border-radius: 4px; color: #a7acbd; font-size: 10px; transition: color .5s, background .5s, border-color .5s; } -.nf-task-row.is-active { color: #ddedff; background: #3e91ff12; border-color: #3e91ff1f; } -.nf-task-state { display: grid; place-items: center; width: 16px; font: 9px ui-monospace, monospace; color: #9199af; }.nf-task-state svg { width: 14px; height: 14px; color: var(--nf-cyan); } -.nf-sidebar-note { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 20px 9px 0; color: #959bb0; font-size: 9px; line-height: 1.7; } -.nf-sidebar-note svg { width: 20px; height: 20px; color: #8a82c6; }.nf-sidebar-note strong { color: #c8cbd6; font-weight: 400; } -.nf-preview-main { min-width: 0; } -.nf-view-toolbar { display: flex; justify-content: space-between; align-items: center; height: 49px; padding: 0 18px; border-bottom: 1px solid #ffffff06; } -.nf-view-switch { display: flex; gap: 20px; }.nf-view-switch button, .nf-replay { display: flex; align-items: center; gap: 6px; padding: 8px 0; color: #9098ad; background: none; border: 0; font-size: 10px; } -.nf-view-switch svg, .nf-replay svg { width: 13px; height: 13px; }.nf-view-switch button[aria-pressed=true] { color: #e0e4f0; }.nf-replay:hover { color: var(--nf-cyan); } -.nf-graph-viewport { height: 330px; overflow: auto; scrollbar-width: thin; scrollbar-color: #454959 transparent; } -.nf-workflow-graph { display: block; width: 100%; min-width: 740px; height: 330px; } -.nf-mobile-workflow { display: none; } -.nf-connector { stroke: #363c51; stroke-width: 1.5; fill: none; } -.nf-signal { fill: none; stroke: #75a6ff; stroke-width: 2; stroke-dasharray: 12 220; animation: nf-flow 3s linear infinite; } -.nf-signal-1, .nf-signal-3 { stroke: #ae84ff; animation-delay: -1.5s; }.nf-signal-2 { animation-delay: -.75s; }.nf-signal-4 { stroke: #4edbff; animation-delay: -2s; } -.nf-node-frame { fill: #181b25; stroke: #3a4054; transition: stroke .5s, fill .5s; } -.nf-node-icon { fill: #252b40; }.nf-node-symbol { fill: #b6bfe6; font-size: 16px; } -.nf-node-type { fill: #a1aac1; font: 7px ui-monospace, monospace; letter-spacing: .09em; } -.nf-node-title { fill: #e4e8f6; font: 10px ui-sans-serif, system-ui, sans-serif; } -.nf-node-status { fill: #9aa5bd; font: 7px ui-monospace, monospace; }.nf-node-dot { fill: #74809b; } -.nf-graph-node.is-active .nf-node-frame { fill: #19273e; stroke: #669eff; animation: nf-node-glow 1.8s ease-in-out infinite; } -.nf-graph-node.is-active .nf-node-dot { fill: #71a9ff; }.nf-graph-node.is-done .nf-node-dot, .nf-graph-node.is-done .nf-node-symbol { fill: #56d8f1; } -.nf-graph-node.is-done .nf-node-frame { stroke: #3b6878; } -.nf-execution-bar { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--nf-line); color: #b6bed1; font: 9px ui-monospace, monospace; } -.nf-execution-bar > span:first-child { display: flex; align-items: center; gap: 8px; }.nf-execution-count { color: #989eb1; } -.nf-execution-progress { height: 2px; background: #242738; }.nf-execution-progress > span { display: block; height: 100%; background: linear-gradient(90deg, #47d7fa, #6974ff, #b075ff); transition: width 1s cubic-bezier(.16,1,.3,1); } -.nf-preview-caption { display: flex; justify-content: space-between; gap: 20px; margin: 18px 0 0; color: #9a9fb0; font-size: 11px; }.nf-preview-caption > span { flex-shrink: 0; font: 9px ui-monospace, monospace; color: #858c9f; } -.nf-definition { margin: 0; min-height: 100%; padding: 18px 0; font: 11px/1.8 ui-monospace, monospace; color: #b5bcd0; }.nf-code-line { display: flex; }.nf-line-number { display: inline-block; flex-shrink: 0; width: 46px; padding-right: 15px; text-align: right; color: #858b9e; user-select: none; }.nf-code-string { color: #9dccff; } +.nf-preview-section { + position: relative; +} +.nf-preview-section::before { + content: ''; + position: absolute; + z-index: 0; + left: 15%; + right: 15%; + top: 10px; + height: 100px; + background: linear-gradient(90deg, #00bded29, #674bff33, #b62fff21); + filter: blur(65px); + pointer-events: none; +} +.nf-example-tabs { + position: relative; + display: flex; + justify-content: center; + gap: 35px; + margin-bottom: 18px; +} +.nf-example-tabs button { + position: relative; + display: flex; + align-items: center; + gap: 8px; + padding: 12px 4px 16px; + border: 0; + background: transparent; + color: #9498a8; + font-size: 12px; + transition: color 0.2s; +} +.nf-example-tabs svg { + width: 17px; + height: 17px; +} +.nf-example-tabs button[aria-pressed='true'] { + color: #e4eafb; +} +.nf-example-tabs button[aria-pressed='true'] svg { + color: var(--nf-cyan); +} +.nf-tab-indicator { + position: absolute; + bottom: 0; + left: 0; + right: 0; + height: 2px; + background: linear-gradient(90deg, #3cdcff, #a178ff); + transform: scaleX(0); + transition: transform 0.3s; +} +[aria-pressed='true'] .nf-tab-indicator { + transform: scaleX(1); +} +.nf-preview { + position: relative; + border: 1px solid #69769740; + border-radius: 10px; + background: #101116; + box-shadow: + 0 0 0 5px #a8aaff03, + 0 36px 85px #0005; + overflow: hidden; +} +.nf-preview-top { + display: flex; + align-items: center; + justify-content: space-between; + min-height: 58px; + gap: 12px; + padding: 0 20px; + border-bottom: 1px solid var(--nf-line); + background: #15161d; + color: #cbd0df; + font-size: 11px; +} +.nf-preview-top strong { + font-weight: 500; + font-family: ui-monospace, monospace; +} +.nf-app-icon { + display: grid; + place-items: center; + width: 25px; + height: 25px; + border: 1px solid #8874ff44; + border-radius: 5px; + color: #ad9eff; + background: #5147ae1f; +} +.nf-app-icon svg { + width: 16px; + height: 16px; +} +.nf-preview-breadcrumb { + color: #9599a9; +} +.nf-preview-breadcrumb span { + padding-left: 12px; + color: #757c91; +} +.nf-version { + padding: 1px 5px; + border-radius: 4px; + border: 1px solid #ffffff14; + color: #9da2b2; + font: + 9px ui-monospace, + monospace; +} +.nf-demo-label { + display: flex; + align-items: center; + gap: 7px; + font-size: 10px; + color: #a6aabc; +} +.nf-preview-body { + display: grid; + grid-template-columns: 204px minmax(0, 1fr); +} +.nf-preview-sidebar { + display: flex; + flex-direction: column; + padding: 22px 13px 16px; + border-right: 1px solid var(--nf-line); + background: #121319; +} +.nf-label { + display: block; + font: + 9px ui-monospace, + monospace; + letter-spacing: 0.12em; + color: #9198ae; +} +.nf-preview-sidebar > .nf-label { + margin: 0 9px 17px; +} +.nf-task-row { + display: flex; + align-items: center; + gap: 9px; + min-height: 35px; + padding: 0 9px; + border: 1px solid transparent; + border-radius: 4px; + color: #a7acbd; + font-size: 10px; + transition: + color 0.5s, + background 0.5s, + border-color 0.5s; +} +.nf-task-row.is-active { + color: #ddedff; + background: #3e91ff12; + border-color: #3e91ff1f; +} +.nf-task-state { + display: grid; + place-items: center; + width: 16px; + font: + 9px ui-monospace, + monospace; + color: #9199af; +} +.nf-task-state svg { + width: 14px; + height: 14px; + color: var(--nf-cyan); +} +.nf-sidebar-note { + display: flex; + align-items: center; + gap: 9px; + margin-top: auto; + padding: 20px 9px 0; + color: #959bb0; + font-size: 9px; + line-height: 1.7; +} +.nf-sidebar-note svg { + width: 20px; + height: 20px; + color: #8a82c6; +} +.nf-sidebar-note strong { + color: #c8cbd6; + font-weight: 400; +} +.nf-preview-main { + min-width: 0; +} +.nf-view-toolbar { + display: flex; + justify-content: space-between; + align-items: center; + height: 49px; + padding: 0 18px; + border-bottom: 1px solid #ffffff06; +} +.nf-view-switch { + display: flex; + gap: 20px; +} +.nf-view-switch button, +.nf-replay { + display: flex; + align-items: center; + gap: 6px; + padding: 8px 0; + color: #9098ad; + background: none; + border: 0; + font-size: 10px; +} +.nf-view-switch svg, +.nf-replay svg { + width: 13px; + height: 13px; +} +.nf-view-switch button[aria-pressed='true'] { + color: #e0e4f0; +} +.nf-replay:hover { + color: var(--nf-cyan); +} +.nf-graph-viewport { + height: 330px; + overflow: auto; + scrollbar-width: thin; + scrollbar-color: #454959 transparent; +} +.nf-workflow-graph { + display: block; + width: 100%; + min-width: 740px; + height: 330px; +} +.nf-mobile-workflow { + display: none; +} +.nf-connector { + stroke: #363c51; + stroke-width: 1.5; + fill: none; +} +.nf-signal { + fill: none; + stroke: #75a6ff; + stroke-width: 2; + stroke-dasharray: 12 220; + animation: nf-flow 3s linear infinite; +} +.nf-signal-1, +.nf-signal-3 { + stroke: #ae84ff; + animation-delay: -1.5s; +} +.nf-signal-2 { + animation-delay: -0.75s; +} +.nf-signal-4 { + stroke: #4edbff; + animation-delay: -2s; +} +.nf-node-frame { + fill: #181b25; + stroke: #3a4054; + transition: + stroke 0.5s, + fill 0.5s; +} +.nf-node-icon { + fill: #252b40; +} +.nf-node-symbol { + fill: #b6bfe6; + font-size: 16px; +} +.nf-node-type { + fill: #a1aac1; + font: + 7px ui-monospace, + monospace; + letter-spacing: 0.09em; +} +.nf-node-title { + fill: #e4e8f6; + font: + 10px ui-sans-serif, + system-ui, + sans-serif; +} +.nf-node-status { + fill: #9aa5bd; + font: + 7px ui-monospace, + monospace; +} +.nf-node-dot { + fill: #74809b; +} +.nf-graph-node.is-active .nf-node-frame { + fill: #19273e; + stroke: #669eff; + animation: nf-node-glow 1.8s ease-in-out infinite; +} +.nf-graph-node.is-active .nf-node-dot { + fill: #71a9ff; +} +.nf-graph-node.is-done .nf-node-dot, +.nf-graph-node.is-done .nf-node-symbol { + fill: #56d8f1; +} +.nf-graph-node.is-done .nf-node-frame { + stroke: #3b6878; +} +.nf-execution-bar { + display: flex; + justify-content: space-between; + gap: 12px; + padding: 14px 18px; + border-top: 1px solid var(--nf-line); + color: #b6bed1; + font: + 9px ui-monospace, + monospace; +} +.nf-execution-bar > span:first-child { + display: flex; + align-items: center; + gap: 8px; +} +.nf-execution-count { + color: #989eb1; +} +.nf-execution-progress { + height: 2px; + background: #242738; +} +.nf-execution-progress > span { + display: block; + height: 100%; + background: linear-gradient(90deg, #47d7fa, #6974ff, #b075ff); + transition: width 1s cubic-bezier(0.16, 1, 0.3, 1); +} +.nf-preview-caption { + display: flex; + justify-content: space-between; + gap: 20px; + margin: 18px 0 0; + color: #9a9fb0; + font-size: 11px; +} +.nf-preview-caption > span { + flex-shrink: 0; + font: + 9px ui-monospace, + monospace; + color: #858c9f; +} +.nf-definition { + margin: 0; + min-height: 100%; + padding: 18px 0; + font: + 11px/1.8 ui-monospace, + monospace; + color: #b5bcd0; +} +.nf-code-line { + display: flex; +} +.nf-line-number { + display: inline-block; + flex-shrink: 0; + width: 46px; + padding-right: 15px; + text-align: right; + color: #858b9e; + user-select: none; +} +.nf-code-string { + color: #9dccff; +} -.nf-stack { padding: 65px 0 55px; text-align: center; border-bottom: 1px solid var(--nf-line); } -.nf-stack > span { font: 9px ui-monospace, monospace; letter-spacing: .13em; color: #8b92a3; } -.nf-stack > div { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 45px; row-gap: 22px; margin: 24px 0 18px; } -.nf-stack > div > span { display: flex; align-items: center; gap: 9px; color: #a5aaba; font-size: 15px; font-weight: 500; transition: color .25s, transform .25s; }.nf-stack > div > span:hover { color: #e7ecff; transform: translateY(-3px); } -.nf-language-icon { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; color: #7dccf5; } -.nf-language-icon img, .nf-language-icon svg { display: block; width: 100%; height: 100%; object-fit: contain; } -.nf-language-icon-rust img { filter: invert(1); } -.nf-language-icon-http svg { width: 28px; height: 28px; } -.nf-stack p { color: #9197a8; font-size: 11px; } -.nf-section { padding-block: 104px; scroll-margin-top: 85px; } -.nf-eyebrow { display: block; margin-bottom: 21px; color: #9b9fc6; font: 9px ui-monospace, monospace; letter-spacing: .12em; } -.nf-landing h2 { margin: 0; font-size: clamp(34px, 3.8vw, 50px); font-weight: 500; line-height: 1.12; letter-spacing: -.045em; } -.nf-landing h2 > span { color: #979dab; } -.nf-section-head > p, .nf-infra-copy > p { max-width: 490px; margin-top: 22px; color: var(--nf-muted); font-size: 14px; line-height: 1.8; } -.nf-capabilities { margin-top: 48px; border: 1px solid var(--nf-line); border-radius: 8px; overflow: hidden; background: linear-gradient(180deg, #17192044, transparent); } -.nf-capability { min-width: 0; padding: 28px; border-right: 1px solid var(--nf-line); }.nf-capability:last-child { border-right: 0; } -.nf-capability h3 { margin: 13px 0; font-size: 18px; font-weight: 500; letter-spacing: -.025em; } -.nf-capability p { color: var(--nf-muted); font-size: 12px; line-height: 1.8; min-height: 65px; }.nf-capability a { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; color: #c6cef3; font-size: 11px; }.nf-capability a svg { width: 14px; height: 14px; transition: transform .2s; }.nf-capability a:hover svg { transform: translateX(4px); } -.nf-mini { display: flex; height: 180px; margin: -5px -3px 26px; font: 9px ui-monospace, monospace; color: #9ba5c7; } -.nf-mini-fork { flex-direction: column; justify-content: center; align-items: center; }.nf-mini-fork > span { border: 1px solid #ffffff1c; padding: 7px 16px; border-radius: 4px; background: #171b28; }.nf-mini-fork > i { height: 20px; width: 1px; background: linear-gradient(#606cbb, #4cc9ff); }.nf-mini-fork > div { display: flex; gap: 14px; }.nf-mini-fork b { padding: 9px 14px; border: 1px solid #729fff40; background: #142238; border-radius: 5px; color: #9ccaff; font-weight: 400; animation: nf-branch 4s ease-in-out infinite; }.nf-mini-fork b:nth-child(2) { animation-delay: .4s; }.nf-mini-fork b:nth-child(3) { animation-delay: .8s; } -.nf-mini-retry { flex-direction: column; justify-content: center; gap: 24px; }.nf-mini-retry > span:first-child { color: #9aa0b6; letter-spacing: .12em; }.nf-mini-retry > div { display: flex; align-items: center; gap: 6px; }.nf-mini-retry b { border: 1px solid #ffffff17; border-radius: 4px; padding: 9px; font-weight: 400; font-size: 8px; background: #1c1b27; }.nf-mini-retry b:first-child { color: #b9a5c9; }.nf-mini-retry b:nth-of-type(2) { color: #baa8ff; animation: nf-pulse 2s infinite; }.nf-mini-retry b:last-child { color: #76d9fa; background: #142733; }.nf-mini-retry i { height: 1px; flex: 1; background: #46506d; }.nf-retry-line { display: block; width: 100%; height: 3px; background: linear-gradient(90deg, #343146, #a184ff, #54cfff, #343146); background-size: 250% 100%; animation: nf-gradient 4s linear infinite; } -.nf-mini-trace { flex-direction: column; justify-content: center; gap: 17px; }.nf-mini-trace > div { display: flex; align-items: center; gap: 15px; }.nf-mini-trace i { display: block; width: var(--bar-width); height: 7px; border: 1px solid #6b86d34d; border-radius: 2px; background: linear-gradient(90deg, #2b366c, #6c81d4); transform-origin: left; animation: nf-trace 5s ease-in-out infinite; animation-delay: var(--bar-delay); }.nf-mini-trace > div:nth-child(2n) i { background: linear-gradient(90deg, #34305e, #977bc9); }.nf-mini-trace > div > span:last-child { color: #7cbde5; } +.nf-stack { + padding: 65px 0 55px; + text-align: center; + border-bottom: 1px solid var(--nf-line); +} +.nf-stack > span { + font: + 9px ui-monospace, + monospace; + letter-spacing: 0.13em; + color: #8b92a3; +} +.nf-stack > div { + display: flex; + flex-wrap: wrap; + justify-content: center; + column-gap: 45px; + row-gap: 22px; + margin: 24px 0 18px; +} +.nf-stack > div > span { + display: flex; + align-items: center; + gap: 9px; + color: #a5aaba; + font-size: 15px; + font-weight: 500; + transition: + color 0.25s, + transform 0.25s; +} +.nf-stack > div > span:hover { + color: #e7ecff; + transform: translateY(-3px); +} +.nf-language-icon { + display: grid; + place-items: center; + flex-shrink: 0; + width: 32px; + height: 32px; + color: #7dccf5; +} +.nf-language-icon img, +.nf-language-icon svg { + display: block; + width: 100%; + height: 100%; + object-fit: contain; +} +.nf-language-icon-rust img { + filter: invert(1); +} +.nf-language-icon-http svg { + width: 28px; + height: 28px; +} +.nf-stack p { + color: #9197a8; + font-size: 11px; +} +.nf-section { + padding-block: 104px; + scroll-margin-top: 85px; +} +.nf-eyebrow { + display: block; + margin-bottom: 21px; + color: #9b9fc6; + font: + 9px ui-monospace, + monospace; + letter-spacing: 0.12em; +} +.nf-landing h2 { + margin: 0; + font-size: clamp(34px, 3.8vw, 50px); + font-weight: 500; + line-height: 1.12; + letter-spacing: -0.045em; +} +.nf-landing h2 > span { + color: #979dab; +} +.nf-section-head > p, +.nf-infra-copy > p { + max-width: 490px; + margin-top: 22px; + color: var(--nf-muted); + font-size: 14px; + line-height: 1.8; +} +.nf-capabilities { + margin-top: 48px; + border: 1px solid var(--nf-line); + border-radius: 8px; + overflow: hidden; + background: linear-gradient(180deg, #17192044, transparent); +} +.nf-capability { + min-width: 0; + padding: 28px; + border-right: 1px solid var(--nf-line); +} +.nf-capability:last-child { + border-right: 0; +} +.nf-capability h3 { + margin: 13px 0; + font-size: 18px; + font-weight: 500; + letter-spacing: -0.025em; +} +.nf-capability p { + color: var(--nf-muted); + font-size: 12px; + line-height: 1.8; + min-height: 65px; +} +.nf-capability a { + display: inline-flex; + align-items: center; + gap: 9px; + margin-top: 24px; + color: #c6cef3; + font-size: 11px; +} +.nf-capability a svg { + width: 14px; + height: 14px; + transition: transform 0.2s; +} +.nf-capability a:hover svg { + transform: translateX(4px); +} +.nf-mini { + display: flex; + height: 180px; + margin: -5px -3px 26px; + font: + 9px ui-monospace, + monospace; + color: #9ba5c7; +} +.nf-mini-fork { + flex-direction: column; + justify-content: center; + align-items: center; +} +.nf-mini-fork > span { + border: 1px solid #ffffff1c; + padding: 7px 16px; + border-radius: 4px; + background: #171b28; +} +.nf-mini-fork > i { + height: 20px; + width: 1px; + background: linear-gradient(#606cbb, #4cc9ff); +} +.nf-mini-fork > div { + display: flex; + gap: 14px; +} +.nf-mini-fork b { + padding: 9px 14px; + border: 1px solid #729fff40; + background: #142238; + border-radius: 5px; + color: #9ccaff; + font-weight: 400; + animation: nf-branch 4s ease-in-out infinite; +} +.nf-mini-fork b:nth-child(2) { + animation-delay: 0.4s; +} +.nf-mini-fork b:nth-child(3) { + animation-delay: 0.8s; +} +.nf-mini-retry { + flex-direction: column; + justify-content: center; + gap: 24px; +} +.nf-mini-retry > span:first-child { + color: #9aa0b6; + letter-spacing: 0.12em; +} +.nf-mini-retry > div { + display: flex; + align-items: center; + gap: 6px; +} +.nf-mini-retry b { + border: 1px solid #ffffff17; + border-radius: 4px; + padding: 9px; + font-weight: 400; + font-size: 8px; + background: #1c1b27; +} +.nf-mini-retry b:first-child { + color: #b9a5c9; +} +.nf-mini-retry b:nth-of-type(2) { + color: #baa8ff; + animation: nf-pulse 2s infinite; +} +.nf-mini-retry b:last-child { + color: #76d9fa; + background: #142733; +} +.nf-mini-retry i { + height: 1px; + flex: 1; + background: #46506d; +} +.nf-retry-line { + display: block; + width: 100%; + height: 3px; + background: linear-gradient(90deg, #343146, #a184ff, #54cfff, #343146); + background-size: 250% 100%; + animation: nf-gradient 4s linear infinite; +} +.nf-mini-trace { + flex-direction: column; + justify-content: center; + gap: 17px; +} +.nf-mini-trace > div { + display: flex; + align-items: center; + gap: 15px; +} +.nf-mini-trace i { + display: block; + width: var(--bar-width); + height: 7px; + border: 1px solid #6b86d34d; + border-radius: 2px; + background: linear-gradient(90deg, #2b366c, #6c81d4); + transform-origin: left; + animation: nf-trace 5s ease-in-out infinite; + animation-delay: var(--bar-delay); +} +.nf-mini-trace > div:nth-child(2n) i { + background: linear-gradient(90deg, #34305e, #977bc9); +} +.nf-mini-trace > div > span:last-child { + color: #7cbde5; +} -.nf-infrastructure { padding-block: 80px; border-block: 1px solid var(--nf-line); background: radial-gradient(ellipse at 80% 50%, #31326612, transparent 55%), #101115; } -.nf-infra-points { display: flex; flex-direction: column; gap: 14px; margin: 27px 0 32px; }.nf-infra-points > span { display: flex; align-items: center; gap: 11px; color: #c1c5d2; font-size: 12px; }.nf-infra-points svg { width: 15px; height: 15px; color: #85a8f5; } -.nf-text-link { display: inline-flex; gap: 10px; align-items: center; color: #b6d7ff; font-size: 12px; } -.nf-orbit-diagram { position: relative; height: 450px; max-width: 560px; width: 100%; margin-inline: auto; } -.nf-orbit, .nf-orbit-satellite { position: absolute; top: 50%; left: 50%; translate: -50% -50%; border-radius: 50%; } -.nf-orbit { border: 1px solid #9197db1d; }.nf-orbit-one { width: 210px; height: 210px; }.nf-orbit-two { width: 330px; height: 330px; border-style: dashed; animation: nf-spin 100s linear infinite; }.nf-orbit-three { width: 430px; height: 430px; } -.nf-orbit-satellite { width: 330px; height: 330px; animation: nf-spin 22s linear infinite; }.nf-orbit-satellite i { display: block; width: 7px; height: 7px; margin: -3px auto; border-radius: 50%; background: #7dbfff; box-shadow: 0 0 18px 4px #5dbbff77; }.nf-orbit-satellite-two { width: 430px; height: 430px; animation: nf-spin 32s linear infinite reverse; }.nf-orbit-satellite-two i { background: #b688ff; box-shadow: 0 0 18px 4px #a26bff66; } -.nf-pg-core { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; left: 50%; top: 50%; translate: -50% -50%; width: 154px; height: 154px; border: 1px solid #7c80d752; border-radius: 30px; background: linear-gradient(140deg, #223951, #231a3b); box-shadow: inset 0 1px #d7e6ff19, 0 0 70px #5267eb22; animation: nf-core-glow 5s ease-in-out infinite alternate; } -.nf-pg-core svg { width: 31px; height: 31px; color: #8ccfff; }.nf-pg-core strong { font-size: 18px; font-weight: 500; }.nf-pg-core span { display: block; width: 100%; padding-inline: 12px; text-align: center; font: 9px/1.5 ui-monospace, monospace; letter-spacing: .06em; color: #b5c0de; } -.nf-orbit-label { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #828bad30; border-radius: 6px; color: #bfc9df; background: #151923; font: 9px ui-monospace, monospace; box-shadow: 0 6px 18px #0003; animation: nf-float 6s ease-in-out infinite; }.nf-orbit-label-0 { top: 11%; left: 10%; }.nf-orbit-label-1 { top: 29%; right: 0; animation-delay: -2s; }.nf-orbit-label-2 { bottom: 15%; right: 8%; animation-delay: -4s; }.nf-orbit-label-3 { bottom: 27%; left: 0; animation-delay: -1s; } +.nf-infrastructure { + padding-block: 80px; + border-block: 1px solid var(--nf-line); + background: + radial-gradient(ellipse at 80% 50%, #31326612, transparent 55%), #101115; +} +.nf-infra-points { + display: flex; + flex-direction: column; + gap: 14px; + margin: 27px 0 32px; +} +.nf-infra-points > span { + display: flex; + align-items: center; + gap: 11px; + color: #c1c5d2; + font-size: 12px; +} +.nf-infra-points svg { + width: 15px; + height: 15px; + color: #85a8f5; +} +.nf-text-link { + display: inline-flex; + gap: 10px; + align-items: center; + color: #b6d7ff; + font-size: 12px; +} +.nf-orbit-diagram { + position: relative; + height: 450px; + max-width: 560px; + width: 100%; + margin-inline: auto; +} +.nf-orbit, +.nf-orbit-satellite { + position: absolute; + top: 50%; + left: 50%; + translate: -50% -50%; + border-radius: 50%; +} +.nf-orbit { + border: 1px solid #9197db1d; +} +.nf-orbit-one { + width: 210px; + height: 210px; +} +.nf-orbit-two { + width: 330px; + height: 330px; + border-style: dashed; + animation: nf-spin 100s linear infinite; +} +.nf-orbit-three { + width: 430px; + height: 430px; +} +.nf-orbit-satellite { + width: 330px; + height: 330px; + animation: nf-spin 22s linear infinite; +} +.nf-orbit-satellite i { + display: block; + width: 7px; + height: 7px; + margin: -3px auto; + border-radius: 50%; + background: #7dbfff; + box-shadow: 0 0 18px 4px #5dbbff77; +} +.nf-orbit-satellite-two { + width: 430px; + height: 430px; + animation: nf-spin 32s linear infinite reverse; +} +.nf-orbit-satellite-two i { + background: #b688ff; + box-shadow: 0 0 18px 4px #a26bff66; +} +.nf-pg-core { + position: absolute; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 9px; + left: 50%; + top: 50%; + translate: -50% -50%; + width: 154px; + height: 154px; + border: 1px solid #7c80d752; + border-radius: 30px; + background: linear-gradient(140deg, #223951, #231a3b); + box-shadow: + inset 0 1px #d7e6ff19, + 0 0 70px #5267eb22; + animation: nf-core-glow 5s ease-in-out infinite alternate; +} +.nf-pg-core svg { + width: 31px; + height: 31px; + color: #8ccfff; +} +.nf-pg-core strong { + font-size: 18px; + font-weight: 500; +} +.nf-pg-core span { + display: block; + width: 100%; + padding-inline: 12px; + text-align: center; + font: + 9px/1.5 ui-monospace, + monospace; + letter-spacing: 0.06em; + color: #b5c0de; +} +.nf-orbit-label { + position: absolute; + display: flex; + align-items: center; + gap: 8px; + padding: 10px 12px; + border: 1px solid #828bad30; + border-radius: 6px; + color: #bfc9df; + background: #151923; + font: + 9px ui-monospace, + monospace; + box-shadow: 0 6px 18px #0003; + animation: nf-float 6s ease-in-out infinite; +} +.nf-orbit-label-0 { + top: 11%; + left: 10%; +} +.nf-orbit-label-1 { + top: 29%; + right: 0; + animation-delay: -2s; +} +.nf-orbit-label-2 { + bottom: 15%; + right: 8%; + animation-delay: -4s; +} +.nf-orbit-label-3 { + bottom: 27%; + left: 0; + animation-delay: -1s; +} -.nf-start-grid { margin-top: 42px; align-items: start; } -.nf-steps > div { display: flex; gap: 19px; padding-bottom: 28px; }.nf-steps > div > span { display: grid; flex-shrink: 0; place-items: center; width: 29px; height: 29px; border: 1px solid #ffffff21; border-radius: 50%; background: #171922; color: #a2b3db; font: 11px ui-monospace, monospace; }.nf-steps h3 { margin: 3px 0 8px; font-size: 15px; font-weight: 500; }.nf-steps p { margin: 0; max-width: 330px; color: var(--nf-muted); font-size: 12px; line-height: 1.7; } -.nf-terminal { border: 1px solid #ffffff1b; border-radius: 8px; background: #12141b; box-shadow: 0 18px 70px #0003; overflow: hidden; } -.nf-terminal-header { display: flex; justify-content: space-between; align-items: center; height: 45px; padding: 0 17px; border-bottom: 1px solid var(--nf-line); color: #959bae; font: 8px ui-monospace, monospace; letter-spacing: .08em; }.nf-terminal-header > span:first-child { display: flex; gap: 5px; }.nf-terminal-header i { width: 6px; height: 6px; border-radius: 50%; background: #515970; }.nf-terminal-header svg { width: 14px; height: 14px; } -.nf-terminal-content { padding: 26px 24px 22px; font: 10px/1.8 ui-monospace, monospace; }.nf-code-comment { color: #989fb2; }.nf-terminal-command { display: flex; align-items: start; gap: 10px; margin-top: 11px; }.nf-terminal-command > span { color: #71ceef; }.nf-terminal-command code { flex: 1; min-width: 0; color: #d6dcec; overflow-wrap: anywhere; }.nf-terminal-command button { display: grid; place-items: center; color: #a1b0d0; padding: 4px; border: 0; background: transparent; }.nf-terminal-command svg { width: 15px; height: 15px; } -.nf-terminal-output { margin-top: 30px; }.nf-terminal-output p { display: flex; gap: 10px; align-items: center; color: #bac3d6; margin: 13px 0; }.nf-terminal-output svg { width: 12px; height: 12px; color: #73ccee; }.nf-terminal-output b { margin-left: auto; color: #97a8c8; font-weight: 400; } -.nf-terminal-prompt { display: flex; gap: 12px; align-items: center; color: #71ceef; margin-top: 25px; }.nf-terminal-prompt i { height: 12px; width: 6px; background: #9baad4; animation: nf-cursor 1.2s step-end infinite; }.nf-copy-feedback { display: block; min-height: 24px; margin-top: 25px; color: #969eb3; font-size: 8px; } -.nf-docs-section { border-top: 1px solid var(--nf-line); }.nf-docs-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }.nf-docs-heading > a { margin-bottom: 7px; }.nf-docs-grid { gap: 12px; margin-top: 40px; } -.nf-doc-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--nf-line); border-radius: 7px; background: linear-gradient(145deg, #171922, #111216); transition: transform .3s, border-color .3s, box-shadow .3s; }.nf-doc-card:hover { transform: translateY(-6px); border-color: #738aff5c; box-shadow: 0 10px 35px #5267eb0d; }.nf-doc-icon { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #93a5ff26; border-radius: 7px; color: #8bacf4; background: #657dff0e; }.nf-doc-card:nth-child(2n) .nf-doc-icon { color: #ba9fff; }.nf-doc-icon svg { width: 17px; height: 17px; }.nf-doc-card h3 { margin: 25px 0 12px; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -.02em; }.nf-doc-card p { color: var(--nf-muted); font-size: 11px; line-height: 1.8; margin: 0 0 30px; }.nf-doc-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; font-size: 10px; color: #c6cfe5; }.nf-doc-link svg { width: 14px; height: 14px; transition: transform .25s; }.nf-doc-card:hover .nf-doc-link svg { transform: translateX(4px); } -.nf-faq-list { display: grid; gap: 10px; margin-top: 40px; max-width: 860px; } -.nf-faq-item { padding: 0 24px; border: 1px solid var(--nf-line); border-radius: 7px; background: linear-gradient(145deg, #171922, #111216); } -.nf-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; } -.nf-faq-item summary::-webkit-details-marker { display: none; } -.nf-faq-item summary::after { content: '+'; flex: none; color: #8bacf4; font-size: 18px; line-height: 1; transition: transform .25s; } -.nf-faq-item[open] summary::after { transform: rotate(45deg); } -.nf-faq-item h3 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -.02em; } -.nf-faq-item p { margin: 0 0 22px; color: var(--nf-muted); font-size: 13px; line-height: 1.8; } -.nf-final { position: relative; isolation: isolate; overflow: hidden; padding: 105px 0 110px; text-align: center; border-top: 1px solid var(--nf-line); background: radial-gradient(ellipse at 50% 90%, #3d3aa824, transparent 65%); } -.nf-final h2 { font-size: clamp(64px, 9vw, 110px); letter-spacing: -.06em; color: transparent; background: linear-gradient(100deg, #74ddf3 20%, #85a2ff 50%, #c998ff 80%); background-clip: text; }.nf-final p { margin: 21px 0 30px; font-size: 14px; color: #acb2c4; } -.nf-final-rings { position: absolute; inset: 0; z-index: -1; pointer-events: none; }.nf-final-rings i { position: absolute; width: 730px; height: 730px; top: 65%; left: 50%; translate: -50% -50%; border: 1px solid #8fa0ed0f; border-radius: 50%; animation: nf-ring 9s ease-out infinite; }.nf-final-rings i:nth-child(2) { animation-delay: -3s; }.nf-final-rings i:nth-child(3) { animation-delay: -6s; } -.nf-footer { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 30px 0; border-top: 1px solid var(--nf-line); }.nf-footer .nf-logo { width: 115px; }.nf-footer p { font-size: 10px; color: #9198aa; }.nf-footer nav { display: flex; gap: 26px; font-size: 11px; color: #a8afc0; }.nf-footer a:hover { color: #e8edff; } +.nf-start-grid { + margin-top: 42px; + align-items: start; +} +.nf-steps > div { + display: flex; + gap: 19px; + padding-bottom: 28px; +} +.nf-steps > div > span { + display: grid; + flex-shrink: 0; + place-items: center; + width: 29px; + height: 29px; + border: 1px solid #ffffff21; + border-radius: 50%; + background: #171922; + color: #a2b3db; + font: + 11px ui-monospace, + monospace; +} +.nf-steps h3 { + margin: 3px 0 8px; + font-size: 15px; + font-weight: 500; +} +.nf-steps p { + margin: 0; + max-width: 330px; + color: var(--nf-muted); + font-size: 12px; + line-height: 1.7; +} +.nf-terminal { + border: 1px solid #ffffff1b; + border-radius: 8px; + background: #12141b; + box-shadow: 0 18px 70px #0003; + overflow: hidden; +} +.nf-terminal-header { + display: flex; + justify-content: space-between; + align-items: center; + height: 45px; + padding: 0 17px; + border-bottom: 1px solid var(--nf-line); + color: #959bae; + font: + 8px ui-monospace, + monospace; + letter-spacing: 0.08em; +} +.nf-terminal-header > span:first-child { + display: flex; + gap: 5px; +} +.nf-terminal-header i { + width: 6px; + height: 6px; + border-radius: 50%; + background: #515970; +} +.nf-terminal-header svg { + width: 14px; + height: 14px; +} +.nf-terminal-content { + padding: 26px 24px 22px; + font: + 10px/1.8 ui-monospace, + monospace; +} +.nf-code-comment { + color: #989fb2; +} +.nf-terminal-command { + display: flex; + align-items: start; + gap: 10px; + margin-top: 11px; +} +.nf-terminal-command > span { + color: #71ceef; +} +.nf-terminal-command code { + flex: 1; + min-width: 0; + color: #d6dcec; + overflow-wrap: anywhere; +} +.nf-terminal-command button { + display: grid; + place-items: center; + color: #a1b0d0; + padding: 4px; + border: 0; + background: transparent; +} +.nf-terminal-command svg { + width: 15px; + height: 15px; +} +.nf-terminal-output { + margin-top: 30px; +} +.nf-terminal-output p { + display: flex; + gap: 10px; + align-items: center; + color: #bac3d6; + margin: 13px 0; +} +.nf-terminal-output svg { + width: 12px; + height: 12px; + color: #73ccee; +} +.nf-terminal-output b { + margin-left: auto; + color: #97a8c8; + font-weight: 400; +} +.nf-terminal-prompt { + display: flex; + gap: 12px; + align-items: center; + color: #71ceef; + margin-top: 25px; +} +.nf-terminal-prompt i { + height: 12px; + width: 6px; + background: #9baad4; + animation: nf-cursor 1.2s step-end infinite; +} +.nf-copy-feedback { + display: block; + min-height: 24px; + margin-top: 25px; + color: #969eb3; + font-size: 8px; +} +.nf-docs-section { + border-top: 1px solid var(--nf-line); +} +.nf-docs-heading { + display: flex; + justify-content: space-between; + align-items: end; + gap: 30px; +} +.nf-docs-heading > a { + margin-bottom: 7px; +} +.nf-docs-grid { + gap: 12px; + margin-top: 40px; +} +.nf-doc-card { + display: flex; + flex-direction: column; + padding: 24px; + border: 1px solid var(--nf-line); + border-radius: 7px; + background: linear-gradient(145deg, #171922, #111216); + transition: + transform 0.3s, + border-color 0.3s, + box-shadow 0.3s; +} +.nf-doc-card:hover { + transform: translateY(-6px); + border-color: #738aff5c; + box-shadow: 0 10px 35px #5267eb0d; +} +.nf-doc-icon { + display: grid; + place-items: center; + width: 33px; + height: 33px; + border: 1px solid #93a5ff26; + border-radius: 7px; + color: #8bacf4; + background: #657dff0e; +} +.nf-doc-card:nth-child(2n) .nf-doc-icon { + color: #ba9fff; +} +.nf-doc-icon svg { + width: 17px; + height: 17px; +} +.nf-doc-card h3 { + margin: 25px 0 12px; + font-size: 16px; + font-weight: 500; + line-height: 1.4; + letter-spacing: -0.02em; +} +.nf-doc-card p { + color: var(--nf-muted); + font-size: 11px; + line-height: 1.8; + margin: 0 0 30px; +} +.nf-doc-link { + display: flex; + align-items: center; + justify-content: space-between; + gap: 10px; + margin-top: auto; + font-size: 10px; + color: #c6cfe5; +} +.nf-doc-link svg { + width: 14px; + height: 14px; + transition: transform 0.25s; +} +.nf-doc-card:hover .nf-doc-link svg { + transform: translateX(4px); +} +.nf-faq-list { + display: grid; + gap: 10px; + margin-top: 40px; + max-width: 860px; +} +.nf-faq-item { + padding: 0 24px; + border: 1px solid var(--nf-line); + border-radius: 7px; + background: linear-gradient(145deg, #171922, #111216); +} +.nf-faq-item summary { + display: flex; + align-items: center; + justify-content: space-between; + gap: 20px; + padding: 20px 0; + cursor: pointer; + list-style: none; +} +.nf-faq-item summary::-webkit-details-marker { + display: none; +} +.nf-faq-item summary::after { + content: '+'; + flex: none; + color: #8bacf4; + font-size: 18px; + line-height: 1; + transition: transform 0.25s; +} +.nf-faq-item[open] summary::after { + transform: rotate(45deg); +} +.nf-faq-item h3 { + margin: 0; + font-size: 15px; + font-weight: 500; + letter-spacing: -0.02em; +} +.nf-faq-item p { + margin: 0 0 22px; + color: var(--nf-muted); + font-size: 13px; + line-height: 1.8; +} +.nf-final { + position: relative; + isolation: isolate; + overflow: hidden; + padding: 105px 0 110px; + text-align: center; + border-top: 1px solid var(--nf-line); + background: radial-gradient(ellipse at 50% 90%, #3d3aa824, transparent 65%); +} +.nf-final h2 { + font-size: clamp(64px, 9vw, 110px); + letter-spacing: -0.06em; + color: transparent; + background: linear-gradient(100deg, #74ddf3 20%, #85a2ff 50%, #c998ff 80%); + background-clip: text; +} +.nf-final p { + margin: 21px 0 30px; + font-size: 14px; + color: #acb2c4; +} +.nf-final-rings { + position: absolute; + inset: 0; + z-index: -1; + pointer-events: none; +} +.nf-final-rings i { + position: absolute; + width: 730px; + height: 730px; + top: 65%; + left: 50%; + translate: -50% -50%; + border: 1px solid #8fa0ed0f; + border-radius: 50%; + animation: nf-ring 9s ease-out infinite; +} +.nf-final-rings i:nth-child(2) { + animation-delay: -3s; +} +.nf-final-rings i:nth-child(3) { + animation-delay: -6s; +} +.nf-footer { + display: flex; + justify-content: space-between; + align-items: center; + gap: 30px; + padding: 30px 0; + border-top: 1px solid var(--nf-line); +} +.nf-footer .nf-logo { + width: 115px; +} +.nf-footer p { + font-size: 10px; + color: #9198aa; +} +.nf-footer nav { + display: flex; + gap: 26px; + font-size: 11px; + color: #a8afc0; +} +.nf-footer a:hover { + color: #e8edff; +} -.nf-maker { padding-block: 36px; } -.nf-maker-card { display: flex; align-items: center; gap: 24px; padding: 28px 32px; border: 1px solid #809bff30; border-radius: 10px; background: radial-gradient(ellipse at 0 50%, #367fdd12, transparent 60%), linear-gradient(115deg, #11151e, #15121d); } -.nf-maker-mark { position: relative; isolation: isolate; display: grid; place-items: center; flex-shrink: 0; width: 60px; height: 60px; overflow: hidden; border-radius: 16px; } -.nf-maker-mark::before { content: ''; position: absolute; inset: -50%; z-index: -2; background: conic-gradient(from 0deg, #54d6ff, #7368da 35%, #26273a 55%, #b493ff 80%, #54d6ff); animation: nf-spin 14s linear infinite; } -.nf-maker-mark::after { content: ''; position: absolute; inset: 1px; z-index: -1; border-radius: 15px; background: #171c2a; } -.nf-maker-portrait { position: absolute; inset: 2px; overflow: hidden; border-radius: 14px; } -.nf-maker-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transform: scale(1.55); transform-origin: 50% 25%; } -.nf-maker-copy { min-width: 0; } -.nf-maker .nf-eyebrow { margin-bottom: 8px; font-size: 9px; letter-spacing: .16em; color: #a8b8df; } -.nf-maker .nf-maker-copy h2 { font-size: 25px; letter-spacing: -.035em; line-height: 1.2; } -.nf-maker p { margin: 8px 0 0; color: #a6abbd; font-size: 13px; line-height: 1.6; } -.nf-maker-link { display: flex; align-items: center; gap: 24px; min-height: 48px; margin-left: auto; padding: 10px 0 10px 16px; color: #dbdff9; font-size: 13px; white-space: nowrap; transition: color .2s; } -.nf-maker-domain { display: block; margin-top: 5px; color: #98a3be; font: 10px ui-monospace, monospace; } -.nf-maker-link > svg { width: 22px; height: 22px; color: #a8b7ff; rotate: -45deg; transition: transform .25s; } -.nf-maker-link:hover { color: #74d9ff; } -.nf-maker-link:hover > svg { transform: translateX(4px); } +.nf-maker { + padding-block: 36px; +} +.nf-maker-card { + display: flex; + align-items: center; + gap: 24px; + padding: 28px 32px; + border: 1px solid #809bff30; + border-radius: 10px; + background: + radial-gradient(ellipse at 0 50%, #367fdd12, transparent 60%), + linear-gradient(115deg, #11151e, #15121d); +} +.nf-maker-mark { + position: relative; + isolation: isolate; + display: grid; + place-items: center; + flex-shrink: 0; + width: 60px; + height: 60px; + overflow: hidden; + border-radius: 16px; +} +.nf-maker-mark::before { + content: ''; + position: absolute; + inset: -50%; + z-index: -2; + background: conic-gradient( + from 0deg, + #54d6ff, + #7368da 35%, + #26273a 55%, + #b493ff 80%, + #54d6ff + ); + animation: nf-spin 14s linear infinite; +} +.nf-maker-mark::after { + content: ''; + position: absolute; + inset: 1px; + z-index: -1; + border-radius: 15px; + background: #171c2a; +} +.nf-maker-portrait { + position: absolute; + inset: 2px; + overflow: hidden; + border-radius: 14px; +} +.nf-maker-portrait img { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + object-position: 50% 25%; + transform: scale(1.55); + transform-origin: 50% 25%; +} +.nf-maker-copy { + min-width: 0; +} +.nf-maker .nf-eyebrow { + margin-bottom: 8px; + font-size: 9px; + letter-spacing: 0.16em; + color: #a8b8df; +} +.nf-maker .nf-maker-copy h2 { + font-size: 25px; + letter-spacing: -0.035em; + line-height: 1.2; +} +.nf-maker p { + margin: 8px 0 0; + color: #a6abbd; + font-size: 13px; + line-height: 1.6; +} +.nf-maker-link { + display: flex; + align-items: center; + gap: 24px; + min-height: 48px; + margin-left: auto; + padding: 10px 0 10px 16px; + color: #dbdff9; + font-size: 13px; + white-space: nowrap; + transition: color 0.2s; +} +.nf-maker-domain { + display: block; + margin-top: 5px; + color: #98a3be; + font: + 10px ui-monospace, + monospace; +} +.nf-maker-link > svg { + width: 22px; + height: 22px; + color: #a8b7ff; + rotate: -45deg; + transition: transform 0.25s; +} +.nf-maker-link:hover { + color: #74d9ff; +} +.nf-maker-link:hover > svg { + transform: translateX(4px); +} @media (max-width: 600px) { - .nf-maker { padding-block: 24px; } - .nf-maker-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px 14px; padding: 22px 20px; } - .nf-maker-mark { width: 44px; height: 44px; border-radius: 12px; } - .nf-maker-mark::after { border-radius: 11px; } - .nf-maker-portrait { border-radius: 10px; } - .nf-maker .nf-maker-copy h2 { font-size: 20px; } - .nf-maker p { font-size: 12px; } - .nf-maker-link { grid-column: 1 / -1; justify-content: space-between; width: 100%; margin: 0; padding: 16px 0 0; border-top: 1px solid #ffffff12; } + .nf-maker { + padding-block: 24px; + } + .nf-maker-card { + display: grid; + grid-template-columns: 44px minmax(0, 1fr); + gap: 18px 14px; + padding: 22px 20px; + } + .nf-maker-mark { + width: 44px; + height: 44px; + border-radius: 12px; + } + .nf-maker-mark::after { + border-radius: 11px; + } + .nf-maker-portrait { + border-radius: 10px; + } + .nf-maker .nf-maker-copy h2 { + font-size: 20px; + } + .nf-maker p { + font-size: 12px; + } + .nf-maker-link { + grid-column: 1 / -1; + justify-content: space-between; + width: 100%; + margin: 0; + padding: 16px 0 0; + border-top: 1px solid #ffffff12; + } } /* Repeated animation can be paused globally. Reduced motion also removes entrance effects and smooth scrolling, without hiding any content. */ -[data-reveal].nf-revealed { animation: nf-enter .8s cubic-bezier(.16,1,.3,1) backwards; animation-delay: var(--reveal-delay, 0ms); } -@keyframes nf-enter { from { opacity: .01; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } } -@keyframes nf-flow { to { stroke-dashoffset: -232; } } -@keyframes nf-pulse { 50% { opacity: .5; } } -@keyframes nf-gradient { from { background-position: 0% 50%; } to { background-position: 100% 50%; } } -@keyframes nf-scene-drift { from { transform: perspective(700px) rotateX(35deg) rotateZ(-16deg) translateX(-35px); } to { transform: perspective(700px) rotateX(35deg) rotateZ(-12deg) translateX(35px); } } -@keyframes nf-aurora-drift { to { transform: translate(80px, 50px) scale(1.2); opacity: .4; } } -@keyframes nf-node-glow { 50% { stroke: #b3b3ff; filter: drop-shadow(0 0 5px #4e9cff44); } } -@keyframes nf-branch { 50% { border-color: #74cfff; box-shadow: 0 0 15px #4fc3ff18; transform: translateY(-3px); } } -@keyframes nf-trace { 0%, 100% { transform: scaleX(.5); opacity: .6; } 50%, 80% { transform: scaleX(1); opacity: 1; } } -@keyframes nf-spin { to { rotate: 360deg; } } -@keyframes nf-float { 50% { transform: translateY(-8px); } } -@keyframes nf-core-glow { to { box-shadow: inset 0 1px #d7e6ff19, 0 0 100px #5267eb3b; } } -@keyframes nf-cursor { 50% { opacity: 0; } } -@keyframes nf-ring { from { scale: .55; opacity: 0; } 25% { opacity: 1; } to { scale: 1.4; opacity: 0; } } -.nf-landing[data-motion=paused] *, .nf-landing[data-motion=paused] *::before, .nf-landing[data-motion=paused] *::after { animation-play-state: paused !important; } -.nf-landing[data-motion=paused] .nf-enter, .nf-landing[data-motion=paused] [data-reveal] { animation: none !important; opacity: 1; transform: none; } +[data-reveal].nf-revealed { + animation: nf-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards; + animation-delay: var(--reveal-delay, 0ms); +} +@keyframes nf-enter { + from { + opacity: 0.01; + transform: translateY(24px); + } + to { + opacity: 1; + transform: translateY(0); + } +} +@keyframes nf-flow { + to { + stroke-dashoffset: -232; + } +} +@keyframes nf-pulse { + 50% { + opacity: 0.5; + } +} +@keyframes nf-gradient { + from { + background-position: 0% 50%; + } + to { + background-position: 100% 50%; + } +} +@keyframes nf-scene-drift { + from { + transform: perspective(700px) rotateX(35deg) rotateZ(-16deg) + translateX(-35px); + } + to { + transform: perspective(700px) rotateX(35deg) rotateZ(-12deg) + translateX(35px); + } +} +@keyframes nf-aurora-drift { + to { + transform: translate(80px, 50px) scale(1.2); + opacity: 0.4; + } +} +@keyframes nf-node-glow { + 50% { + stroke: #b3b3ff; + filter: drop-shadow(0 0 5px #4e9cff44); + } +} +@keyframes nf-branch { + 50% { + border-color: #74cfff; + box-shadow: 0 0 15px #4fc3ff18; + transform: translateY(-3px); + } +} +@keyframes nf-trace { + 0%, + 100% { + transform: scaleX(0.5); + opacity: 0.6; + } + 50%, + 80% { + transform: scaleX(1); + opacity: 1; + } +} +@keyframes nf-spin { + to { + rotate: 360deg; + } +} +@keyframes nf-float { + 50% { + transform: translateY(-8px); + } +} +@keyframes nf-core-glow { + to { + box-shadow: + inset 0 1px #d7e6ff19, + 0 0 100px #5267eb3b; + } +} +@keyframes nf-cursor { + 50% { + opacity: 0; + } +} +@keyframes nf-ring { + from { + scale: 0.55; + opacity: 0; + } + 25% { + opacity: 1; + } + to { + scale: 1.4; + opacity: 0; + } +} +.nf-landing[data-motion='paused'] *, +.nf-landing[data-motion='paused'] *::before, +.nf-landing[data-motion='paused'] *::after { + animation-play-state: paused !important; +} +.nf-landing[data-motion='paused'] .nf-enter, +.nf-landing[data-motion='paused'] [data-reveal] { + animation: none !important; + opacity: 1; + transform: none; +} @media (max-width: 1100px) { - .nf-brand > span { display: none; } - .nf-preview-body { grid-template-columns: 175px minmax(0, 1fr); } - .nf-preview-caption { flex-direction: column; gap: 7px; } - .nf-capability { padding: 22px; }.nf-mini-fork b { padding-inline: 9px; }.nf-mini-retry b { padding-inline: 5px; } + .nf-brand > span { + display: none; + } + .nf-preview-body { + grid-template-columns: 175px minmax(0, 1fr); + } + .nf-preview-caption { + flex-direction: column; + gap: 7px; + } + .nf-capability { + padding: 22px; + } + .nf-mini-fork b { + padding-inline: 9px; + } + .nf-mini-retry b { + padding-inline: 5px; + } } @media (max-width: 800px) { - .nf-container { width: calc(100% - 40px); }.nf-desktop-nav { display: none; }.nf-menu-toggle { display: grid; }.nf-mobile-nav { display: flex; flex-direction: column; gap: 18px; padding: 10px 24px 24px; font-size: 14px; color: #c5cbe1; } - .nf-hero { padding-top: 100px; padding-bottom: 52px; }.nf-hero h1 { font-size: clamp(40px, 7vw, 60px); }.nf-hero-description { max-width: 550px; font-size: 14px; } - .nf-preview-sidebar { display: none; }.nf-preview-body { grid-template-columns: minmax(0, 1fr); }.nf-workflow-graph { min-width: 680px; } - .nf-section { padding-block: 76px; }.nf-stack > div { column-gap: 26px; }.nf-infrastructure { padding-block: 64px; }.nf-infrastructure .nf-container { gap: 25px; } - .nf-docs-heading { align-items: start; flex-direction: column; gap: 22px; }.nf-footer { flex-wrap: wrap; }.nf-footer p { order: 3; width: 100%; margin-top: -10px; } + .nf-container { + width: calc(100% - 40px); + } + .nf-desktop-nav { + display: none; + } + .nf-menu-toggle { + display: grid; + } + .nf-mobile-nav { + display: flex; + flex-direction: column; + gap: 18px; + padding: 10px 24px 24px; + font-size: 14px; + color: #c5cbe1; + } + .nf-hero { + padding-top: 100px; + padding-bottom: 52px; + } + .nf-hero h1 { + font-size: clamp(40px, 7vw, 60px); + } + .nf-hero-description { + max-width: 550px; + font-size: 14px; + } + .nf-preview-sidebar { + display: none; + } + .nf-preview-body { + grid-template-columns: minmax(0, 1fr); + } + .nf-workflow-graph { + min-width: 680px; + } + .nf-section { + padding-block: 76px; + } + .nf-stack > div { + column-gap: 26px; + } + .nf-infrastructure { + padding-block: 64px; + } + .nf-infrastructure .nf-container { + gap: 25px; + } + .nf-docs-heading { + align-items: start; + flex-direction: column; + gap: 22px; + } + .nf-footer { + flex-wrap: wrap; + } + .nf-footer p { + order: 3; + width: 100%; + margin-top: -10px; + } } @media (max-width: 600px) { - .nf-container { width: calc(100% - 32px); }.nf-header nav { gap: 8px; height: 64px; }.nf-logo { width: 114px; }.nf-header .nf-button-small { display: none; }.nf-header .nf-mobile-nav { height: auto; gap: 18px; } - .nf-hero { padding-top: 77px; }.nf-background-graph { opacity: .22; }.nf-hero h1 { font-size: clamp(30px, 8.2vw, 48px); letter-spacing: -.035em; line-height: 1.15; margin-block: 24px 19px; }.nf-hero-description { font-size: 13px; max-width: 340px; }.nf-desktop-break { display: none; } - .nf-hero-actions { flex-direction: column; align-items: center; gap: 10px; margin-top: 25px; }.nf-hero-actions .nf-button { width: 250px; }.nf-hero-facts { gap: 14px; font-size: 9px; }.nf-announcement { font-size: 10px; } - .nf-example-tabs { gap: 5px; justify-content: space-between; margin-bottom: 12px; }.nf-example-tabs button { font-size: 9px; gap: 5px; }.nf-example-tabs svg { width: 13px; height: 13px; } - .nf-preview-top { padding-inline: 12px; min-height: 49px; }.nf-preview-breadcrumb { display: none; }.nf-demo-label { font-size: 8px; }.nf-version { display: none; }.nf-preview-top strong { font-size: 10px; } - .nf-graph-viewport { height: 430px; }.nf-workflow-graph { display: none; }.nf-mobile-workflow { display: block; width: 100%; height: 430px; }.nf-view-toolbar { padding-inline: 12px; }.nf-execution-bar { padding-inline: 12px; font-size: 8px; gap: 8px; }.nf-preview-caption { font-size: 10px; line-height: 1.7; }.nf-preview-caption > span { font-size: 8px; } - .nf-stack { padding-block: 42px; }.nf-stack > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 21px 12px; }.nf-stack > div > span { justify-content: center; flex-direction: column; gap: 8px; font-size: 12px; }.nf-language-icon { width: 24px; height: 24px; }.nf-language-icon-http svg { width: 22px; height: 22px; } - .nf-section { padding-block: 65px; }.nf-eyebrow { font-size: 8px; letter-spacing: .08em; }.nf-landing h2 { font-size: 34px; }.nf-section-head > p, .nf-infra-copy > p { font-size: 13px; } - .nf-capabilities { margin-top: 32px; }.nf-capability { border-right: 0; border-bottom: 1px solid var(--nf-line); padding: 25px; }.nf-capability:last-child { border-bottom: 0; }.nf-capability p { min-height: 0; }.nf-mini { max-width: 280px; margin-inline: auto; height: 150px; }.nf-capability a { margin-top: 16px; } - .nf-orbit-diagram { height: 370px; scale: .86; margin-block: -15px; }.nf-orbit-three, .nf-orbit-satellite-two { width: 350px; height: 350px; }.nf-orbit-two, .nf-orbit-satellite-one { width: 275px; height: 275px; }.nf-orbit-label { font-size: 8px; padding: 8px; }.nf-orbit-label-0 { left: 0; }.nf-orbit-label-1 { right: -10px; top: 22%; }.nf-orbit-label-2 { right: -10px; bottom: 14%; }.nf-orbit-label-3 { left: -12px; bottom: 26%; } - .nf-terminal-content { padding: 22px 16px; font-size: 9px; }.nf-final { padding-block: 85px; }.nf-final h2 { font-size: 80px; }.nf-footer nav { gap: 18px; }.nf-footer p { font-size: 9px; } + .nf-container { + width: calc(100% - 32px); + } + .nf-header nav { + gap: 8px; + height: 64px; + } + .nf-logo { + width: 114px; + } + .nf-header .nf-button-small { + display: none; + } + .nf-header .nf-mobile-nav { + height: auto; + gap: 18px; + } + .nf-hero { + padding-top: 77px; + } + .nf-background-graph { + opacity: 0.22; + } + .nf-hero h1 { + font-size: clamp(30px, 8.2vw, 48px); + letter-spacing: -0.035em; + line-height: 1.15; + margin-block: 24px 19px; + } + .nf-hero-description { + font-size: 13px; + max-width: 340px; + } + .nf-desktop-break { + display: none; + } + .nf-hero-actions { + flex-direction: column; + align-items: center; + gap: 10px; + margin-top: 25px; + } + .nf-hero-actions .nf-button { + width: 250px; + } + .nf-hero-facts { + gap: 14px; + font-size: 9px; + } + .nf-announcement { + font-size: 10px; + } + .nf-example-tabs { + gap: 5px; + justify-content: space-between; + margin-bottom: 12px; + } + .nf-example-tabs button { + font-size: 9px; + gap: 5px; + } + .nf-example-tabs svg { + width: 13px; + height: 13px; + } + .nf-preview-top { + padding-inline: 12px; + min-height: 49px; + } + .nf-preview-breadcrumb { + display: none; + } + .nf-demo-label { + font-size: 8px; + } + .nf-version { + display: none; + } + .nf-preview-top strong { + font-size: 10px; + } + .nf-graph-viewport { + height: 430px; + } + .nf-workflow-graph { + display: none; + } + .nf-mobile-workflow { + display: block; + width: 100%; + height: 430px; + } + .nf-view-toolbar { + padding-inline: 12px; + } + .nf-execution-bar { + padding-inline: 12px; + font-size: 8px; + gap: 8px; + } + .nf-preview-caption { + font-size: 10px; + line-height: 1.7; + } + .nf-preview-caption > span { + font-size: 8px; + } + .nf-stack { + padding-block: 42px; + } + .nf-stack > div { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 21px 12px; + } + .nf-stack > div > span { + justify-content: center; + flex-direction: column; + gap: 8px; + font-size: 12px; + } + .nf-language-icon { + width: 24px; + height: 24px; + } + .nf-language-icon-http svg { + width: 22px; + height: 22px; + } + .nf-section { + padding-block: 65px; + } + .nf-eyebrow { + font-size: 8px; + letter-spacing: 0.08em; + } + .nf-landing h2 { + font-size: 34px; + } + .nf-section-head > p, + .nf-infra-copy > p { + font-size: 13px; + } + .nf-capabilities { + margin-top: 32px; + } + .nf-capability { + border-right: 0; + border-bottom: 1px solid var(--nf-line); + padding: 25px; + } + .nf-capability:last-child { + border-bottom: 0; + } + .nf-capability p { + min-height: 0; + } + .nf-mini { + max-width: 280px; + margin-inline: auto; + height: 150px; + } + .nf-capability a { + margin-top: 16px; + } + .nf-orbit-diagram { + height: 370px; + scale: 0.86; + margin-block: -15px; + } + .nf-orbit-three, + .nf-orbit-satellite-two { + width: 350px; + height: 350px; + } + .nf-orbit-two, + .nf-orbit-satellite-one { + width: 275px; + height: 275px; + } + .nf-orbit-label { + font-size: 8px; + padding: 8px; + } + .nf-orbit-label-0 { + left: 0; + } + .nf-orbit-label-1 { + right: -10px; + top: 22%; + } + .nf-orbit-label-2 { + right: -10px; + bottom: 14%; + } + .nf-orbit-label-3 { + left: -12px; + bottom: 26%; + } + .nf-terminal-content { + padding: 22px 16px; + font-size: 9px; + } + .nf-final { + padding-block: 85px; + } + .nf-final h2 { + font-size: 80px; + } + .nf-footer nav { + gap: 18px; + } + .nf-footer p { + font-size: 9px; + } } /* Keep the architecture within its own column at every breakpoint. Labels sit inside the diagram rather than hanging over an overflow-clipped edge. */ -.nf-orbit-diagram { min-width: 0; } -.nf-orbit-three, .nf-orbit-satellite-two { width: 88%; height: auto; aspect-ratio: 1; } -.nf-orbit-two, .nf-orbit-satellite-one { width: 68%; height: auto; aspect-ratio: 1; } -.nf-orbit-one { width: 45%; height: auto; aspect-ratio: 1; } -.nf-orbit-label { white-space: nowrap; font-size: 10px; line-height: 1.4; } -.nf-orbit-label-0 { left: 5%; top: 10%; } -.nf-orbit-label-1 { right: 2%; top: 29%; } -.nf-orbit-label-2 { right: 4%; bottom: 10%; } -.nf-orbit-label-3 { left: 2%; bottom: 27%; } -.nf-label, .nf-eyebrow, .nf-brand > span, .nf-stack > span, .nf-preview-caption > span, -.nf-sidebar-note, .nf-execution-bar, .nf-copy-feedback, .nf-terminal-header, -.nf-mini, .nf-mini-retry b, .nf-hero-facts, .nf-example-tabs button { font-size: 10px; } -.nf-node-type, .nf-node-status { font-size: 8px; } -.nf-node-title { font-size: 11px; } -.nf-task-row, .nf-view-switch button, .nf-replay, .nf-preview-caption { font-size: 11px; } -.nf-terminal-content { font-size: 12px; } -.nf-code-comment { font-size: 11px; } -.nf-capability p, .nf-steps p, .nf-doc-card p { font-size: 13px; } -.nf-footer p { font-size: 11px; } -.nf-capability { display: flex; flex-direction: column; } -.nf-capability > a { margin-top: auto; padding-top: 24px; } -.nf-mini { flex-shrink: 0; } -.nf-mini-fork > div { position: relative; padding-block: 10px; } -.nf-mini-fork > div::before, .nf-mini-fork > div::after { content: ''; position: absolute; height: 1px; left: 27px; right: 27px; background: #465b86; } -.nf-mini-fork > div::before { top: 0; }.nf-mini-fork > div::after { bottom: 0; } -.nf-mini-fork b { position: relative; } -.nf-mini-fork b::before, .nf-mini-fork b::after { content: ''; position: absolute; left: 50%; width: 1px; height: 10px; background: #465b86; } -.nf-mini-fork b::before { top: -11px; }.nf-mini-fork b::after { bottom: -11px; } +.nf-orbit-diagram { + min-width: 0; +} +.nf-orbit-three, +.nf-orbit-satellite-two { + width: 88%; + height: auto; + aspect-ratio: 1; +} +.nf-orbit-two, +.nf-orbit-satellite-one { + width: 68%; + height: auto; + aspect-ratio: 1; +} +.nf-orbit-one { + width: 45%; + height: auto; + aspect-ratio: 1; +} +.nf-orbit-label { + white-space: nowrap; + font-size: 10px; + line-height: 1.4; +} +.nf-orbit-label-0 { + left: 5%; + top: 10%; +} +.nf-orbit-label-1 { + right: 2%; + top: 29%; +} +.nf-orbit-label-2 { + right: 4%; + bottom: 10%; +} +.nf-orbit-label-3 { + left: 2%; + bottom: 27%; +} +.nf-label, +.nf-eyebrow, +.nf-brand > span, +.nf-stack > span, +.nf-preview-caption > span, +.nf-sidebar-note, +.nf-execution-bar, +.nf-copy-feedback, +.nf-terminal-header, +.nf-mini, +.nf-mini-retry b, +.nf-hero-facts, +.nf-example-tabs button { + font-size: 10px; +} +.nf-node-type, +.nf-node-status { + font-size: 8px; +} +.nf-node-title { + font-size: 11px; +} +.nf-task-row, +.nf-view-switch button, +.nf-replay, +.nf-preview-caption { + font-size: 11px; +} +.nf-terminal-content { + font-size: 12px; +} +.nf-code-comment { + font-size: 11px; +} +.nf-capability p, +.nf-steps p, +.nf-doc-card p { + font-size: 13px; +} +.nf-footer p { + font-size: 11px; +} +.nf-capability { + display: flex; + flex-direction: column; +} +.nf-capability > a { + margin-top: auto; + padding-top: 24px; +} +.nf-mini { + flex-shrink: 0; +} +.nf-mini-fork > div { + position: relative; + padding-block: 10px; +} +.nf-mini-fork > div::before, +.nf-mini-fork > div::after { + content: ''; + position: absolute; + height: 1px; + left: 27px; + right: 27px; + background: #465b86; +} +.nf-mini-fork > div::before { + top: 0; +} +.nf-mini-fork > div::after { + bottom: 0; +} +.nf-mini-fork b { + position: relative; +} +.nf-mini-fork b::before, +.nf-mini-fork b::after { + content: ''; + position: absolute; + left: 50%; + width: 1px; + height: 10px; + background: #465b86; +} +.nf-mini-fork b::before { + top: -11px; +} +.nf-mini-fork b::after { + bottom: -11px; +} @media (min-width: 601px) and (max-width: 1023px) { - .nf-capability { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 32px; padding: 30px; border-right: 0; border-bottom: 1px solid var(--nf-line); } - .nf-capability:last-child { border-bottom: 0; } - .nf-capability > .nf-mini { grid-column: 1; grid-row: 1 / 5; align-self: center; width: 100%; max-width: 300px; margin: 0 auto; } - .nf-capability > :not(.nf-mini) { grid-column: 2; } - .nf-capability p { min-height: 0; } - .nf-capability > a { padding-top: 16px; } - .nf-mini-retry > div { gap: 4px; }.nf-mini-retry b { font-size: 9px; } + .nf-capability { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); + column-gap: 32px; + padding: 30px; + border-right: 0; + border-bottom: 1px solid var(--nf-line); + } + .nf-capability:last-child { + border-bottom: 0; + } + .nf-capability > .nf-mini { + grid-column: 1; + grid-row: 1 / 5; + align-self: center; + width: 100%; + max-width: 300px; + margin: 0 auto; + } + .nf-capability > :not(.nf-mini) { + grid-column: 2; + } + .nf-capability p { + min-height: 0; + } + .nf-capability > a { + padding-top: 16px; + } + .nf-mini-retry > div { + gap: 4px; + } + .nf-mini-retry b { + font-size: 9px; + } } @media (max-width: 600px) { - .nf-orbit-diagram { scale: 1; height: 390px; margin-block: 0; } - .nf-orbit-label-0 { top: 7%; left: 3%; }.nf-orbit-label-1 { top: 23%; right: 0; } - .nf-orbit-label-2 { bottom: 7%; right: 2%; }.nf-orbit-label-3 { bottom: 22%; left: 0; } - .nf-orbit-label { padding: 7px 9px; font-size: 9px; } - .nf-hero-facts { font-size: 9px; }.nf-execution-bar { font-size: 9px; } - .nf-eyebrow { line-height: 1.6; }.nf-example-tabs { gap: 4px; }.nf-example-tabs button { font-size: 10px; } - .nf-motion, .nf-menu-toggle { width: 40px; height: 40px; } - .nf-example-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; } - .nf-example-tabs button { justify-content: center; flex-direction: column; gap: 7px; padding-block: 10px 14px; font-size: 10px; white-space: nowrap; } - .nf-hero-description { font-size: 14px; }.nf-terminal-command button { padding: 8px; } + .nf-orbit-diagram { + scale: 1; + height: 390px; + margin-block: 0; + } + .nf-orbit-label-0 { + top: 7%; + left: 3%; + } + .nf-orbit-label-1 { + top: 23%; + right: 0; + } + .nf-orbit-label-2 { + bottom: 7%; + right: 2%; + } + .nf-orbit-label-3 { + bottom: 22%; + left: 0; + } + .nf-orbit-label { + padding: 7px 9px; + font-size: 9px; + } + .nf-hero-facts { + font-size: 9px; + } + .nf-execution-bar { + font-size: 9px; + } + .nf-eyebrow { + line-height: 1.6; + } + .nf-example-tabs { + gap: 4px; + } + .nf-example-tabs button { + font-size: 10px; + } + .nf-motion, + .nf-menu-toggle { + width: 40px; + height: 40px; + } + .nf-example-tabs { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 5px; + } + .nf-example-tabs button { + justify-content: center; + flex-direction: column; + gap: 7px; + padding-block: 10px 14px; + font-size: 10px; + white-space: nowrap; + } + .nf-hero-description { + font-size: 14px; + } + .nf-terminal-command button { + padding: 8px; + } } /* Use the vertical graph before the desktop graph becomes too narrow. */ @media (max-width: 767px) { - .nf-graph-viewport { height: 430px; } - .nf-workflow-graph { display: none; } - .nf-mobile-workflow { display: block; width: 100%; height: 430px; } + .nf-graph-viewport { + height: 430px; + } + .nf-workflow-graph { + display: none; + } + .nf-mobile-workflow { + display: block; + width: 100%; + height: 430px; + } } @media (prefers-reduced-motion: reduce) { - html:has(.nf-landing) { scroll-behavior: auto; } - .nf-landing *, .nf-landing *::before, .nf-landing *::after { animation: none !important; transition: none !important; } - .nf-enter, [data-reveal] { opacity: 1; transform: none; } + html:has(.nf-landing) { + scroll-behavior: auto; + } + .nf-landing *, + .nf-landing *::before, + .nf-landing *::after { + animation: none !important; + transition: none !important; + } + .nf-enter, + [data-reveal] { + opacity: 1; + transform: none; + } } diff --git a/packages/docs/src/app/llms-full.txt/route.ts b/packages/docs/src/app/llms-full.txt/route.ts index 1d39983..07f0f51 100644 --- a/packages/docs/src/app/llms-full.txt/route.ts +++ b/packages/docs/src/app/llms-full.txt/route.ts @@ -15,15 +15,15 @@ const ORDER = ['guide', 'alternatives', 'contributing']; export async function GET() { const pages = [...source.getPages()].sort( - (a, b) => - rank(a.slugs[0]) - rank(b.slugs[0]) || a.url.localeCompare(b.url), + (a, b) => rank(a.slugs[0]) - rank(b.slugs[0]) || a.url.localeCompare(b.url), ); const texts = await Promise.all(pages.map(markdownOf)); return new Response( - [`# ${site.displayName} documentation\n\n> ${site.description}\n`, ...texts].join( - '\n---\n\n', - ), + [ + `# ${site.displayName} documentation\n\n> ${site.description}\n`, + ...texts, + ].join('\n---\n\n'), { headers: { 'Content-Type': 'text/plain; charset=utf-8' } }, ); } diff --git a/packages/docs/src/app/llms.txt/route.ts b/packages/docs/src/app/llms.txt/route.ts index 0384e3b..c8840fb 100644 --- a/packages/docs/src/app/llms.txt/route.ts +++ b/packages/docs/src/app/llms.txt/route.ts @@ -30,7 +30,9 @@ export function GET() { const sections = ['guide', 'alternatives', 'contributing'] .filter((key) => groups.has(key)) - .map((key) => `## ${SECTION_TITLES[key]}\n\n${groups.get(key)!.join('\n')}`); + .map( + (key) => `## ${SECTION_TITLES[key]}\n\n${groups.get(key)!.join('\n')}`, + ); const body = `# ${site.displayName} diff --git a/packages/docs/src/components/landing.tsx b/packages/docs/src/components/landing.tsx index 0b8596e..2fa99cf 100644 --- a/packages/docs/src/components/landing.tsx +++ b/packages/docs/src/components/landing.tsx @@ -5,26 +5,70 @@ import Link from 'next/link'; import { useEffect, useRef, useState, type CSSProperties } from 'react'; import { comparisons, landingFaq } from '../lib/landing-content'; -function Icon({ name = 'arrow', ...props }: { name?: string; className?: string }) { +function Icon({ + name = 'arrow', + ...props +}: { + name?: string; + className?: string; +}) { const paths: Record<string, string> = { - arrow: 'M4 12h15m-6-6 6 6-6 6', play: 'm9 5 11 7-11 7V5Z', pause: 'M8 5v14M16 5v14', - check: 'm5 12 4 4L19 6', code: 'm8 7-5 5 5 5m8-10 5 5-5 5m-3-14-2 18', - globe: 'M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM3 12h18M12 3c-4 4-4 14 0 18 4-4 4-14 0-18Z', - flow: 'M4 5h6v6H4zM14 13h6v6h-6zM7 11v5h7', book: 'M12 6v15M12 6C9 3 5 3 2 4v15c4-1 7-1 10 2 3-3 6-3 10-2V4c-3-1-7-1-10 2Z', - database: 'M20 6c0 2-4 3-8 3S4 8 4 6s4-3 8-3 8 1 8 3ZM4 6v12c0 2 4 3 8 3s8-1 8-3V6M4 12c0 2 4 3 8 3s8-1 8-3', - refresh: 'M20 7v5h-5M20 12a8 8 0 1 0-2 6', shield: 'm12 3 8 3v6c0 5-8 9-8 9s-8-4-8-9V6l8-3Zm-4 9 3 3 5-6', - copy: 'M9 9h11v12H9zM5 15H3V3h11v2', terminal: 'm5 6 5 6-5 6m8 0h6', menu: 'M4 6h16M4 12h16M4 18h16', + arrow: 'M4 12h15m-6-6 6 6-6 6', + play: 'm9 5 11 7-11 7V5Z', + pause: 'M8 5v14M16 5v14', + check: 'm5 12 4 4L19 6', + code: 'm8 7-5 5 5 5m8-10 5 5-5 5m-3-14-2 18', + globe: + 'M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM3 12h18M12 3c-4 4-4 14 0 18 4-4 4-14 0-18Z', + flow: 'M4 5h6v6H4zM14 13h6v6h-6zM7 11v5h7', + book: 'M12 6v15M12 6C9 3 5 3 2 4v15c4-1 7-1 10 2 3-3 6-3 10-2V4c-3-1-7-1-10 2Z', + database: + 'M20 6c0 2-4 3-8 3S4 8 4 6s4-3 8-3 8 1 8 3ZM4 6v12c0 2 4 3 8 3s8-1 8-3V6M4 12c0 2 4 3 8 3s8-1 8-3', + refresh: 'M20 7v5h-5M20 12a8 8 0 1 0-2 6', + shield: 'm12 3 8 3v6c0 5-8 9-8 9s-8-4-8-9V6l8-3Zm-4 9 3 3 5-6', + copy: 'M9 9h11v12H9zM5 15H3V3h11v2', + terminal: 'm5 6 5 6-5 6m8 0h6', + menu: 'M4 6h16M4 12h16M4 18h16', }; - return <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" {...props}><path d={paths[name] || paths.arrow} /></svg>; + return ( + <svg + viewBox="0 0 24 24" + fill="none" + stroke="currentColor" + strokeWidth="1.5" + strokeLinecap="round" + strokeLinejoin="round" + aria-hidden="true" + {...props} + > + <path d={paths[name] || paths.arrow} /> + </svg> + ); } function Brand({ priority = false }: { priority?: boolean }) { - return <Image src="/brand/node-flow.png" alt="Node Flow" width={2172} height={724} sizes="(max-width: 600px) 114px, 142px" priority={priority} className="nf-logo" />; + return ( + <Image + src="/brand/node-flow.png" + alt="Node Flow" + width={2172} + height={724} + sizes="(max-width: 600px) 114px, 142px" + priority={priority} + className="nf-logo" + /> + ); } function GitHubLink() { return ( - <a className="nf-github-link" href="https://github.com/dsardar099/node-flow" target="_blank" rel="noopener noreferrer" aria-label="GitHub repository (opens in a new tab)"> + <a + className="nf-github-link" + href="https://github.com/dsardar099/node-flow" + target="_blank" + rel="noopener noreferrer" + aria-label="GitHub repository (opens in a new tab)" + > <svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"> <path d="M12 .297C5.37.297 0 5.67 0 12.297c0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.725-4.043-1.61-4.043-1.61-.546-1.387-1.333-1.756-1.333-1.756-1.09-.745.083-.729.083-.729 1.205.084 1.838 1.237 1.838 1.237 1.07 1.835 2.807 1.305 3.492.998.108-.776.418-1.305.762-1.605-2.665-.305-5.467-1.334-5.467-5.93 0-1.31.467-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23a11.5 11.5 0 0 1 6 0c2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.922.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" /> </svg> @@ -34,49 +78,296 @@ function GitHubLink() { } const examples = [ - { title: 'Order fulfilment', name: 'fulfil_order', icon: 'flow', description: 'Validate an order, charge and reserve in parallel, then bring it all together.', tasks: ['Validate order', 'Charge payment', 'Reserve stock', 'Join results', 'Send receipt'], refs: ['validate_order', 'charge_payment', 'reserve_stock', 'join_results', 'send_receipt'] }, - { title: 'Data pipelines', name: 'process_document', icon: 'database', description: 'Extract a document, enrich it in parallel, and publish the combined result.', tasks: ['Extract text', 'Summarize', 'Create embeddings', 'Join results', 'Publish document'], refs: ['extract_text', 'summarize', 'create_embeddings', 'join_results', 'publish_document'] }, - { title: 'Human approvals', name: 'approve_release', icon: 'shield', description: 'Run checks alongside a human approval. Continue when both are complete.', tasks: ['Prepare release', 'Run checks', 'Human approval', 'Join results', 'Deploy release'], refs: ['prepare_release', 'run_checks', 'approve', 'join_results', 'deploy_release'] }, + { + title: 'Order fulfilment', + name: 'fulfil_order', + icon: 'flow', + description: + 'Validate an order, charge and reserve in parallel, then bring it all together.', + tasks: [ + 'Validate order', + 'Charge payment', + 'Reserve stock', + 'Join results', + 'Send receipt', + ], + refs: [ + 'validate_order', + 'charge_payment', + 'reserve_stock', + 'join_results', + 'send_receipt', + ], + }, + { + title: 'Data pipelines', + name: 'process_document', + icon: 'database', + description: + 'Extract a document, enrich it in parallel, and publish the combined result.', + tasks: [ + 'Extract text', + 'Summarize', + 'Create embeddings', + 'Join results', + 'Publish document', + ], + refs: [ + 'extract_text', + 'summarize', + 'create_embeddings', + 'join_results', + 'publish_document', + ], + }, + { + title: 'Human approvals', + name: 'approve_release', + icon: 'shield', + description: + 'Run checks alongside a human approval. Continue when both are complete.', + tasks: [ + 'Prepare release', + 'Run checks', + 'Human approval', + 'Join results', + 'Deploy release', + ], + refs: [ + 'prepare_release', + 'run_checks', + 'approve', + 'join_results', + 'deploy_release', + ], + }, ] as const; const phases = [0, 1, 1, 2, 3]; -const points = [[30, 129], [255, 49], [255, 209], [480, 129], [705, 129]]; -const edges = ['M195 165H220Q230 165 230 155V95Q230 85 240 85H255', 'M195 165H220Q230 165 230 175V235Q230 245 240 245H255', 'M420 85H445Q455 85 455 95V155Q455 165 465 165H480', 'M420 245H445Q455 245 455 235V175Q455 165 465 165H480', 'M645 165H705']; +const points = [ + [30, 129], + [255, 49], + [255, 209], + [480, 129], + [705, 129], +]; +const edges = [ + 'M195 165H220Q230 165 230 155V95Q230 85 240 85H255', + 'M195 165H220Q230 165 230 175V235Q230 245 240 245H255', + 'M420 85H445Q455 85 455 95V155Q455 165 465 165H480', + 'M420 245H445Q455 245 455 235V175Q455 165 465 165H480', + 'M645 165H705', +]; -function WorkflowGraph({ example, step, backdrop = false, compact = false }: { example: number; step: number; backdrop?: boolean; compact?: boolean }) { +function WorkflowGraph({ + example, + step, + backdrop = false, + compact = false, +}: { + example: number; + step: number; + backdrop?: boolean; + compact?: boolean; +}) { const item = examples[example]; - const dotId = backdrop ? 'backdrop-dots' : compact ? 'compact-dots' : 'workflow-dots'; - const layout = compact ? [[97, 12], [10, 122], [185, 122], [97, 232], [97, 342]] : points; - const connectors = compact ? ['M180 84V103H92V122', 'M180 84V103H267V122', 'M92 194V213H180V232', 'M267 194V213H180V232', 'M180 304V342'] : edges; - return <svg className={backdrop ? 'nf-background-graph' : compact ? 'nf-mobile-workflow' : 'nf-workflow-graph'} viewBox={compact ? '0 0 360 430' : '0 0 900 330'} aria-hidden={backdrop || undefined} role={backdrop ? undefined : 'img'} aria-label={backdrop ? undefined : `${item.description} Tasks: ${item.tasks.join(', ')}.`}> - <defs><pattern id={dotId} width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r=".7" fill="#8888a0" opacity=".25" /></pattern></defs> - <rect width={compact ? 360 : 900} height={compact ? 430 : 330} fill={`url(#${dotId})`} /> - {connectors.map((d, i) => <g key={d}><path d={d} className="nf-connector" /><path d={d} className={`nf-signal nf-signal-${i}`} /></g>)} - {item.tasks.map((task, i) => { - const done = step > phases[i]; const active = step === phases[i]; const [x, y] = layout[i]; - return <g key={i} transform={`translate(${x} ${y})`} className={`nf-graph-node ${done ? 'is-done' : active ? 'is-active' : ''}`}> - <rect width="165" height="72" rx="7" className="nf-node-frame" /> - <rect x="12" y="13" width="24" height="24" rx="5" className="nf-node-icon" /> - <text x="24" y="30" textAnchor="middle" className="nf-node-symbol">{done ? '✓' : i === 3 ? '⋈' : i === 2 && example === 2 ? '◎' : '↗'}</text> - <text x="46" y="23" className="nf-node-type">{i === 3 ? 'JOIN' : i === 2 && example === 2 ? 'HUMAN' : 'SIMPLE'}</text> - <text x="46" y="40" className="nf-node-title">{task}</text> - <circle cx="18" cy="57" r="2.5" className="nf-node-dot" /><text x="27" y="60" className="nf-node-status">{done ? 'Completed' : active ? 'Running' : 'Queued'}</text> - </g>; - })} - </svg>; + const dotId = backdrop + ? 'backdrop-dots' + : compact + ? 'compact-dots' + : 'workflow-dots'; + const layout = compact + ? [ + [97, 12], + [10, 122], + [185, 122], + [97, 232], + [97, 342], + ] + : points; + const connectors = compact + ? [ + 'M180 84V103H92V122', + 'M180 84V103H267V122', + 'M92 194V213H180V232', + 'M267 194V213H180V232', + 'M180 304V342', + ] + : edges; + return ( + <svg + className={ + backdrop + ? 'nf-background-graph' + : compact + ? 'nf-mobile-workflow' + : 'nf-workflow-graph' + } + viewBox={compact ? '0 0 360 430' : '0 0 900 330'} + aria-hidden={backdrop || undefined} + role={backdrop ? undefined : 'img'} + aria-label={ + backdrop + ? undefined + : `${item.description} Tasks: ${item.tasks.join(', ')}.` + } + > + <defs> + <pattern + id={dotId} + width="20" + height="20" + patternUnits="userSpaceOnUse" + > + <circle cx="1" cy="1" r=".7" fill="#8888a0" opacity=".25" /> + </pattern> + </defs> + <rect + width={compact ? 360 : 900} + height={compact ? 430 : 330} + fill={`url(#${dotId})`} + /> + {connectors.map((d, i) => ( + <g key={d}> + <path d={d} className="nf-connector" /> + <path d={d} className={`nf-signal nf-signal-${i}`} /> + </g> + ))} + {item.tasks.map((task, i) => { + const done = step > phases[i]; + const active = step === phases[i]; + const [x, y] = layout[i]; + return ( + <g + key={i} + transform={`translate(${x} ${y})`} + className={`nf-graph-node ${done ? 'is-done' : active ? 'is-active' : ''}`} + > + <rect width="165" height="72" rx="7" className="nf-node-frame" /> + <rect + x="12" + y="13" + width="24" + height="24" + rx="5" + className="nf-node-icon" + /> + <text x="24" y="30" textAnchor="middle" className="nf-node-symbol"> + {done + ? '✓' + : i === 3 + ? '⋈' + : i === 2 && example === 2 + ? '◎' + : '↗'} + </text> + <text x="46" y="23" className="nf-node-type"> + {i === 3 ? 'JOIN' : i === 2 && example === 2 ? 'HUMAN' : 'SIMPLE'} + </text> + <text x="46" y="40" className="nf-node-title"> + {task} + </text> + <circle cx="18" cy="57" r="2.5" className="nf-node-dot" /> + <text x="27" y="60" className="nf-node-status"> + {done ? 'Completed' : active ? 'Running' : 'Queued'} + </text> + </g> + ); + })} + </svg> + ); } function Definition({ example }: { example: number }) { const refs = examples[example].refs; - const task = (i: number) => ({ name: refs[i], taskReferenceName: refs[i], type: example === 2 && i === 2 ? 'HUMAN' : 'SIMPLE' }); - const definition = JSON.stringify({ name: examples[example].name, version: 1, tasks: [task(0), { name: 'parallel', taskReferenceName: 'parallel', type: 'FORK_JOIN', forkTasks: [[task(1)], [task(2)]] }, { name: refs[3], taskReferenceName: refs[3], type: 'JOIN', joinOn: [refs[1], refs[2]] }, task(4)] }, null, 2); - return <pre className="nf-definition" tabIndex={0} aria-label="Workflow JSON definition"><code>{definition.split('\n').map((line, index) => <span className="nf-code-line" key={index}><span className="nf-line-number" aria-hidden="true">{index + 1}</span><span>{line.split(/("[^"]*")/g).map((part, j) => <span key={j} className={part.startsWith('"') ? 'nf-code-string' : undefined}>{part}</span>)}</span></span>)}</code></pre>; + const task = (i: number) => ({ + name: refs[i], + taskReferenceName: refs[i], + type: example === 2 && i === 2 ? 'HUMAN' : 'SIMPLE', + }); + const definition = JSON.stringify( + { + name: examples[example].name, + version: 1, + tasks: [ + task(0), + { + name: 'parallel', + taskReferenceName: 'parallel', + type: 'FORK_JOIN', + forkTasks: [[task(1)], [task(2)]], + }, + { + name: refs[3], + taskReferenceName: refs[3], + type: 'JOIN', + joinOn: [refs[1], refs[2]], + }, + task(4), + ], + }, + null, + 2, + ); + return ( + <pre + className="nf-definition" + tabIndex={0} + aria-label="Workflow JSON definition" + > + <code> + {definition.split('\n').map((line, index) => ( + <span className="nf-code-line" key={index}> + <span className="nf-line-number" aria-hidden="true"> + {index + 1} + </span> + <span> + {line.split(/("[^"]*")/g).map((part, j) => ( + <span + key={j} + className={ + part.startsWith('"') ? 'nf-code-string' : undefined + } + > + {part} + </span> + ))} + </span> + </span> + ))} + </code> + </pre> + ); } const docs = [ - { icon: 'terminal', title: 'Your first workflow', text: 'From a local stack to a completed run. Follow the code, step by step.', href: '/docs/guide/quickstart', label: 'Quickstart' }, - { icon: 'flow', title: 'Learn the building blocks', text: 'Branches, parallel tasks, waits, retries, and the complete workflow DSL.', href: '/docs/guide/workflows', label: 'Workflow guide' }, - { icon: 'code', title: 'Explore the API', text: 'Endpoints, schemas, and executable requests. Powered by Scalar.', href: '/api-reference', label: 'API reference' }, - { icon: 'database', title: 'Make it production-ready', text: 'Deploy, monitor, secure, and operate your own workflow infrastructure.', href: '/docs/guide/self-hosting', label: 'Self-hosting' }, + { + icon: 'terminal', + title: 'Your first workflow', + text: 'From a local stack to a completed run. Follow the code, step by step.', + href: '/docs/guide/quickstart', + label: 'Quickstart', + }, + { + icon: 'flow', + title: 'Learn the building blocks', + text: 'Branches, parallel tasks, waits, retries, and the complete workflow DSL.', + href: '/docs/guide/workflows', + label: 'Workflow guide', + }, + { + icon: 'code', + title: 'Explore the API', + text: 'Endpoints, schemas, and executable requests. Powered by Scalar.', + href: '/api-reference', + label: 'API reference', + }, + { + icon: 'database', + title: 'Make it production-ready', + text: 'Deploy, monitor, secure, and operate your own workflow infrastructure.', + href: '/docs/guide/self-hosting', + label: 'Self-hosting', + }, ]; export function LandingPage() { @@ -97,22 +388,44 @@ export function LandingPage() { useEffect(() => { const media = window.matchMedia('(prefers-reduced-motion: reduce)'); const update = () => setReduced(media.matches); - update(); media.addEventListener('change', update); + update(); + media.addEventListener('change', update); const onVisibility = () => setVisible(!document.hidden); document.addEventListener('visibilitychange', onVisibility); - const reveal = new IntersectionObserver(entries => entries.forEach(entry => { - if (entry.isIntersecting) { entry.target.classList.add('nf-revealed'); reveal.unobserve(entry.target); } - }), { threshold: .12 }); - root.current?.querySelectorAll('[data-reveal]').forEach(el => reveal.observe(el)); - const demo = new IntersectionObserver(([entry]) => setDemoVisible(entry.isIntersecting), { threshold: .1 }); + const reveal = new IntersectionObserver( + (entries) => + entries.forEach((entry) => { + if (entry.isIntersecting) { + entry.target.classList.add('nf-revealed'); + reveal.unobserve(entry.target); + } + }), + { threshold: 0.12 }, + ); + root.current + ?.querySelectorAll('[data-reveal]') + .forEach((el) => reveal.observe(el)); + const demo = new IntersectionObserver( + ([entry]) => setDemoVisible(entry.isIntersecting), + { threshold: 0.1 }, + ); const preview = root.current?.querySelector('#workflow-preview'); if (preview) demo.observe(preview); - return () => { media.removeEventListener('change', update); document.removeEventListener('visibilitychange', onVisibility); reveal.disconnect(); demo.disconnect(); if (copyTimeout.current) clearTimeout(copyTimeout.current); }; + return () => { + media.removeEventListener('change', update); + document.removeEventListener('visibilitychange', onVisibility); + reveal.disconnect(); + demo.disconnect(); + if (copyTimeout.current) clearTimeout(copyTimeout.current); + }; }, []); useEffect(() => { if (stopped || !visible || !demoVisible) return; - const timer = setInterval(() => setStep(current => (current + 1) % 6), 1800); + const timer = setInterval( + () => setStep((current) => (current + 1) % 6), + 1800, + ); return () => clearInterval(timer); }, [stopped, visible, demoVisible]); @@ -121,7 +434,9 @@ export function LandingPage() { const closeOnEscape = (event: KeyboardEvent) => { if (event.key === 'Escape') { setMenu(false); - root.current?.querySelector<HTMLButtonElement>('.nf-menu-toggle')?.focus(); + root.current + ?.querySelector<HTMLButtonElement>('.nf-menu-toggle') + ?.focus(); } }; document.addEventListener('keydown', closeOnEscape); @@ -130,112 +445,761 @@ export function LandingPage() { async function copyCommand() { try { - await navigator.clipboard.writeText('docker compose -f docker/docker-compose.yml up'); - setCopied(true); setCopyError(false); + await navigator.clipboard.writeText( + 'docker compose -f docker/docker-compose.yml up', + ); + setCopied(true); + setCopyError(false); if (copyTimeout.current) clearTimeout(copyTimeout.current); copyTimeout.current = setTimeout(() => setCopied(false), 2200); - } catch { setCopyError(true); } + } catch { + setCopyError(true); + } } - return <div ref={root} className="nf-landing" data-motion={stopped || !visible ? 'paused' : 'running'}> - <a href="#main-content" className="nf-skip">Skip to content</a> - <header className="nf-header"> - <nav className="nf-container flex h-[72px] items-center justify-between gap-5" aria-label="Main navigation"> - <Link href="/" aria-label="Node Flow documentation home" className="nf-brand"><Brand priority /><span>DOCUMENTATION</span></Link> - <div className="nf-desktop-nav flex items-center gap-8"><a href="#how-it-works">How it works</a><Link href="/docs/guide">Documentation</Link><Link href="/docs/alternatives">Compare</Link><Link href="/api-reference">API reference</Link><GitHubLink /></div> - <div className="flex items-center gap-3"><button type="button" className="nf-motion" onClick={() => setPaused(!paused)} disabled={reduced} aria-pressed={stopped} aria-label={reduced ? 'Animations disabled by your system preference' : paused ? 'Resume animations' : 'Pause animations'} title={stopped ? 'Motion paused' : 'Pause motion'}><Icon name={stopped ? 'play' : 'pause'} /></button><Link href="/docs/guide/quickstart" className="nf-button nf-button-small">Start building <Icon /></Link><button className="nf-menu-toggle" aria-label="Toggle navigation" aria-expanded={menu} aria-controls="mobile-navigation" onClick={() => setMenu(!menu)}><Icon name="menu" /></button></div> - </nav> - {menu && <nav id="mobile-navigation" className="nf-mobile-nav" aria-label="Mobile navigation"><a href="#how-it-works" onClick={() => setMenu(false)}>How it works</a><Link href="/docs/guide">Documentation</Link><Link href="/docs/alternatives">Compare</Link><Link href="/api-reference">API reference</Link><GitHubLink /></nav>} - </header> - - <main id="main-content" tabIndex={-1}> - <section className="nf-hero"> - <div className="nf-hero-scene" aria-hidden="true"><div className="nf-scene-grid" /><WorkflowGraph example={0} step={2} backdrop /><div className="nf-aurora nf-aurora-blue" /><div className="nf-aurora nf-aurora-violet" /></div> - <div className="nf-container nf-hero-content"> - <a className="nf-announcement nf-enter" href="/docs/contributing/architecture"><span className="nf-status-dot" /> Source available. Built on Postgres. <Icon /></a> - <h1 className="nf-enter" style={{ '--entry': '90ms' } as CSSProperties}>Complex workflows.<br /><span>Beautifully orchestrated.</span></h1> - <p className="nf-enter nf-hero-description" style={{ '--entry': '180ms' } as CSSProperties}>A self-hosted workflow orchestration engine that runs on Postgres alone.<br className="nf-desktop-break" /> Durable workflows, workers in any language, and just one dependency.</p> - <div className="nf-hero-actions nf-enter" style={{ '--entry': '270ms' } as CSSProperties}><Link href="/docs/guide/quickstart" className="nf-button">Build your first workflow <Icon /></Link><Link className="nf-button nf-button-quiet" href="/docs/guide"><Icon name="book" /> Read the documentation</Link></div> - <div className="nf-hero-facts nf-enter" style={{ '--entry': '360ms' } as CSSProperties}><span><Icon name="check" /> Source available</span><span><Icon name="check" /> Self-hostable</span><span><Icon name="check" /> Postgres-powered</span></div> - </div> - </section> - - <section id="workflow-preview" className="nf-container nf-preview-section nf-enter" style={{ '--entry': '450ms' } as CSSProperties} aria-label="Interactive workflow example"> - <div className="nf-example-tabs" aria-label="Workflow examples">{examples.map((item, i) => <button key={item.name} type="button" aria-pressed={example === i} onClick={() => { setExample(i); setStep(0); }}><Icon name={item.icon} />{item.title}<span className="nf-tab-indicator" /></button>)}</div> - <div className="nf-preview"> - <div className="nf-preview-top"><div className="flex items-center gap-3"><span className="nf-app-icon"><Icon name="flow" /></span><span className="nf-preview-breadcrumb">Workflows <span>/</span></span><strong>{examples[example].name}</strong><span className="nf-version">v1</span></div><span className="nf-demo-label"><span className="nf-status-dot" /> Interactive demo</span></div> - <div className="nf-preview-body"> - <aside className="nf-preview-sidebar" aria-label="Example tasks"><span className="nf-label">EXECUTION PLAN</span>{examples[example].tasks.map((task, i) => <div className={`nf-task-row ${step === phases[i] ? 'is-active' : ''}`} key={task}><span className="nf-task-state">{step > phases[i] ? <Icon name="check" /> : <span>{String(i + 1).padStart(2, '0')}</span>}</span><span>{task}</span></div>)}<div className="nf-sidebar-note"><Icon name="database" /><span>State persisted<br /><strong>PostgreSQL</strong></span></div></aside> - <div className="nf-preview-main"> - <div className="nf-view-toolbar"><div className="nf-view-switch" aria-label="Preview view"><button aria-pressed={view === 'graph'} onClick={() => setView('graph')}><Icon name="flow" /> Workflow</button><button aria-pressed={view === 'definition'} onClick={() => setView('definition')}><Icon name="code" /> Definition</button></div><button className="nf-replay" onClick={() => setStep(0)}><Icon name="refresh" /> Replay</button></div> - <div className="nf-graph-viewport">{view === 'graph' ? <><WorkflowGraph example={example} step={step} /><WorkflowGraph example={example} step={step} compact /></> : <Definition example={example} />}</div> - <div className="nf-execution-bar"><span><span className="nf-status-dot" />{stopped ? 'Animation paused' : step >= 4 ? 'Workflow completed' : `Running: ${examples[example].tasks[phases.indexOf(step)]}`}</span><span className="nf-execution-count">{phases.filter(phase => step > phase).length} / 5 tasks complete</span></div> - <div className="nf-execution-progress" aria-hidden="true"><span style={{ width: `${phases.filter(phase => step > phase).length * 20}%` }} /></div> + return ( + <div + ref={root} + className="nf-landing" + data-motion={stopped || !visible ? 'paused' : 'running'} + > + <a href="#main-content" className="nf-skip"> + Skip to content + </a> + <header className="nf-header"> + <nav + className="nf-container flex h-[72px] items-center justify-between gap-5" + aria-label="Main navigation" + > + <Link + href="/" + aria-label="Node Flow documentation home" + className="nf-brand" + > + <Brand priority /> + <span>DOCUMENTATION</span> + </Link> + <div className="nf-desktop-nav flex items-center gap-8"> + <a href="#how-it-works">How it works</a> + <Link href="/docs/guide">Documentation</Link> + <Link href="/docs/alternatives">Compare</Link> + <Link href="/api-reference">API reference</Link> + <GitHubLink /> + </div> + <div className="flex items-center gap-3"> + <button + type="button" + className="nf-motion" + onClick={() => setPaused(!paused)} + disabled={reduced} + aria-pressed={stopped} + aria-label={ + reduced + ? 'Animations disabled by your system preference' + : paused + ? 'Resume animations' + : 'Pause animations' + } + title={stopped ? 'Motion paused' : 'Pause motion'} + > + <Icon name={stopped ? 'play' : 'pause'} /> + </button> + <Link + href="/docs/guide/quickstart" + className="nf-button nf-button-small" + > + Start building <Icon /> + </Link> + <button + className="nf-menu-toggle" + aria-label="Toggle navigation" + aria-expanded={menu} + aria-controls="mobile-navigation" + onClick={() => setMenu(!menu)} + > + <Icon name="menu" /> + </button> + </div> + </nav> + {menu && ( + <nav + id="mobile-navigation" + className="nf-mobile-nav" + aria-label="Mobile navigation" + > + <a href="#how-it-works" onClick={() => setMenu(false)}> + How it works + </a> + <Link href="/docs/guide">Documentation</Link> + <Link href="/docs/alternatives">Compare</Link> + <Link href="/api-reference">API reference</Link> + <GitHubLink /> + </nav> + )} + </header> + + <main id="main-content" tabIndex={-1}> + <section className="nf-hero"> + <div className="nf-hero-scene" aria-hidden="true"> + <div className="nf-scene-grid" /> + <WorkflowGraph example={0} step={2} backdrop /> + <div className="nf-aurora nf-aurora-blue" /> + <div className="nf-aurora nf-aurora-violet" /> + </div> + <div className="nf-container nf-hero-content"> + <a + className="nf-announcement nf-enter" + href="/docs/contributing/architecture" + > + <span className="nf-status-dot" /> Source available. Built on + Postgres. <Icon /> + </a> + <h1 + className="nf-enter" + style={{ '--entry': '90ms' } as CSSProperties} + > + Complex workflows. + <br /> + <span>Beautifully orchestrated.</span> + </h1> + <p + className="nf-enter nf-hero-description" + style={{ '--entry': '180ms' } as CSSProperties} + > + A self-hosted workflow orchestration engine that runs on Postgres + alone. + <br className="nf-desktop-break" /> Durable workflows, workers in + any language, and just one dependency. + </p> + <div + className="nf-hero-actions nf-enter" + style={{ '--entry': '270ms' } as CSSProperties} + > + <Link href="/docs/guide/quickstart" className="nf-button"> + Build your first workflow <Icon /> + </Link> + <Link className="nf-button nf-button-quiet" href="/docs/guide"> + <Icon name="book" /> Read the documentation + </Link> + </div> + <div + className="nf-hero-facts nf-enter" + style={{ '--entry': '360ms' } as CSSProperties} + > + <span> + <Icon name="check" /> Source available + </span> + <span> + <Icon name="check" /> Self-hostable + </span> + <span> + <Icon name="check" /> Postgres-powered + </span> </div> </div> + </section> + + <section + id="workflow-preview" + className="nf-container nf-preview-section nf-enter" + style={{ '--entry': '450ms' } as CSSProperties} + aria-label="Interactive workflow example" + > + <div className="nf-example-tabs" aria-label="Workflow examples"> + {examples.map((item, i) => ( + <button + key={item.name} + type="button" + aria-pressed={example === i} + onClick={() => { + setExample(i); + setStep(0); + }} + > + <Icon name={item.icon} /> + {item.title} + <span className="nf-tab-indicator" /> + </button> + ))} + </div> + <div className="nf-preview"> + <div className="nf-preview-top"> + <div className="flex items-center gap-3"> + <span className="nf-app-icon"> + <Icon name="flow" /> + </span> + <span className="nf-preview-breadcrumb"> + Workflows <span>/</span> + </span> + <strong>{examples[example].name}</strong> + <span className="nf-version">v1</span> + </div> + <span className="nf-demo-label"> + <span className="nf-status-dot" /> Interactive demo + </span> + </div> + <div className="nf-preview-body"> + <aside className="nf-preview-sidebar" aria-label="Example tasks"> + <span className="nf-label">EXECUTION PLAN</span> + {examples[example].tasks.map((task, i) => ( + <div + className={`nf-task-row ${step === phases[i] ? 'is-active' : ''}`} + key={task} + > + <span className="nf-task-state"> + {step > phases[i] ? ( + <Icon name="check" /> + ) : ( + <span>{String(i + 1).padStart(2, '0')}</span> + )} + </span> + <span>{task}</span> + </div> + ))} + <div className="nf-sidebar-note"> + <Icon name="database" /> + <span> + State persisted + <br /> + <strong>PostgreSQL</strong> + </span> + </div> + </aside> + <div className="nf-preview-main"> + <div className="nf-view-toolbar"> + <div className="nf-view-switch" aria-label="Preview view"> + <button + aria-pressed={view === 'graph'} + onClick={() => setView('graph')} + > + <Icon name="flow" /> Workflow + </button> + <button + aria-pressed={view === 'definition'} + onClick={() => setView('definition')} + > + <Icon name="code" /> Definition + </button> + </div> + <button className="nf-replay" onClick={() => setStep(0)}> + <Icon name="refresh" /> Replay + </button> + </div> + <div className="nf-graph-viewport"> + {view === 'graph' ? ( + <> + <WorkflowGraph example={example} step={step} /> + <WorkflowGraph example={example} step={step} compact /> + </> + ) : ( + <Definition example={example} /> + )} + </div> + <div className="nf-execution-bar"> + <span> + <span className="nf-status-dot" /> + {stopped + ? 'Animation paused' + : step >= 4 + ? 'Workflow completed' + : `Running: ${examples[example].tasks[phases.indexOf(step)]}`} + </span> + <span className="nf-execution-count"> + {phases.filter((phase) => step > phase).length} / 5 tasks + complete + </span> + </div> + <div className="nf-execution-progress" aria-hidden="true"> + <span + style={{ + width: `${phases.filter((phase) => step > phase).length * 20}%`, + }} + /> + </div> + </div> + </div> + </div> + <p className="nf-preview-caption"> + {examples[example].description} + <span>Illustrative execution · no server required</span> + </p> + </section> + + <div className="nf-container nf-stack" data-reveal> + <span>YOUR LOGIC. YOUR LANGUAGE.</span> + <div> + {['TypeScript', 'Python', 'Go', 'Java', 'Rust', 'HTTP'].map( + (name) => ( + <span key={name}> + <span + className={`nf-language-icon nf-language-icon-${name.toLowerCase()}`} + aria-hidden="true" + > + {name === 'HTTP' ? ( + <Icon name="globe" /> + ) : ( + <Image + src={`/brand/languages/${name.toLowerCase()}.svg`} + alt="" + width={32} + height={32} + unoptimized + /> + )} + </span> + {name} + </span> + ), + )} + </div> + <p>One worker protocol. Endless possibilities.</p> </div> - <p className="nf-preview-caption">{examples[example].description}<span>Illustrative execution · no server required</span></p> - </section> - - <div className="nf-container nf-stack" data-reveal> - <span>YOUR LOGIC. YOUR LANGUAGE.</span> - <div>{['TypeScript', 'Python', 'Go', 'Java', 'Rust', 'HTTP'].map(name => ( - <span key={name}> - <span className={`nf-language-icon nf-language-icon-${name.toLowerCase()}`} aria-hidden="true"> - {name === 'HTTP' ? <Icon name="globe" /> : <Image src={`/brand/languages/${name.toLowerCase()}.svg`} alt="" width={32} height={32} unoptimized />} - </span> - {name} - </span> - ))}</div> - <p>One worker protocol. Endless possibilities.</p> - </div> - - <section id="how-it-works" className="nf-container nf-section"> - <div className="nf-section-head" data-reveal><span className="nf-eyebrow">01 / THE DEVELOPER EXPERIENCE</span><h2>You write the work.<br /><span>Node Flow connects it.</span></h2><p>From a simple sequence to a sprawling graph, the same clear model takes you from definition to execution.</p></div> - <div className="nf-capabilities grid grid-cols-1 lg:grid-cols-3"> - <article className="nf-capability" data-reveal><div className="nf-mini nf-mini-fork" aria-hidden="true"><span>INPUT</span><i /><div><b>task A</b><b>task B</b><b>task C</b></div><i /><span>JOIN</span></div><span className="nf-label">DECLARE</span><h3>A graph you can reason about.</h3><p>Express branches, parallel work, loops, and human approvals in inspectable JSON.</p><Link href="/docs/guide/workflows">Explore the workflow DSL <Icon /></Link></article> - <article className="nf-capability" data-reveal><div className="nf-mini nf-mini-retry" aria-hidden="true"><span>ATTEMPT 01</span><div><b>interrupted</b><i /><b>retrying</b><i /><b>completed</b></div><span className="nf-retry-line" /></div><span className="nf-label">EXECUTE</span><h3>Built for the unexpected.</h3><p>Durable state, task leases, and configurable retries keep distributed work moving.</p><Link href="/docs/guide/execution-controls">Understand execution <Icon /></Link></article> - <article className="nf-capability" data-reveal><div className="nf-mini nf-mini-trace" aria-hidden="true">{[65, 90, 48, 78].map((width, i) => <div key={i}><span>0{i + 1}</span><i style={{ '--bar-width': `${width}%`, '--bar-delay': `${i * .35}s` } as CSSProperties} /><span>✓</span></div>)}</div><span className="nf-label">OBSERVE</span><h3>Every run tells a story.</h3><p>Follow execution history, inspect task outputs, and retry from the point that matters.</p><Link href="/docs/guide/execution-controls">Take control of a run <Icon /></Link></article> - </div> - </section> - <section className="nf-infrastructure"><div className="nf-container grid items-center gap-16 lg:grid-cols-2"> - <div className="nf-infra-copy" data-reveal><span className="nf-eyebrow">02 / RADICALLY SIMPLE INFRASTRUCTURE</span><h2>Big workflows.<br /><span>Small footprint.</span></h2><p>Queues, timers, workflow state, and the outbox. All backed by Postgres. One transactional foundation for the whole system.</p><div className="nf-infra-points"><span><Icon name="check" /> One required infrastructure dependency</span><span><Icon name="check" /> Pure, deterministic decision engine</span><span><Icon name="check" /> Scale API, decider, and poller independently</span></div><Link className="nf-text-link" href="/docs/contributing/architecture">Go inside the architecture <Icon /></Link></div> - <div className="nf-orbit-diagram" data-reveal role="img" aria-label="Postgres stores workflow state, queues, timers, and the outbox"><div className="nf-orbit nf-orbit-one" /><div className="nf-orbit nf-orbit-two" /><div className="nf-orbit nf-orbit-three" /><div className="nf-orbit-satellite nf-orbit-satellite-one"><i /></div><div className="nf-orbit-satellite nf-orbit-satellite-two"><i /></div><div className="nf-pg-core"><Icon name="database" /><strong>Postgres</strong><span>ONE SOURCE<br />OF TRUTH</span></div>{['Workflow state', 'Task queues', 'Durable timers', 'Transactional outbox'].map((name, i) => <span key={name} className={`nf-orbit-label nf-orbit-label-${i}`}><span className="nf-status-dot" />{name}</span>)}</div> - </div></section> + <section id="how-it-works" className="nf-container nf-section"> + <div className="nf-section-head" data-reveal> + <span className="nf-eyebrow">01 / THE DEVELOPER EXPERIENCE</span> + <h2> + You write the work. + <br /> + <span>Node Flow connects it.</span> + </h2> + <p> + From a simple sequence to a sprawling graph, the same clear model + takes you from definition to execution. + </p> + </div> + <div className="nf-capabilities grid grid-cols-1 lg:grid-cols-3"> + <article className="nf-capability" data-reveal> + <div className="nf-mini nf-mini-fork" aria-hidden="true"> + <span>INPUT</span> + <i /> + <div> + <b>task A</b> + <b>task B</b> + <b>task C</b> + </div> + <i /> + <span>JOIN</span> + </div> + <span className="nf-label">DECLARE</span> + <h3>A graph you can reason about.</h3> + <p> + Express branches, parallel work, loops, and human approvals in + inspectable JSON. + </p> + <Link href="/docs/guide/workflows"> + Explore the workflow DSL <Icon /> + </Link> + </article> + <article className="nf-capability" data-reveal> + <div className="nf-mini nf-mini-retry" aria-hidden="true"> + <span>ATTEMPT 01</span> + <div> + <b>interrupted</b> + <i /> + <b>retrying</b> + <i /> + <b>completed</b> + </div> + <span className="nf-retry-line" /> + </div> + <span className="nf-label">EXECUTE</span> + <h3>Built for the unexpected.</h3> + <p> + Durable state, task leases, and configurable retries keep + distributed work moving. + </p> + <Link href="/docs/guide/execution-controls"> + Understand execution <Icon /> + </Link> + </article> + <article className="nf-capability" data-reveal> + <div className="nf-mini nf-mini-trace" aria-hidden="true"> + {[65, 90, 48, 78].map((width, i) => ( + <div key={i}> + <span>0{i + 1}</span> + <i + style={ + { + '--bar-width': `${width}%`, + '--bar-delay': `${i * 0.35}s`, + } as CSSProperties + } + /> + <span>✓</span> + </div> + ))} + </div> + <span className="nf-label">OBSERVE</span> + <h3>Every run tells a story.</h3> + <p> + Follow execution history, inspect task outputs, and retry from + the point that matters. + </p> + <Link href="/docs/guide/execution-controls"> + Take control of a run <Icon /> + </Link> + </article> + </div> + </section> - <section className="nf-container nf-section nf-get-started"><div className="nf-section-head" data-reveal><span className="nf-eyebrow">03 / A SHORT PATH TO YOUR FIRST RUN</span><h2>Less setup.<br /><span>More shipping.</span></h2></div><div className="nf-start-grid grid gap-12 md:grid-cols-2"> - <div className="nf-steps" data-reveal>{[{ 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) => <div key={s.title}><span>{i + 1}</span><section><h3>{s.title}</h3><p>{s.body}</p></section></div>)}<Link href="/docs/guide/quickstart" className="nf-text-link">Follow the complete quickstart <Icon /></Link></div> - <div className="nf-terminal" data-reveal><div className="nf-terminal-header"><span><i /><i /><i /></span><span>YOUR TERMINAL</span><Icon name="terminal" /></div><div className="nf-terminal-content"><span className="nf-code-comment"># From a checkout of the repository</span><div className="nf-terminal-command"><span>$</span><code>docker compose -f docker/docker-compose.yml up</code><button onClick={copyCommand} aria-label="Copy Docker Compose command"><Icon name={copied ? 'check' : 'copy'} /></button></div><div className="nf-terminal-output" aria-label="Example startup output"><p><Icon name="check" /><span>Postgres</span><b>ready</b></p><p><Icon name="check" /><span>Node Flow server</span><b>:3000</b></p><p><Icon name="check" /><span>Dashboard</span><b>:3100</b></p></div><div className="nf-terminal-prompt"><span>$</span><i /></div><span className="nf-copy-feedback" role="status">{copied ? 'Command copied' : copyError ? 'Select the command above to copy it.' : 'Example output · Docker Compose starts three services'}</span></div></div> - </div></section> + <section className="nf-infrastructure"> + <div className="nf-container grid items-center gap-16 lg:grid-cols-2"> + <div className="nf-infra-copy" data-reveal> + <span className="nf-eyebrow"> + 02 / RADICALLY SIMPLE INFRASTRUCTURE + </span> + <h2> + Big workflows. + <br /> + <span>Small footprint.</span> + </h2> + <p> + Queues, timers, workflow state, and the outbox. All backed by + Postgres. One transactional foundation for the whole system. + </p> + <div className="nf-infra-points"> + <span> + <Icon name="check" /> One required infrastructure dependency + </span> + <span> + <Icon name="check" /> Pure, deterministic decision engine + </span> + <span> + <Icon name="check" /> Scale API, decider, and poller + independently + </span> + </div> + <Link + className="nf-text-link" + href="/docs/contributing/architecture" + > + Go inside the architecture <Icon /> + </Link> + </div> + <div + className="nf-orbit-diagram" + data-reveal + role="img" + aria-label="Postgres stores workflow state, queues, timers, and the outbox" + > + <div className="nf-orbit nf-orbit-one" /> + <div className="nf-orbit nf-orbit-two" /> + <div className="nf-orbit nf-orbit-three" /> + <div className="nf-orbit-satellite nf-orbit-satellite-one"> + <i /> + </div> + <div className="nf-orbit-satellite nf-orbit-satellite-two"> + <i /> + </div> + <div className="nf-pg-core"> + <Icon name="database" /> + <strong>Postgres</strong> + <span> + ONE SOURCE + <br /> + OF TRUTH + </span> + </div> + {[ + 'Workflow state', + 'Task queues', + 'Durable timers', + 'Transactional outbox', + ].map((name, i) => ( + <span + key={name} + className={`nf-orbit-label nf-orbit-label-${i}`} + > + <span className="nf-status-dot" /> + {name} + </span> + ))} + </div> + </div> + </section> + + <section className="nf-container nf-section nf-get-started"> + <div className="nf-section-head" data-reveal> + <span className="nf-eyebrow"> + 03 / A SHORT PATH TO YOUR FIRST RUN + </span> + <h2> + Less setup. + <br /> + <span>More shipping.</span> + </h2> + </div> + <div className="nf-start-grid grid gap-12 md:grid-cols-2"> + <div className="nf-steps" data-reveal> + {[ + { + 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) => ( + <div key={s.title}> + <span>{i + 1}</span> + <section> + <h3>{s.title}</h3> + <p>{s.body}</p> + </section> + </div> + ))} + <Link href="/docs/guide/quickstart" className="nf-text-link"> + Follow the complete quickstart <Icon /> + </Link> + </div> + <div className="nf-terminal" data-reveal> + <div className="nf-terminal-header"> + <span> + <i /> + <i /> + <i /> + </span> + <span>YOUR TERMINAL</span> + <Icon name="terminal" /> + </div> + <div className="nf-terminal-content"> + <span className="nf-code-comment"> + # From a checkout of the repository + </span> + <div className="nf-terminal-command"> + <span>$</span> + <code>docker compose -f docker/docker-compose.yml up</code> + <button + onClick={copyCommand} + aria-label="Copy Docker Compose command" + > + <Icon name={copied ? 'check' : 'copy'} /> + </button> + </div> + <div + className="nf-terminal-output" + aria-label="Example startup output" + > + <p> + <Icon name="check" /> + <span>Postgres</span> + <b>ready</b> + </p> + <p> + <Icon name="check" /> + <span>Node Flow server</span> + <b>:3000</b> + </p> + <p> + <Icon name="check" /> + <span>Dashboard</span> + <b>:3100</b> + </p> + </div> + <div className="nf-terminal-prompt"> + <span>$</span> + <i /> + </div> + <span className="nf-copy-feedback" role="status"> + {copied + ? 'Command copied' + : copyError + ? 'Select the command above to copy it.' + : 'Example output · Docker Compose starts three services'} + </span> + </div> + </div> + </div> + </section> - <section className="nf-container nf-section nf-docs-section" id="documentation"><div className="nf-docs-heading" data-reveal><div><span className="nf-eyebrow">THE NEXT STEP IS YOURS</span><h2>Built for builders.<br /><span>Documented for humans.</span></h2></div><Link href="/docs/guide" className="nf-text-link">All documentation <Icon /></Link></div><div className="nf-docs-grid grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4">{docs.map((item, i) => <Link key={item.title} href={item.href} className="nf-doc-card" data-reveal style={{ '--reveal-delay': `${i * 70}ms` } as CSSProperties}><span className="nf-doc-icon"><Icon name={item.icon} /></span><h3>{item.title}</h3><p>{item.text}</p><span className="nf-doc-link">{item.label}<Icon /></span></Link>)}</div></section> + <section + className="nf-container nf-section nf-docs-section" + id="documentation" + > + <div className="nf-docs-heading" data-reveal> + <div> + <span className="nf-eyebrow">THE NEXT STEP IS YOURS</span> + <h2> + Built for builders. + <br /> + <span>Documented for humans.</span> + </h2> + </div> + <Link href="/docs/guide" className="nf-text-link"> + All documentation <Icon /> + </Link> + </div> + <div className="nf-docs-grid grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"> + {docs.map((item, i) => ( + <Link + key={item.title} + href={item.href} + className="nf-doc-card" + data-reveal + style={{ '--reveal-delay': `${i * 70}ms` } as CSSProperties} + > + <span className="nf-doc-icon"> + <Icon name={item.icon} /> + </span> + <h3>{item.title}</h3> + <p>{item.text}</p> + <span className="nf-doc-link"> + {item.label} + <Icon /> + </span> + </Link> + ))} + </div> + </section> - <section className="nf-container nf-section nf-docs-section" id="compare" aria-labelledby="compare-heading"><div className="nf-docs-heading" data-reveal><div><span className="nf-eyebrow">04 / HOW IT COMPARES</span><h2 id="compare-heading">A Conductor, Temporal and<br /><span>Trigger.dev alternative.</span></h2></div><Link href="/docs/alternatives" className="nf-text-link">All comparisons <Icon /></Link></div><div className="nf-docs-grid grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4">{comparisons.map((item, i) => <Link key={item.href} href={item.href} className="nf-doc-card" data-reveal style={{ '--reveal-delay': `${(i % 4) * 70}ms` } as CSSProperties}><span className="nf-doc-icon"><Icon name="refresh" /></span><h3>{item.name === 'Open-source engines' ? 'Open-source workflow engines' : `${item.name} alternative`}</h3><p>{item.text}</p><span className="nf-doc-link">node-flow vs {item.name}<Icon /></span></Link>)}</div></section> + <section + className="nf-container nf-section nf-docs-section" + id="compare" + aria-labelledby="compare-heading" + > + <div className="nf-docs-heading" data-reveal> + <div> + <span className="nf-eyebrow">04 / HOW IT COMPARES</span> + <h2 id="compare-heading"> + A Conductor, Temporal and + <br /> + <span>Trigger.dev alternative.</span> + </h2> + </div> + <Link href="/docs/alternatives" className="nf-text-link"> + All comparisons <Icon /> + </Link> + </div> + <div className="nf-docs-grid grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"> + {comparisons.map((item, i) => ( + <Link + key={item.href} + href={item.href} + className="nf-doc-card" + data-reveal + style={ + { '--reveal-delay': `${(i % 4) * 70}ms` } as CSSProperties + } + > + <span className="nf-doc-icon"> + <Icon name="refresh" /> + </span> + <h3> + {item.name === 'Open-source engines' + ? 'Open-source workflow engines' + : `${item.name} alternative`} + </h3> + <p>{item.text}</p> + <span className="nf-doc-link"> + node-flow vs {item.name} + <Icon /> + </span> + </Link> + ))} + </div> + </section> - <section className="nf-container nf-section nf-docs-section nf-faq" id="faq" aria-labelledby="faq-heading"><div className="nf-docs-heading" data-reveal><div><span className="nf-eyebrow">05 / QUESTIONS</span><h2 id="faq-heading">Frequently asked.<br /><span>Plainly answered.</span></h2></div></div><div className="nf-faq-list">{landingFaq.map(item => <details key={item.question} className="nf-faq-item" data-reveal><summary><h3>{item.question}</h3></summary><p>{item.answer}</p></details>)}</div></section> + <section + className="nf-container nf-section nf-docs-section nf-faq" + id="faq" + aria-labelledby="faq-heading" + > + <div className="nf-docs-heading" data-reveal> + <div> + <span className="nf-eyebrow">05 / QUESTIONS</span> + <h2 id="faq-heading"> + Frequently asked. + <br /> + <span>Plainly answered.</span> + </h2> + </div> + </div> + <div className="nf-faq-list"> + {landingFaq.map((item) => ( + <details key={item.question} className="nf-faq-item" data-reveal> + <summary> + <h3>{item.question}</h3> + </summary> + <p>{item.answer}</p> + </details> + ))} + </div> + </section> - <section className="nf-final"><div className="nf-final-rings" aria-hidden="true"><i /><i /><i /></div><div className="nf-container" data-reveal><span className="nf-eyebrow">YOUR INFRASTRUCTURE. YOUR RULES.</span><h2>Let it flow.</h2><p>Your next workflow starts with a single step.</p><Link className="nf-button" href="/docs/guide/quickstart">Start building with Node Flow <Icon /></Link></div></section> - <section className="nf-container nf-maker" aria-labelledby="maker-heading"> - <div className="nf-maker-card" data-reveal> - <div className="nf-maker-mark"> - <span className="nf-maker-portrait"> - <Image src="/brand/dwaipayan-sardar.jpg" alt="Dwaipayan Sardar" width={1122} height={1402} sizes="(max-width: 600px) 68px, 93px" /> - </span> + <section className="nf-final"> + <div className="nf-final-rings" aria-hidden="true"> + <i /> + <i /> + <i /> </div> - <div className="nf-maker-copy"> - <span className="nf-eyebrow">BEHIND THE FLOW</span> - <h2 id="maker-heading">Dwaipayan Sardar</h2> - <p>Built with curiosity. Shared with the world.</p> + <div className="nf-container" data-reveal> + <span className="nf-eyebrow">YOUR INFRASTRUCTURE. YOUR RULES.</span> + <h2>Let it flow.</h2> + <p>Your next workflow starts with a single step.</p> + <Link className="nf-button" href="/docs/guide/quickstart"> + Start building with Node Flow <Icon /> + </Link> </div> - <a className="nf-maker-link" href="https://www.dwaipayan.in/" target="_blank" rel="noopener noreferrer"> - <span>Meet the builder<span className="nf-maker-domain">dwaipayan.in</span></span> - <Icon /> - <span className="sr-only"> (opens in a new tab)</span> - </a> - </div> - </section> - </main> - <footer className="nf-container nf-footer"><Link href="/" aria-label="Node Flow home"><Brand /></Link><p>Source available. Free to run, including commercially. Built to keep work moving.</p><nav aria-label="Footer navigation"><Link href="/docs/guide">Docs</Link><Link href="/docs/alternatives">Compare</Link><Link href="/api-reference">API</Link><Link href="/docs/contributing">Contribute</Link><GitHubLink /></nav></footer> - </div>; + </section> + <section + className="nf-container nf-maker" + aria-labelledby="maker-heading" + > + <div className="nf-maker-card" data-reveal> + <div className="nf-maker-mark"> + <span className="nf-maker-portrait"> + <Image + src="/brand/dwaipayan-sardar.jpg" + alt="Dwaipayan Sardar" + width={1122} + height={1402} + sizes="(max-width: 600px) 68px, 93px" + /> + </span> + </div> + <div className="nf-maker-copy"> + <span className="nf-eyebrow">BEHIND THE FLOW</span> + <h2 id="maker-heading">Dwaipayan Sardar</h2> + <p>Built with curiosity. Shared with the world.</p> + </div> + <a + className="nf-maker-link" + href="https://www.dwaipayan.in/" + target="_blank" + rel="noopener noreferrer" + > + <span> + Meet the builder + <span className="nf-maker-domain">dwaipayan.in</span> + </span> + <Icon /> + <span className="sr-only"> (opens in a new tab)</span> + </a> + </div> + </section> + </main> + <footer className="nf-container nf-footer"> + <Link href="/" aria-label="Node Flow home"> + <Brand /> + </Link> + <p> + Source available. Free to run, including commercially. Built to keep + work moving. + </p> + <nav aria-label="Footer navigation"> + <Link href="/docs/guide">Docs</Link> + <Link href="/docs/alternatives">Compare</Link> + <Link href="/api-reference">API</Link> + <Link href="/docs/contributing">Contribute</Link> + <GitHubLink /> + </nav> + </footer> + </div> + ); } diff --git a/packages/docs/src/lib/landing-content.ts b/packages/docs/src/lib/landing-content.ts index 075cb29..6caf371 100644 --- a/packages/docs/src/lib/landing-content.ts +++ b/packages/docs/src/lib/landing-content.ts @@ -9,14 +9,46 @@ import type { FaqItem } from '../components/json-ld'; */ 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.' }, + { + 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[] = [ diff --git a/packages/docs/src/lib/layout.shared.tsx b/packages/docs/src/lib/layout.shared.tsx index c6086d6..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: ( <span className="flex items-center gap-2"> - <Image src="/brand/node-flow.png" alt="Node Flow" width={2172} height={724} className="h-7 w-auto" /> + <Image + src="/brand/node-flow.png" + alt="Node Flow" + width={2172} + height={724} + className="h-7 w-auto" + /> <span className="text-fd-muted-foreground">docs</span> </span> ),