software · Q178
Rete.js
TypeScript-first node-editor framework with modular rendering and dataflow/control-flow processing.
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.[1][3][5]
Editor composition
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.[2]
Processing semantics
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.[3]
Headless execution and cached results
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.[4]
Saving a graph
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.[5]
Validation hooks
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.[6]
Core and advanced-plugin licenses
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.[7][8]
Substitution considerations
Rete.js can substitute for React Flow 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.[1][3][9]
Capabilities & limitations
Modular visual editor
supportedCore editor, area, renderer and connection plugins compose the UI.[2]
Building processing-oriented visual node editors and graph applications · Web, TypeScript, JavaScript, React, Vue, Angular, Svelte, Node.js · Version, build and integration requirements apply
1 source · check evidence
Editor, area, rendering and connection plugins; asynchronous node creation
vendor · checked 2026-10-07Graph execution
supportedEngine modules support dataflow, control flow and hybrid approaches using application-defined node methods.[3][4]
Building processing-oriented visual node editors and graph applications · Web, TypeScript, JavaScript, React, Vue, Angular, Svelte, Node.js · Version, build and integration requirements apply
2 sources · check evidence
Dataflow, control flow and hybrid processing
vendor · checked 2026-10-07Headless processing, cache reset and asynchronous data methods
vendor · checked 2026-10-07Graph import/export
limitedNo general built-in serializer; application must reconstruct nodes and their data appropriately.[5]
Building processing-oriented visual node editors and graph applications · Web, TypeScript, JavaScript, React, Vue, Angular, Svelte, Node.js · Version, build and integration requirements apply
1 source · check evidence
No default serialization; reconstructing class instances
vendor · checked 2026-10-07Unrestricted commercial use of all plugins
unsupportedCore is MIT, but the licensing page lists rete-structures and rete-scopes-plugin as noncommercial CC BY-NC-SA 4.0.[7][8]
Building processing-oriented visual node editors and graph applications · Web, TypeScript, JavaScript, React, Vue, Angular, Svelte, Node.js · Version, build and integration requirements apply
2 sources · check evidence
Noncommercial advanced-plugin exceptions
vendor · checked 2026-10-07MIT grant and notice terms
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
React Flow for Building processing-oriented visual node editors and graph applications
limitedCan replace a node-editor interface where dedicated graph-processing modules and selectable renderers fit the application; requires different components, data and serialization.[1][3][9]
Web, TypeScript, JavaScript, React, Vue, Angular, Svelte, Node.js · Version, build and integration requirements apply
References
- Rete.js overview
TypeScript-first processing-oriented framework
vendor · retrieved 2026-10-07 - Basic editor guide
Editor, area, rendering and connection plugins; asynchronous node creation
vendor · retrieved 2026-10-07 - Engine concepts
Dataflow, control flow and hybrid processing
vendor · retrieved 2026-10-07 - Dataflow guide
Headless processing, cache reset and asynchronous data methods
vendor · retrieved 2026-10-07 - Import/export guide
No default serialization; reconstructing class instances
vendor · retrieved 2026-10-07 - Graph validation guide
Pipes for node and connection operations
vendor · retrieved 2026-10-07 - Rete core MIT license
MIT grant and notice terms
vendor · retrieved 2026-10-07 - Rete licensing
Noncommercial advanced-plugin exceptions
vendor · retrieved 2026-10-07 - React Flow overview
React component for interactive diagrams
vendor · retrieved 2026-10-07
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 162 | 2026-10-10 12:16:23 | /* wbeditentity-create-item:0| */ sf:0686eca6-5611-4036-866a-269d9cc19195:v1 | Add Rete.js with processing/cache behavior, application-owned serialization and noncommercial advanced-plugin caveat. | attribution: /proposals/0686eca6-5611-4036-866a-269d9cc19195 |