TL;DR
Spent today rebuilding two training diagrams — a layered reference architecture and a workflow swimlane — as single-file HTML instead of exported images.
The trick: data in a plain JS array, layout in CSS Grid, connectors in an SVG overlay measured at runtime.
Result: diagrams you can step through, click into, and hand over as one file that opens offline.
Why not just export a PNG?






