🚧 Early alpha — building the foundation. See the roadmap →
Diagram strategy decision needed
Context
Section titled “Context”Mermaid diagrams now render (switched from broken client-side plugin to build-time rehype-mermaid). But the output is generic SVG boxes and arrows — not the quality we want for a knowledge base showcasing ontology lifecycle management.
The problem
Section titled “The problem”13 Mermaid diagrams on the ontology evolution page alone. More across other concept pages. All functional but visually underwhelming. The user wants “awesome looking interactive diagrams and HTML.”
Options to evaluate
Section titled “Options to evaluate”- Inline HTML/CSS/JS per diagram — like the hero visual on the homepage. Custom, beautiful, but labor-intensive per diagram.
- Reusable Astro components —
<GraphDiagram>,<FlowDiagram>,<ActorsMap>that take data props. Build once, reuse. - D3.js force-directed graphs — actual interactive visualizations via Astro Islands (
client:visible). Drag nodes, hover for details. - Hybrid — Mermaid for simple/temporary diagrams, custom components for key showcases.
- CSS-only styled Mermaid — keep Mermaid but override styles heavily with custom CSS to match the brand.
Decisions needed
Section titled “Decisions needed”- Which concept pages need custom diagrams vs which can stay text/tables?
- Should we build reusable components or one-off per page?
- How interactive? (static SVG, CSS animations, or full JS interactivity?)
- Does this block Foundation phase work, or is it polish for later?
- Full audit of concept pages needed to identify which diagrams are actually useful vs noise
Pages with Mermaid currently
Section titled “Pages with Mermaid currently”- ontology-evolution.mdx — 13 diagrams (the biggest)
- ontology-lifecycle.mdx — 2 diagrams
- design/architecture.mdx — 1 diagram
- Various log entries reference pipeline/lifecycle diagrams
Related
Section titled “Related”- Hero visual iterations — the custom CSS/SVG approach we used for the homepage
- Why Obsidian, why files — filesystem-first means diagrams should also work as plain markdown fallback