Plinth Sketch.
A DSL for system architecture diagrams. Output is typeset SVG in this site's design language. The diagram on the home page was made with this tool.
v0.1.0 · open source · MITDSL syntax
Section titled “DSL syntax”# Comments start with #.@layer Layer name # set the current layer
id : Label / sublabel # define a node (sublabel optional)a -> b : edge label # directed edge (label optional)
@cite Custom bottom-right text # optional cite lineThat’s the whole language. Layers stack vertically, nodes flow horizontally inside each layer, edges are auto-routed.
Use it at build time
Section titled “Use it at build time”The same DSL that powers this in-browser editor ships as @plinth-dev/sketch on npm. Install once, render diagrams at build time, embed the SVG in your README:
npm install -g @plinth-dev/sketchplinth-sketch architecture.sketch -o architecture.svgOr wire up the GitHub Action to re-render on every commit:
- uses: plinth-dev/sketch@v0 with: { pattern: 'docs/**/*.sketch', commit: 'true' }