# Explore Code visualiser (generator 2.1.0)

`index.html` draws the GlobalGrid2050 code estate (5857 files, 69 repositories, 9515 resolved
imports) on one canvas, from `graph.json`, which `tools/explore/visualise.py` computes from `../build_graph.json`
(cut 2026-12-06T03:07:51+00:00). Every coordinate is computed in Python, deterministically; the browser only draws.

Views (keys 1, 2, 3, 4). On phones the page opens on the Estate map, with the legend and the filters folded.

- **Pipeline**: columns Ingest | Transform | Engineering output | Unknown (the build's stage rule), repositories
  stacked inside each column, files as dots. Edges of the hovered or selected file are drawn; "all edges"
  draws them bundled repository to repository.
- **Estate map**: repositories as circles sized by lines, top-level folders inside, files as dots.
- **Flow**: a matrix of import counts between categories of the current colour mode, plus stage to stage.
- **Wafer** (when the lab's permanent repo numbers are given): one die per repository on a hex spiral by its
  permanent number; inside the die each file sits where its own key `repo/path` puts it (first 32 bits of
  sha256, r = sqrt(u), golden-angle theta). The browser computes these positions; nothing per file is stored,
  so an unchanged file never moves when the estate changes.

Colour modes (key c): **role** (default; the palette in build_graph.json `roles`, from the website and Pipeline
News scheme), topic, stage, and **pattern**: files sharing a pattern key get the same stable colour, unique files
are grey, so repeated logic shows as repeated colour across repositories. Legend entries filter.

Optional overlays, each a small file loaded only when its control is first used: community, clarity group,
periodic element and laws colour modes; near-copy (drift) edges and a "safe review" filter (unreached files
that have a reachable near copy: candidates for review, never a deletion list). In this build: ov-community.json (31035 bytes), ov-drift.json (17935 bytes), ov-wafer.json (1794 bytes), ov-clarity.json (11939 bytes), ov-periodic.json (77744 bytes).

Reachability (key r): entry points are drawn as bright rings and files not reached from any entry point are
hollow and counted as "candidates for review". This is a static reading, never a deletion list.

Search/command bar (key /): a file name, path, repository or defined name; or `repo:NAME`, `topic:ID`,
`role:ID`, `pipeline`, `map`, `flow`, `colour pattern`. Enter, a repository or a topic zooms to the matches.
The URL hash keeps the view, selection, colour mode and filters, so links can be shared, and each selection or
view change is a history step, so Back walks your trail. Click a file to list what it uses and what uses it,
and open its section page. The plain list of topics and repositories stays in the page under the drawing for
screen readers and for no-script browsers.
