# Rete\.js

TypeScript\-first node\-editor framework with modular rendering and dataflow/control\-flow processing\.

ID: Q178 · Revision: 162

Type: software · License: MIT core; selected advanced plugins use CC BY\-NC\-SA 4\.0[^license][^terms] · Status: active

Website: https://retejs.org/



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\.[^home][^engine][^serialization]

## 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\.[^basic]

## 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\.[^engine]

## 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\.[^dataflow]

## 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\.[^serialization]

## 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\.[^validation]

## 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\.[^license][^terms]

## Substitution considerations

Rete\.js can substitute for [React Flow](/reactflow) 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\.[^home][^engine][^flow]

## Capabilities and substitutions

### Modular visual editor — supported

Core editor, area, renderer and connection plugins compose the UI\.[^basic]

Use case: 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

### Graph execution — supported

Engine modules support dataflow, control flow and hybrid approaches using application\-defined node methods\.[^engine][^dataflow]

Use case: 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

### Graph import/export — limited

No general built\-in serializer; application must reconstruct nodes and their data appropriately\.[^serialization]

Use case: 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

### Unrestricted commercial use of all plugins — unsupported

Core is MIT, but the licensing page lists rete\-structures and rete\-scopes\-plugin as noncommercial CC BY\-NC\-SA 4\.0\.[^license][^terms]

Use case: 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

### [Substitute for React Flow](/reactflow) — limited

Can replace a node\-editor interface where dedicated graph\-processing modules and selectable renderers fit the application; requires different components, data and serialization\.[^home][^engine][^flow]

Use case: 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

## References

[^home]: [Rete\.js overview](<https://retejs.org/>) — TypeScript\-first processing\-oriented framework (vendor; retrieved 2026-10-07T23:38:30Z)

[^basic]: [Basic editor guide](<https://retejs.org/docs/guides/basic/>) — Editor, area, rendering and connection plugins; asynchronous node creation (vendor; retrieved 2026-10-07T23:38:58Z)

[^engine]: [Engine concepts](<https://retejs.org/docs/concepts/engine/>) — Dataflow, control flow and hybrid processing (vendor; retrieved 2026-10-07T23:38:47Z)

[^dataflow]: [Dataflow guide](<https://retejs.org/docs/guides/processing/dataflow/>) — Headless processing, cache reset and asynchronous data methods (vendor; retrieved 2026-10-07T23:39:49Z)

[^serialization]: [Import/export guide](<https://retejs.org/docs/guides/import-export/>) — No default serialization; reconstructing class instances (vendor; retrieved 2026-10-07T23:39:05Z)

[^validation]: [Graph validation guide](<https://retejs.org/docs/guides/validation/>) — Pipes for node and connection operations (vendor; retrieved 2026-10-07T23:39:05Z)

[^license]: [Rete core MIT license](<https://github.com/retejs/rete/blob/main/LICENSE>) — MIT grant and notice terms (vendor; retrieved 2026-10-07T23:38:43Z)

[^terms]: [Rete licensing](<https://retejs.org/docs/licensing/>) — Noncommercial advanced\-plugin exceptions (vendor; retrieved 2026-10-07T23:38:52Z)

[^flow]: [React Flow overview](<https://reactflow.dev/>) — React component for interactive diagrams (vendor; retrieved 2026-10-07T23:38:20Z)

Source revision: https://substitutefor.net/entities/Q178?revision=162
