{"schemaVersion":"1.0","record":{"label":"Rete.js","description":"TypeScript-first node-editor framework with modular rendering and dataflow/control-flow processing.","aliases":["Rete","retejs"],"kind":"software","website":"https://retejs.org/","overview":"Rete.js is a TypeScript-first framework for building node-based editors with application-defined processing. Its plugin architecture separates editor data, visual rendering and graph execution. It can support visual-programming interfaces, but an application must still define its nodes, processing rules and persistence format.","license":"MIT core; selected advanced plugins use CC BY-NC-SA 4.0","lifecycle":"active","example":false,"features":[{"name":"Modular visual editor","status":"supported","detail":"Core editor, area, renderer and connection plugins compose the UI.","useCase":"Building processing-oriented visual node editors and graph applications","platforms":["Web","TypeScript","JavaScript","React","Vue","Angular","Svelte","Node.js"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://retejs.org/docs/guides/basic/","locator":"Editor, area, rendering and connection plugins; asynchronous node creation","retrievedAt":"2026-10-07T23:38:58Z","kind":"vendor"}]},{"name":"Graph execution","status":"supported","detail":"Engine modules support dataflow, control flow and hybrid approaches using application-defined node methods.","useCase":"Building processing-oriented visual node editors and graph applications","platforms":["Web","TypeScript","JavaScript","React","Vue","Angular","Svelte","Node.js"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://retejs.org/docs/concepts/engine/","locator":"Dataflow, control flow and hybrid processing","retrievedAt":"2026-10-07T23:38:47Z","kind":"vendor"},{"url":"https://retejs.org/docs/guides/processing/dataflow/","locator":"Headless processing, cache reset and asynchronous data methods","retrievedAt":"2026-10-07T23:39:49Z","kind":"vendor"}]},{"name":"Graph import/export","status":"limited","detail":"No general built-in serializer; application must reconstruct nodes and their data appropriately.","useCase":"Building processing-oriented visual node editors and graph applications","platforms":["Web","TypeScript","JavaScript","React","Vue","Angular","Svelte","Node.js"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://retejs.org/docs/guides/import-export/","locator":"No default serialization; reconstructing class instances","retrievedAt":"2026-10-07T23:39:05Z","kind":"vendor"}]},{"name":"Unrestricted commercial use of all plugins","status":"unsupported","detail":"Core is MIT, but the licensing page lists rete-structures and rete-scopes-plugin as noncommercial CC BY-NC-SA 4.0.","useCase":"Building processing-oriented visual node editors and graph applications","platforms":["Web","TypeScript","JavaScript","React","Vue","Angular","Svelte","Node.js"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://retejs.org/docs/licensing/","locator":"Noncommercial advanced-plugin exceptions","retrievedAt":"2026-10-07T23:38:52Z","kind":"vendor"},{"url":"https://github.com/retejs/rete/blob/main/LICENSE","locator":"MIT grant and notice terms","retrievedAt":"2026-10-07T23:38:43Z","kind":"vendor"}]}],"alternatives":[],"slug":"rete-js","draftAlternatives":[{"targetSlug":"react-flow","status":"limited","detail":"Can replace a node-editor interface where dedicated graph-processing modules and selectable renderers fit the application; requires different components, data and serialization.","useCase":"Building processing-oriented visual node editors and graph applications","platforms":["Web","TypeScript","JavaScript","React","Vue","Angular","Svelte","Node.js"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://retejs.org/","locator":"TypeScript-first processing-oriented framework","retrievedAt":"2026-10-07T23:38:30Z","kind":"vendor"},{"url":"https://retejs.org/docs/concepts/engine/","locator":"Dataflow, control flow and hybrid processing","retrievedAt":"2026-10-07T23:38:47Z","kind":"vendor"},{"url":"https://reactflow.dev/","locator":"React component for interactive diagrams","retrievedAt":"2026-10-07T23:38:20Z","kind":"vendor"}]}],"evidence":[{"url":"https://retejs.org/","locator":"TypeScript-first processing-oriented framework","retrievedAt":"2026-10-07T23:38:30Z","kind":"vendor"},{"url":"https://retejs.org/docs/guides/basic/","locator":"Editor, area, rendering and connection plugins; asynchronous node creation","retrievedAt":"2026-10-07T23:38:58Z","kind":"vendor"},{"url":"https://retejs.org/docs/concepts/engine/","locator":"Dataflow, control flow and hybrid processing","retrievedAt":"2026-10-07T23:38:47Z","kind":"vendor"},{"url":"https://retejs.org/docs/guides/processing/dataflow/","locator":"Headless processing, cache reset and asynchronous data methods","retrievedAt":"2026-10-07T23:39:49Z","kind":"vendor"},{"url":"https://retejs.org/docs/guides/import-export/","locator":"No default serialization; reconstructing class instances","retrievedAt":"2026-10-07T23:39:05Z","kind":"vendor"},{"url":"https://retejs.org/docs/guides/validation/","locator":"Pipes for node and connection operations","retrievedAt":"2026-10-07T23:39:05Z","kind":"vendor"},{"url":"https://github.com/retejs/rete/blob/main/LICENSE","locator":"MIT grant and notice terms","retrievedAt":"2026-10-07T23:38:43Z","kind":"vendor"},{"url":"https://retejs.org/docs/licensing/","locator":"Noncommercial advanced-plugin exceptions","retrievedAt":"2026-10-07T23:38:52Z","kind":"vendor"},{"url":"https://reactflow.dev/","locator":"React component for interactive diagrams","retrievedAt":"2026-10-07T23:38:20Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://retejs.org/","locator":"TypeScript-first processing-oriented framework","retrievedAt":"2026-10-07T23:38:30Z","id":"home","title":"Rete.js overview","kind":"vendor"},{"url":"https://retejs.org/docs/guides/basic/","locator":"Editor, area, rendering and connection plugins; asynchronous node creation","retrievedAt":"2026-10-07T23:38:58Z","id":"basic","title":"Basic editor guide","kind":"vendor"},{"url":"https://retejs.org/docs/concepts/engine/","locator":"Dataflow, control flow and hybrid processing","retrievedAt":"2026-10-07T23:38:47Z","id":"engine","title":"Engine concepts","kind":"vendor"},{"url":"https://retejs.org/docs/guides/processing/dataflow/","locator":"Headless processing, cache reset and asynchronous data methods","retrievedAt":"2026-10-07T23:39:49Z","id":"dataflow","title":"Dataflow guide","kind":"vendor"},{"url":"https://retejs.org/docs/guides/import-export/","locator":"No default serialization; reconstructing class instances","retrievedAt":"2026-10-07T23:39:05Z","id":"serialization","title":"Import/export guide","kind":"vendor"},{"url":"https://retejs.org/docs/guides/validation/","locator":"Pipes for node and connection operations","retrievedAt":"2026-10-07T23:39:05Z","id":"validation","title":"Graph validation guide","kind":"vendor"},{"url":"https://github.com/retejs/rete/blob/main/LICENSE","locator":"MIT grant and notice terms","retrievedAt":"2026-10-07T23:38:43Z","id":"license","title":"Rete core MIT license","kind":"vendor"},{"url":"https://retejs.org/docs/licensing/","locator":"Noncommercial advanced-plugin exceptions","retrievedAt":"2026-10-07T23:38:52Z","id":"terms","title":"Rete licensing","kind":"vendor"},{"url":"https://reactflow.dev/","locator":"React component for interactive diagrams","retrievedAt":"2026-10-07T23:38:20Z","id":"flow","title":"React Flow overview","kind":"vendor"}],"overviewCitations":["home","engine","serialization"],"licenseCitations":["license","terms"],"sections":[{"id":"composition","heading":"Editor composition","paragraphs":[{"id":"composition-detail","content":[{"text":"The basic guide creates a NodeEditor, attaches an area plugin and adds a renderer plus an interactive connection plugin. Its React example uses a classic visual preset, while other renderers serve different frameworks. Node insertion is asynchronous. This modular arrangement makes an editor adaptable, but also means the core package alone is not a finished visual application. Generated setup code must include the appropriate plugins and await operations where required."}],"citations":["basic"]}]},{"id":"execution","heading":"Processing semantics","paragraphs":[{"id":"execution-detail","content":[{"text":"The engine package supports two distinct approaches. In dataflow, a target requests predecessor outputs and a node's data method computes its result. In control flow, an execute method chooses how to forward control through outgoing connections. Applications can combine the approaches using different ports. The presence of visible connections does not define business logic automatically: node implementations determine what the graph actually does."}],"citations":["engine"]}]},{"id":"cache","heading":"Headless execution and cached results","paragraphs":[{"id":"cache-detail","content":[{"text":"The dataflow guide demonstrates processing-only nodes without a user interface, including server-side use. Outputs are cached to avoid repeating computation. Changing an input value requires resetting the relevant cache before fetching a new result; otherwise visual edits and computed values can diverge. Data methods may be asynchronous, and downstream processing waits for the required inputs. These behaviors need to be reflected in the application's update flow."}],"citations":["dataflow"]}]},{"id":"persistence","heading":"Saving a graph","paragraphs":[{"id":"persistence-detail","content":[{"text":"The current editor does not provide general import/export by default. Nodes and connections may be plain objects, class instances, functions or cyclic structures, so ordinary JSON conversion cannot preserve every supported model. The guide outlines application-specific serialization and reconstruction of node instances, ports and controls. Its sample is an approximation rather than a complete persistence implementation. A saved representation therefore needs a compatible reader and node definitions; it is not a universal interchange format."}],"citations":["serialization"]}]},{"id":"validation","heading":"Validation hooks","paragraphs":[{"id":"validation-detail","content":[{"text":"Pipes can intercept node creation/removal and connection creation/removal. Returning no context can prevent an operation from continuing, allowing checks such as whether a required start node exists or whether sockets are compatible. Those rules are application-defined. TypeScript declarations and a successfully drawn connection should not be mistaken for proof that a graph satisfies the application's semantic constraints."}],"citations":["validation"]}]},{"id":"license","heading":"Core and advanced-plugin licenses","paragraphs":[{"id":"license-detail","content":[{"text":"The core repository uses MIT terms with notice retention. However, the project's licensing page names rete-structures and rete-scopes-plugin as advanced packages under CC BY-NC-SA 4.0 and says commercial use is not currently permitted through a dual-license option. An MIT label on the core must not be extended to every optional package. Commercial adopters need to inspect the actual plugin set and avoid treating those noncommercial extensions as ordinary permissive dependencies."}],"citations":["license","terms"]}]},{"id":"comparison","heading":"Substitution considerations","paragraphs":[{"id":"comparison-detail","content":[{"text":"Rete.js can substitute for "},{"text":"React Flow","targetSlug":"react-flow"},{"text":" when a project needs a configurable node editor alongside explicit dataflow or control-flow modules. React Flow offers a React-centered visual component model. Moving between them requires reworking graph data, node rendering and execution integration; their shared visual metaphor does not establish file or API compatibility. No implementation or migration test was performed for this article."}],"citations":["home","engine","flow"]}]}]},"id":"Q178","revision":162,"updatedAt":"2026-10-10T12:16:23Z","sourceUrl":"https://substitutefor.net/entities/Q178?revision=162"}}