@polygonschmied/stellar-nodes
v0.1.4
Published
Stellar DS node-editor — Rete v2 with the Stellar skin (Paper-body nodes, Clay sockets, Theater connections).
Maintainers
Readme
@polygonschmied/stellar-nodes
A Rete v2 node-editor wrapped in the Stellar skin for Stellar DS — Paper-body nodes, Clay sockets, Theater connection wires.
Install
pnpm add @polygonschmied/stellar-nodes @polygonschmied/stellar-tokensPeer dependencies: react >= 18, react-dom >= 18. The Rete v2 packages
(rete, rete-area-plugin, rete-connection-plugin, rete-react-plugin)
ship as direct dependencies — no extra install needed.
Use
import "@polygonschmied/stellar-tokens/styles.css";
import { NodeEditor, createStellarEditor, ClassicPreset } from "@polygonschmied/stellar-nodes";
async function setup(container: HTMLElement) {
const editor = await createStellarEditor(container);
const node = new ClassicPreset.Node("Greeter");
node.addOutput("out", new ClassicPreset.Output(new ClassicPreset.Socket("any")));
await editor.addNode(node);
}
export function Graph() {
return <NodeEditor setup={setup} />;
}The exported StellarNode, StellarSocket, and StellarConnection render
the Stellar look — you only need them if you build a custom Rete preset
instead of using createStellarEditor.
License
MIT — see the repo README for the wider picture.
