Skip to main content
Renders entities, actions, and resources as draggable nodes in a DAG. Supports auto-fetch from a CID or headless mode with custom nodes and edges.

Props

PropTypeDefaultDescription
cidstringResource CID — auto-fetches graph
depthnumber10Graph traversal depth
nodesGraphNode[]Headless mode — provide nodes directly
edgesGraphEdge[]Headless mode — provide edges directly
layout"bfs-horizontal" | "bfs-vertical""bfs-horizontal"Layout algorithm
heightnumber | string600Canvas height
showControlsbooleantrueShow zoom/pan/fit controls
showLegendbooleantrueShow node type legend
draggablebooleantrueAllow dragging nodes
onNodeClick(node: GraphNode) => voidNode click handler
loadingSlotReactNodeCustom loading state
errorSlotReactNodeCustom error state
classNamestringAdditional CSS classes

Node types

TypeColorDescription
"entity"AmberHuman, AI, or organization
"action"GreenRecord of an event (create, transform, verify)
"resource"BlueFile or data artifact with a CID