{"schemaVersion":"1.0","record":{"label":"React Flow","description":"React component library for node-based editors and interactive diagrams, with application-defined data processing.","aliases":["@xyflow/react"],"kind":"software","website":"https://reactflow.dev/","overview":"React Flow is an open-source React library for node-based editors and interactive diagrams. It supplies graph interaction features such as node dragging, selection, panning and zooming, while custom nodes can contain React components. Applications define what their graph represents and how its data should be processed or stored.","license":"MIT core; optional Pro examples and support have separate subscription terms","lifecycle":"active","example":false,"features":[{"name":"Interactive graph UI","status":"supported","detail":"Custom React nodes with dragging, viewport controls and selection.","useCase":"Embedding interactive node graphs and diagram editors in React applications","platforms":["Web","React","TypeScript"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://reactflow.dev/","locator":"Node-based UI and built-in interactions","retrievedAt":"2026-10-07T23:38:20Z","kind":"vendor"}]},{"name":"Automatic layout","status":"limited","detail":"Layout engines such as Dagre or ELK are external integrations, not a built-in automatic layout solution.","useCase":"Embedding interactive node graphs and diagram editors in React applications","platforms":["Web","React","TypeScript"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://reactflow.dev/learn/layouting/layouting","locator":"External layout engines and their constraints","retrievedAt":"2026-10-07T23:38:43Z","kind":"vendor"}]},{"name":"Server rendering","status":"limited","detail":"Supported since v12 with explicit node dimensions and handle positions.","useCase":"Embedding interactive node graphs and diagram editors in React applications","platforms":["Web","React","TypeScript"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://reactflow.dev/learn/advanced-use/ssr-ssg-configuration","locator":"Explicit node and handle geometry","retrievedAt":"2026-10-07T23:38:37Z","kind":"vendor"}]},{"name":"Graph computation","status":"limited","detail":"Hooks support application-defined dataflow; connecting visual nodes does not define their computation automatically.","useCase":"Embedding interactive node graphs and diagram editors in React applications","platforms":["Web","React","TypeScript"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://reactflow.dev/learn/advanced-use/computing-flows","locator":"Node data, connection hooks and input-state caveat","retrievedAt":"2026-10-07T23:38:52Z","kind":"vendor"}]}],"alternatives":[],"slug":"react-flow","draftAlternatives":[{"targetSlug":"rete-js","status":"limited","detail":"Can replace the visual React node-editor layer when application-defined processing is appropriate; does not provide API or graph-format interchange with Rete.","useCase":"Embedding interactive node graphs and diagram editors in React applications","platforms":["Web","React","TypeScript"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://reactflow.dev/","locator":"Node-based UI and built-in interactions","retrievedAt":"2026-10-07T23:38:20Z","kind":"vendor"},{"url":"https://reactflow.dev/learn/advanced-use/computing-flows","locator":"Node data, connection hooks and input-state caveat","retrievedAt":"2026-10-07T23:38:52Z","kind":"vendor"},{"url":"https://retejs.org/","locator":"Processing-oriented editors and engine modules","retrievedAt":"2026-10-07T23:38:30Z","kind":"vendor"}]}],"evidence":[{"url":"https://reactflow.dev/","locator":"Node-based UI and built-in interactions","retrievedAt":"2026-10-07T23:38:20Z","kind":"vendor"},{"url":"https://reactflow.dev/learn/layouting/layouting","locator":"External layout engines and their constraints","retrievedAt":"2026-10-07T23:38:43Z","kind":"vendor"},{"url":"https://reactflow.dev/learn/advanced-use/ssr-ssg-configuration","locator":"Explicit node and handle geometry","retrievedAt":"2026-10-07T23:38:37Z","kind":"vendor"},{"url":"https://reactflow.dev/learn/advanced-use/computing-flows","locator":"Node data, connection hooks and input-state caveat","retrievedAt":"2026-10-07T23:38:52Z","kind":"vendor"},{"url":"https://reactflow.dev/examples/interaction/save-and-restore","locator":"toObject or local node/edge state","retrievedAt":"2026-10-07T23:38:52Z","kind":"vendor"},{"url":"https://reactflow.dev/learn/troubleshooting/migrate-to-v12","locator":"Package rename and style imports","retrievedAt":"2026-10-07T23:38:52Z","kind":"vendor"},{"url":"https://github.com/xyflow/xyflow/blob/main/LICENSE","locator":"MIT grant and notice conditions","retrievedAt":"2026-10-07T23:38:43Z","kind":"vendor"},{"url":"https://reactflow.dev/pro","locator":"Optional examples and support subscription; core remains MIT","retrievedAt":"2026-10-07T23:38:37Z","kind":"vendor"},{"url":"https://retejs.org/","locator":"Processing-oriented editors and engine modules","retrievedAt":"2026-10-07T23:38:30Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://reactflow.dev/","locator":"Node-based UI and built-in interactions","retrievedAt":"2026-10-07T23:38:20Z","id":"home","title":"React Flow overview","kind":"vendor"},{"url":"https://reactflow.dev/learn/layouting/layouting","locator":"External layout engines and their constraints","retrievedAt":"2026-10-07T23:38:43Z","id":"layout","title":"React Flow layouting","kind":"vendor"},{"url":"https://reactflow.dev/learn/advanced-use/ssr-ssg-configuration","locator":"Explicit node and handle geometry","retrievedAt":"2026-10-07T23:38:37Z","id":"ssr","title":"Server-side rendering","kind":"vendor"},{"url":"https://reactflow.dev/learn/advanced-use/computing-flows","locator":"Node data, connection hooks and input-state caveat","retrievedAt":"2026-10-07T23:38:52Z","id":"compute","title":"Computing flows","kind":"vendor"},{"url":"https://reactflow.dev/examples/interaction/save-and-restore","locator":"toObject or local node/edge state","retrievedAt":"2026-10-07T23:38:52Z","id":"save","title":"Save and restore","kind":"vendor"},{"url":"https://reactflow.dev/learn/troubleshooting/migrate-to-v12","locator":"Package rename and style imports","retrievedAt":"2026-10-07T23:38:52Z","id":"migration","title":"Migration to React Flow 12","kind":"vendor"},{"url":"https://github.com/xyflow/xyflow/blob/main/LICENSE","locator":"MIT grant and notice conditions","retrievedAt":"2026-10-07T23:38:43Z","id":"license","title":"xyflow MIT license","kind":"vendor"},{"url":"https://reactflow.dev/pro","locator":"Optional examples and support subscription; core remains MIT","retrievedAt":"2026-10-07T23:38:37Z","id":"pro","title":"React Flow Pro","kind":"vendor"},{"url":"https://retejs.org/","locator":"Processing-oriented editors and engine modules","retrievedAt":"2026-10-07T23:38:30Z","id":"rete","title":"Rete.js overview","kind":"vendor"}],"overviewCitations":["home","compute"],"licenseCitations":["license","pro"],"sections":[{"id":"ui","heading":"Building a node interface","paragraphs":[{"id":"ui-detail","content":[{"text":"Custom nodes are React components, which lets a graph include inputs, controls and domain-specific visuals. Background, minimap, toolbar and resize components help assemble the editor around them. React Flow supplies interaction primitives rather than prescribing a particular business workflow. A generated graph still needs an application-defined model for the meaning of each node and connection."}],"citations":["home","compute"]}]},{"id":"computation","heading":"Computation and state","paragraphs":[{"id":"computation-detail","content":[{"text":"The computing-flows guide shows how to update a node's data and observe connected nodes through hooks. This supports browser-side dataflow, while other applications can send data to a server for processing. The documentation warns against using node data directly as input-field UI state because delayed updates can disturb the cursor. Local input state and graph data therefore serve distinct roles. The save-and-restore example uses toObject or local node/edge state; an application's storage integration remains separate."}],"citations":["compute","save"]}]},{"id":"layout","heading":"Automatic positioning is an integration","paragraphs":[{"id":"layout-detail","content":[{"text":"React Flow's layout guide states that it does not implement its own layout solution. It presents external options including Dagre, D3-based layouts and ELK, with different capabilities and complexity. The guide notes a Dagre limitation for sub-flows connected outside their group and distinguishes node layout from edge routing. Choosing a node-editor library does not by itself settle automatic graph placement or routing requirements."}],"citations":["layout"]}]},{"id":"ssr","heading":"Server-rendered diagrams","paragraphs":[{"id":"ssr-detail","content":[{"text":"Server-side rendering has been supported since React Flow 12, but requires geometry that the server cannot measure from the DOM. Node width and height, or initial dimensions for later client measurement, must be supplied. Rendering edges also requires handle positions. This can support static documentation diagrams and generated images; it is not evidence that an unconfigured client graph will render correctly on the server."}],"citations":["ssr"]}]},{"id":"version","heading":"Version and packaging","paragraphs":[{"id":"version-detail","content":[{"text":"The v12 migration changes the package name from reactflow to @xyflow/react, uses a named ReactFlow import and changes stylesheet paths. Earlier multi-package examples need reconciliation with the consolidated package. These are practical checks for AI-generated code, where mixing old imports with current APIs can leave an otherwise plausible component incorrectly configured."}],"citations":["migration"]}]},{"id":"terms","heading":"Open-source and Pro scope","paragraphs":[{"id":"terms-detail","content":[{"text":"The core is MIT-licensed, with notice retention required for redistribution. Pro is an optional subscription offering examples, templates and support while the underlying library remains open source. Access to paid examples should not be assumed merely from installing the MIT package. This article makes no claim about having accessed or tested Pro materials."}],"citations":["license","pro"]}]},{"id":"comparison","heading":"Substitution considerations","paragraphs":[{"id":"comparison-detail","content":[{"text":"React Flow can substitute for the visual editor portion of "},{"text":"Rete.js","targetSlug":"rete-js"},{"text":" in a React application when its component model and application-defined computation are suitable. Rete emphasizes processing-oriented editors and offers dedicated engine modules. Moving between them means redesigning node components, data and processing integration; the shared diagram metaphor does not establish saved-graph compatibility. This assessment is based on documentation rather than a migration test."}],"citations":["home","compute","rete"]}]}]},"id":"Q557","revision":604,"updatedAt":"2026-10-12T22:37:42Z","sourceUrl":"https://substitutefor.net/entities/Q557?revision=604"}}