Skip to content

design(id-apps): D5 — link display system: interactive graph view (web/WASM, Kitty terminal, fallback) #13888

Backlog

Description

@dezren39

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

  1. 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.
  2. 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.
  3. 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)

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)

  1. 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).
  2. 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.
  3. 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.
  4. 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

  1. added
    app/id
    on Nov 24, 2026
  2. developing-today commented on Nov 24, 2026

    @developing-today
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/id

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions