Overview
Diagram Design Studio is an editorial diagram design system, CLI toolchain, and interactive web studio for AI agents and engineering teams.
Forty-four canonical visual types. Self-contained HTML + SVG files. Zero shadows. Zero Mermaid slop. Pure editorial typography (Instrument Serif + Geist) and clean 4px geometric layout.
Core Philosophy: The highest-quality move is deletion. Target density is 4/10. Every node earns its place. Coral accent (#eb6c36) is reserved strictly for 1–2 focal elements per diagram so the reader immediately grasps what matters.
Key Highlights
- 🎨 44 Visual Diagram Types: Architecture, Flywheel Loop, Data Flow, Medallion, Sequence, State Machine, Sankey, Wardley Maps, Axonometric Plans, and more.
- 🖥️ Interactive Design Studio (
diagram serve): Full web application with a 44-type interactive gallery, a real-time live editor with instant SVG preview, and a Mermaid converter.
- 🤖 AI-Agent Native: Seamlessly integrated with Google Antigravity, Claude Code, Codex, Factory Droid, and Pi. Feed any markdown spec or architecture doc to the AI to generate production-ready diagrams.
- ⚡ Self-Contained & Zero Dependencies: Every diagram is a single standalone
.html file with inline SVG, accessible <title> and <desc>, and embedded styling. Opens offline in any browser.
- 🔄 Mermaid & Draw.io Converter: Ingest messy auto-routed graphs from
.mmd, .drawio, or .excalidraw and upgrade them to editorial geometry.
- 📸 Retina Export Engine: Export any diagram to standalone
.svg and retina 2x transparent .png with one CLI command via Playwright.
Diagram Design Studio (Interactive GUI)
Launch the built-in Diagram Design Studio to browse, live-edit, and export diagrams:
diagram serve --open
The studio opens at http://127.0.0.1:8765:
Studio Capabilities:
- Gallery View (44 Types): Explore all canonical diagram types with category filtering, search, and one-click variant switching (Minimal Light, Minimal Dark, Full Editorial, Motion, Terminal).
- Live Editor: Edit HTML+SVG markup with real-time canvas preview, integrated accessibility self-check, and instant SVG/PNG downloads.
- Mermaid Converter: Paste existing Mermaid syntax to extract intermediate structural representation (IR) and map it to an editorial diagram type.
- Icons Gallery: Browse 87 curated monochrome technical & cloud icons (AWS, Azure, Docker, Kubernetes, Postgres, GitHub…).
- Doctor: Instant diagnostic panel checking Python environment, templates, and Playwright Chromium readiness.
Quick Start
1. Installation
Clone and install in editable mode:
git clone https://github.com/cathrynlavery/diagram-design.git
cd diagram-design
# Install Python package and CLI
pip install -e .
# Install Playwright Chromium for retina PNG exports
playwright install chromium
2. Verify Setup
Run the built-in diagnostic tool:
diagram doctor
Diagram Design Doctor v2.6.70
==================================================
[OK ] Python Version : Python 3.13.15
[OK ] Assets & Templates : Found 5 templates and 204 examples
[OK ] Diagram Types : Registered all 46 canonical diagram types
[OK ] PNG Rasterizer (Playwright) : Chromium available
[OK ] Antigravity Global Skill : Installed in global config
[OK ] Antigravity Workspace Skill : Installed in workspace
3. CLI Command Reference