Skip to content

nrepo graph

Terminal window
nrepo graph <id> [options]

nrepo graph traverses the relation graph starting from a given idea and displays the connected ideas up to a configurable depth. This is useful for understanding how ideas relate to one another and for discovering indirect connections.

FlagTypeDefaultDescription
--depth <n>number1How many hops to traverse. Maximum: 5.
--type <types>string(all)Comma-separated list of edge types to follow: related, blocks, inspires, supersedes, parent, duplicate.
--jsonboolean(see auth)Output as JSON.
--humanboolean(see auth)Output as human-readable text.
Terminal window
nrepo graph 42

Output:

#42 Add dark mode to dashboard [exploring]
├─ related → #18 Theme system redesign [captured]
├─ inspires → #7 CSS variable cleanup [shipped]
└─ parent ← #55 Dark mode v2 [building]
Terminal window
nrepo graph 42 --depth 3
Terminal window
nrepo graph 42 --type blocks,parent
Terminal window
nrepo graph 42 --depth 2 --json

Returns a JSON object with nodes and edges arrays suitable for visualization tools.

{
"nodes": [
{ "id": 42, "title": "Add dark mode to dashboard", "status": "exploring" },
{ "id": 18, "title": "Theme system redesign", "status": "captured" }
],
"edges": [
{ "source": 42, "target": 18, "type": "related" }
]
}