Skip to content

How It Works

BUILD TIME (Astro SSG)
registry-mapping.yaml registry-v2/**/*.md
| |
v v
+-----------------------------------------+
| registry-loader.ts |
| - Parses mapping YAML |
| - Scans .md files per type folder |
| - Parses frontmatter |
| - Resolves cross-references |
| - Builds in-memory graph |
+-----------------------------------------+
|
v
+-----------------------------------------+
| registry.ts (bridge) |
| - Converts graph -> Domain[] + Element[]|
| - Exports LAYER_META, SITE_CONFIG |
| - Build-time singleton (runs once) |
+-----------------------------------------+
|
v
+-----------------------------------------+
| Astro Pages (.astro) |
| - index.astro -> Dashboard |
| - discover.astro -> Search & filter |
| - catalog/[id] -> Element detail |
| - domains/[id] -> Domain overview |
| - domains/[id]/context-map -> Graph |
+-----------------------------------------+
|
v
+-----------------------------------------+
| Static HTML/CSS/JS (dist/) |
| - One .html file per element |
| - React islands for interactive graphs |
| - Zero runtime dependencies |
+-----------------------------------------+
AspectBuild-timeRuntime
YAML parsingYes
File system accessYes
Reference resolutionYes
Graph constructionYes
Page renderingYes
React graph interactionYes (client-side)
Search/filterYes (client-side JS)
NavigationYes (static HTML + links)

The resulting dist/ folder contains only static files. No server, no database, no API calls.

TechnologyVersionPurpose
Astro5.xStatic site generation, file-based routing
React18.xInteractive components (graphs, diagrams)
React Flow12.xGraph visualization with drag and zoom
dagre0.8.xAutomatic graph layout (left-to-right)
js-yaml4.xYAML parsing for frontmatter + mapping
Python 33.9+Validation scripts, dashboard generation