registry-mapping.yaml registry-v2/**/*.md
+-----------------------------------------+
| - Parses mapping YAML |
| - Scans .md files per type folder |
| - Resolves cross-references |
| - Builds in-memory graph |
+-----------------------------------------+
+-----------------------------------------+
| - Converts graph -> Domain[] + Element[]|
| - Exports LAYER_META, SITE_CONFIG |
| - Build-time singleton (runs once) |
+-----------------------------------------+
+-----------------------------------------+
| - index.astro -> Dashboard |
| - discover.astro -> Search & filter |
| - catalog/[id] -> Element detail |
| - domains/[id] -> Domain overview |
| - domains/[id]/context-map -> Graph |
+-----------------------------------------+
+-----------------------------------------+
| Static HTML/CSS/JS (dist/) |
| - One .html file per element |
| - React islands for interactive graphs |
| - Zero runtime dependencies |
+-----------------------------------------+
| Aspect | Build-time | Runtime |
|---|
| YAML parsing | Yes | — |
| File system access | Yes | — |
| Reference resolution | Yes | — |
| Graph construction | Yes | — |
| Page rendering | Yes | — |
| React graph interaction | — | Yes (client-side) |
| Search/filter | — | Yes (client-side JS) |
| Navigation | — | Yes (static HTML + links) |
The resulting dist/ folder contains only static files. No server, no database, no API calls.
| Technology | Version | Purpose |
|---|
| Astro | 5.x | Static site generation, file-based routing |
| React | 18.x | Interactive components (graphs, diagrams) |
| React Flow | 12.x | Graph visualization with drag and zoom |
| dagre | 0.8.x | Automatic graph layout (left-to-right) |
| js-yaml | 4.x | YAML parsing for frontmatter + mapping |
| Python 3 | 3.9+ | Validation scripts, dashboard generation |