Rete.js: a graph kernel that leaves rendering and dataflow to plugins
JavaScript framework for visual programming
At a glance
- What is it?
- Rete.js is a TypeScript framework for visual programming. The package here is the core: it declares a single runtime dependency, and the README offers visualisation, dataflow and control flow solutions separately.
- Who is it for?
- Adopt Rete.js if you are building a node editor where you need to choose your own rendering layer and your own execution semantics, and you can live without bundled examples for your problem domain. Skip it if you want a batteries-included editor, because this package is the kernel rather than the batteries: the visualisation, the dataflow and the control flow solutions all arrive as separate pieces you select at setup time.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 1 day ago.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- retejs/rete12,319 ★ · +49
| Repository | 2026-09-22 | 2026-11-22 |
|---|---|---|
| retejs/rete | 12.3k | 12.3k |
49 Stars in the last 61 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
package.json declares one runtime dependency, and that is the whole story
The dependency list in this package contains a single entry, @babel/runtime at ^7.21.0. Everything else is a devDependency: rete-cli at ^2.1.0 and jest-environment-jsdom at ^29.1.2. A graph editor's core normally arrives with a renderer, a drag library and a state store attached, and this one does not.
The keywords field is more informative than the description, which is the flat phrase JavaScript framework. The keywords are dataflow, visual programming, node editor, rete and Rete.js, which tells you the intended territory is node editors with execution semantics rather than a general drawing library.
The build, test, lint and doc scripts all delegate to rete-cli with the same command name, so tooling is uniform across the project: rete build -c rete.config.ts, rete test, rete lint, rete doc and rete perf. That last one matters more than it looks. A framework whose performance characteristics are the reason you chose it, and which ships a perf script in its own build tooling, is signalling that node count and graph size are expected to be the thing you measure.
The repository layout matches a library rather than an application: src/ and test/ at the root, a rete.config.ts build configuration, tsconfig.json for TypeScript, eslint.config.mjs for linting, plus the usual CHANGELOG.md, CONTRIBUTING.md and CODE_OF_CONDUCT.md. A postinstall.js exists, which is worth knowing about before you audit what an install does to your tree.
rete-kit is where the real choices happen, and it is not optional in practice
The setup path offered is a scaffolding command rather than an install instruction:
npx rete-kit appRete Kit lets you select a stack, naming React.js, Vue.js or Angular, and Svelte, along with a set of features. That second choice is the important one, because the framework states that it provides out-of-the-box solutions for visualisation using various libraries and frameworks, and separately solutions for processing graphs on dataflow and control flow approaches. Both of those are options you pick, not defaults you inherit.
So the real architecture of a Rete.js application is decided before you write any code: which UI framework renders the canvas, which visualisation library backs it, and whether your graph executes on a dataflow model, a control flow model, or both. The alternative to the scaffolding command is a complete getting-started guide, which is the path to take if the generated project does not fit what you need.
Worth being clear about what this package is not. It is not a component library, not a ready-made editor, and not a set of node types for your domain. The three things people usually want from a visual programming tool, a canvas you can drag nodes on, a way to evaluate those nodes, and a catalogue of prebuilt nodes, all live outside this repository.
The README is 212 words and mostly not about the software
An honest read of this project's front page: the substantive technical content is the description, the two getting-started paths and the documentation links. Everything else is a stand-with-Ukraine statement occupying the position where a feature list would normally be, followed by a sponsorship section, a backers section and a contributors section.
That is worth noting because it means the documentation site, not the README, is where any question about behaviour gets answered. The links point to an introduction, a guides section, and an examples section. The introduction is a video rather than prose.
Two implications follow for anyone evaluating this. First, there is nothing here to compare against competitors with, no architecture document and no stated design principles, so an assessment has to come from reading the guides and looking at the examples. Second, the release history is thin in a way that the README does not contextualise: v2.0.6 was tagged on 2025-06-30, v2.0.5 on 2024-08-30 and v2.0.4 also on 2024-08-30, two of them within about ninety minutes of each other. The repository is not archived and the last push was on 2026-10-25, so work continues; the tags simply do not move often. Anyone building on this should treat the changelog as the authority on which version a given plugin moved in.
dataflow and control flow are separate problems, and conflating them is the design mistake
The framework's stated scope covers both dataflow and control flow approaches to graph processing.
A dataflow graph evaluates when its inputs change: a node recomputes because something upstream produced a value, and a node with several inputs fires according to its own combination rule, all or any. A control flow graph executes along a path, taking branches on conditions, and a node runs because execution reached it. These produce visibly different editors. In a dataflow editor a cycle is almost always a bug, because a value feeding back into its own computation has no fixed point. In a control flow editor a cycle is a loop, which is often exactly what the author wanted.
This matters because the editor you draw and the execution semantics you implement have to agree. A node editor that lets a user draw a cycle without complaint, on a dataflow engine, produces a graph that hangs or silently drops updates depending on how the combination rules are written. Nothing in this package prevents that; the prevention is in choosing the evaluation approach first and constraining what the editor will accept.
For anyone comparing visual programming tools, this is the axis to ask about first, and it is the one a feature list never mentions. What a tool calls a workflow and what it calls a pipeline are often the same thing with different UI, and the two behave differently under error, under partial input and under cancellation.
Where this stops being enough, and what to check before committing
Three boundaries are concrete.
The first is scope. With one runtime dependency, the kernel gives you a node model and a way to wire it, and you supply the canvas, the interaction handling, the persistence format and the node catalogue. That is a good trade when you need control over those, and a bad one when you wanted an editor you could ship this month. The cost is not just the work; it is that you own every decision about how state is serialised and how a graph is versioned, and those decisions get expensive to change once users have saved graphs.
The second is release cadence. The newest release, v2.0.6, is from 2025-06-30, against a last push on 2026-10-25, which means commits and releases are decoupled. That is not unusual for a library with plugin ecosystem, but it does mean you cannot assume a released version contains the code in the repository, and you should check the changelog for each plugin separately rather than assuming the core version governs it.
The third is the ecosystem coupling. Rete Kit names four UI frameworks, and each pairing is a plugin that has to track the framework's own release cycle. Choosing Svelte when the plugin lags Svelte's changes is a real possibility that nothing in this package would warn you about.
Before committing, run the scaffolding command, build the generated project unmodified, and open the examples section. If your problem resembles one of the examples closely, the framework is likely a good fit. If it does not, you are writing the interesting part yourself.
Rete.js next to a React Flow based editor or a general drawing library
The comparison people search for is React Flow, and the difference is that React Flow is a rendering library while this is a processing framework. React Flow gives you nodes, edges and a canvas in a React context, and leaves execution entirely to you. Here the stated scope includes graph processing on dataflow and control flow approaches, which is the part React Flow does not attempt.
So if you need a node editor to display state and you already own the state, React Flow is the smaller dependency. If you need the editor and the evaluation model to be one design, this is the one that ships the second half. The reverse mistake is common: building an execution engine on top of a rendering library because the rendering was the part that was easy to find.
Against a general drawing or diagramming library, the comparison is about intent. A diagramming library models boxes and arrows and knows nothing about when to evaluate. This framework models the same shapes and adds the notion that they compute. Choosing a drawing library for something that executes is choosing to write the execution layer yourself.
LiteGraph.js is the other name that appears alongside this project, and it is the instructive comparison because it also targets visual programming in JavaScript. The difference in approach is architectural: this project isolates execution semantics as something you choose, where a self-contained editor tends to pick one model and expose it. If your requirement is a specific execution model and not flexibility about it, a self-contained editor that already implements that model will get you working sooner.
MIT covers the kernel, and the parts you add are your own problem
The licence is MIT, referenced at the LICENSE file in the repository root, and the package metadata states the same. That grant permits commercial use, modification, distribution and private use, with the two obligations being retention of the copyright notice and the licence text, and no warranty.
The scope of that grant is the thing to be careful about. It covers this package. It says nothing about the visualisation libraries, the UI framework plugins or the dataflow and control flow plugins, each of which carries its own licence, and about the node catalogue for your domain, which is code you wrote. A stack assembled through Rete Kit is a stack with several licences in it, and the MIT on the kernel is the smallest part of the review.
The practical check before shipping is to look at the licences of everything rete-kit pulled in, particularly the visualisation library, since those often carry conditions attached. Do not assume the MIT you see here transfers to the whole application.
On maintenance signals: not archived, last push 2026-10-25, three recent release tags with the newest at v2.0.6 from 2025-06-30, a changelog at the repository root, a code of conduct and a contribution guide. That is enough to show an active project with a slow release line, which is a normal shape for a library whose plugins release more often than its core. Sponsorship is handled through Open Collective, with sponsor and backer links at the top level.
Editorial conclusion
Adopt Rete.js if you are building a node editor where you need to choose your own rendering layer and your own execution semantics, and you can live without bundled examples for your problem domain. Skip it if you want a batteries-included editor, because this package is the kernel rather than the batteries: the visualisation, the dataflow and the control flow solutions all arrive as separate pieces you select at setup time. Before building, run npx rete-kit app and pick your UI framework, since that decision is baked into the generated project and the core here does not choose it for you, and confirm against the changelog which of the plugins you need have moved with the v2 line.
Frequently asked questions
What is node-based programming?
Node-based programming is a way of building behaviour visually: you place nodes representing operations on a canvas, connect their ports with edges to show what feeds what, and the graph is evaluated or executed. Rete.js is a framework for building those editors, and it is what the project's own documentation is about.
How do I start a Rete.js project?
Run npx rete-kit app. Rete Kit scaffolds an application and lets you pick a UI stack, naming React.js, Vue.js or Angular, and Svelte, together with the set of features to include. If the generated project does not suit you, the getting-started guide at retejs.org covers setting it up manually instead.
Does Rete.js include a user interface library?
No. The package declares a single runtime dependency, @babel/runtime, so the canvas, the interaction handling and the node catalogue are not part of it. The framework states that it provides out-of-the-box visualisation solutions using various libraries and frameworks, and those arrive as separate pieces you select through Rete Kit.
What licence is Rete.js released under?
MIT, in the LICENSE file at the repository root. That grant covers this package only. The visualisation libraries, the UI framework plugins and the dataflow or control flow plugins you add carry their own terms, so a stack built through Rete Kit needs each of those reviewed separately.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/retejs-rete)Star history chart for your README
[](https://hysenlabs.com/projects/retejs-rete)Was this useful?