Repository navigation
Description
design(id-apps): D5 — link display system: interactive graph view
Programme order: 5. Parent epic: #13880 — ID apps on one graph.
Depends on: D3 (nodes and verb edges are D3 objects), D1 (display
forms of URIs). Related: #9126 (graph query language + visualization
research — an input, not this design), #10235 (bounded graph viewer
over query pages — a neighbouring, server-paged viewer; this design is
the interactive display system), #5678 (knowledge layer — the notes
surface of the first use case), #13623 (presenter kitty graphics
stills — prior art for the terminal renderer).
Problem + evidence
Drew (2026-11-23): "I want to be able to view all the connections
between notes in a fancy graph view, similar to how Obsidian notes
look… especially when we have a full Zettelkasten system set up, so
that we can make replies and things like that." A graph data model
(D3) without a graph view hides its main advantage: the connections
are the content. Three surfaces need the same view — the web, WASM on
the web, and terminals (especially Kitty-protocol terminals, with
mouse hover and click) — and three independently invented views would
diverge in layout, filtering, and interaction within a month.
Design thesis
One shared view model, three renderers. The view model defines:
nodes = ID objects, edges = typed verbs (D3); layout inputs and
determinism expectations; filtering by verb, by subgraph (D1
collection URIs as the filter language), and by author/time;
focus+context behaviour (select a node, its neighbourhood expands,
the rest dims); and the interaction contract — hover = identify +
preview, click = navigate to the object, click-edge = inspect the
link object itself (it is an object; it has a page). Each renderer
implements the same contract against the same view model.
Renderers
- Web / WASM: canvas-based interactive graph in the Obsidian
style — pan, zoom, hover highlight, click-through. WASM so the
same view-model code ships in the browser and can be reused by
desktop hosts. - Terminal (Kitty): Kitty graphics protocol rendering of the
same layout, with mouse hover and click (terminal mouse reporting
mapped to the same hover/click contract). Graceful degradation:
terminals without graphics or mouse fall back to renderer 3
automatically, never to a broken screen. - List/tree fallback: a plain structured list/tree of the same
neighbourhood — accessible, scriptable, and the conformance floor
every view must be able to produce.
First use cases (the design is validated against these)
- The Zettelkasten notes graph: notes as nodes; reply, reference,
and supersede verbs as edges; "show me everything connected to this
note, replies first" as the canonical query. (Consumes id: design: Knowledge layer feature program — competitor feature matrix, import/export, read-authority #5678's
knowledge layer and id: note reference edges in the native graph + backlink query (#7587) #13233's note edges.) - ID programme visualisation: issues/designs/objects of the ID
programme itself as a graph — the dogfood view.
Alternatives to weigh
- Per-surface native views (web JS, terminal TUI written twice):
better platform feel each; guarantees divergence of the contract. - Server-rendered images for terminal (the Bounded graph viewer over query pages #10235 shape):
simpler terminal story; no real hover/click interactivity, and
stale the moment the graph moves. - Adopt an existing web graph library and port its model: faster
web start; its data model (untyped edges, no link objects) fights
D3's — the view model must be ours even if rendering code is
borrowed.
Slices (dependency-ordered)
- View model + interaction contract: node/edge/filter/focus
semantics, stated once. Acceptance: both use-case graphs expressed
in the model; the contract is renderer-agnostic (no pixel or
escape-sequence language). - Web/WASM renderer design: layout engine choice, scale bounds
(what happens at 10k nodes), click-through via D1 display forms.
Acceptance: interaction contract mapped feature-by-feature. - Kitty renderer design: graphics placement, mouse mapping,
redraw discipline, degradation detection. Acceptance: the contract
mapped onto Kitty capabilities with the fallback triggers named;
id: build: presenter-side kitty graphics stills pipeline (from #5971 research) #13623's stills work cited as prior art. - Fallback + conformance: the list/tree floor and a conformance
checklist all renderers must pass. Acceptance: checklist written
so an implementer can test against it.
Open questions (deciders named)
- Layout ownership (does the view model compute layout, or only the
web renderer?): designer decides, recorded here — it decides
whether terminal and web can ever show the same picture. - Scale target for v1 (neighbourhood-only vs whole-graph): designer
proposes from the use cases; Drew decides if whole-graph is
demanded, since it changes the sync story underneath (D3/D4).
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T00:12:18Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activity
developing-today commentedon Nov 24, 2026
CODE-5104