NodeGraph
A general-purpose node graph system in Swift, for many domains: robotics scenarios, video editing, and your own.
Tutorials
From an empty graph to your own node pack: build, run, save and show a graph, then the robotics and video packs, headless runs, the assistant, and command-line workflows for macOS and Linux.
NodeGraphCore reference
The API of the core: graphs, commands and undo, execution, serialization, subgraphs.
Source on GitHub
Apache-2.0. Swift 6.3 or later; macOS 26 and iOS 26 for the editor, Linux for the core and runner.
What is in it
- Core: graph model, commands with undo and redo, a validated execution engine, subgraphs and a JSON file format. No UI imports; it also builds on Linux.
- Nodes and packs: built-in math, logic, string, flow and data nodes, plus robotics and video packs. Write your own pack against the core alone.
- Editor: a SwiftUI canvas editor for macOS and iPadOS, with an inspector, a console and a minimap.
- Headless runner:
ng-runruns a saved graph from a shell, on macOS or Linux. - Graph assistant: deterministic analysis plus a model that proposes changes you review before anything is applied.