What it does
Spine Diagrams is a Python library that generates architecture and system-design diagrams as SVG files. It’s purpose-built for LLM-generated output and creates publication-ready visualizations without external dependencies.
How it works
You describe your diagram as a Python dict or JSON file specifying lanes (containers), nodes (components), and connections (relationships). The engine renders a 1600px-wide SVG with intelligent orthogonal arrow routing through a single shared “spine” between rows. Arrows never overlap container bodies, labels never collide, and the output is deterministic—same config always produces identical SVG.
Key features
Layout intelligence: Supports 2-row (source/target) and 3-row (classic tier) layouts. Skip-row connections automatically sidestep through margin channels to avoid middle-row overlap. Aspect-ratio aware (16:9 default for slides, plus 4:3 and custom ratios). Vendor integration: 220+ built-in technology icons with auto-detection from labels. AWS, GCP, Azure, Salesforce, Stripe, Kafka, and more come with brand colors auto-applied. Zero complexity: Single stdlib-only Python script—drop it into any project, no npm, no matplotlib.
Use cases
Product teams documenting system architectures, UX researchers explaining technical workflows, design systems teams creating infrastructure diagrams, product managers sharing integration patterns with stakeholders. Works in presentation decks, documentation sites, and design specifications.
Who benefits
Design and product teams who need to communicate system complexity visually without wrestling with diagram tools. Anyone using Claude Code can trigger diagram generation with natural language prompts.