Skip to content
PACKAGES

Node

Reactive substrate node that owns dependencies, wave handling, lifecycle, and subscribers.

import { Node } from "@graphrefly/ts/core";
class Node
import { node } from "@graphrefly/ts/core";
const source = node<number>([], null);
source.subscribe((value) => console.log(value));
source.down([["DATA", 1]]);
  • Substrate primitive: Node is graph-agnostic; use graph().node, graph().state, or graph().derived when you want inspection and lifecycle ownership.

packages/ts/src/node/node.ts