Diagrams as code
Diagrams and charts generated from plain-text descriptions. 18 tools, ranked by GitHub stars and updated .
Tools that turn plain-text descriptions into diagrams, so diagrams live in version control next to the code and documentation they describe. Mermaid renders flowcharts, sequence diagrams and more from Markdown-like text and is supported in GitHub Markdown; WaveDrom draws digital timing diagrams.
By GitHub stars, the most popular diagram-as-code tools here are Mermaid (91.1K stars), Diagrams (42.8K stars), and D2 (25.9K stars). 16 of 18 had commits in the last 90 days.
| 1 |
Generate diagrams and flowcharts from markdown-like text definitions, with a live editor. |
91.1K |
| 2 |
Diagram as code in Python for prototyping cloud system architectures. |
42.8K |
| 3 |
Declarative diagram scripting language that turns text into diagrams. |
25.9K |
| 4 |
Generates UML, Gantt, mind map and other diagrams from plain text. |
13.4K |
| 5 |
Builds interactive mind maps from Markdown. |
13.3K |
| 6 |
Draws SVG flowcharts from a textual description. |
8.7K |
| 7 |
Creates diagrams from mathematical notation in plain text, from Carnegie Mellon University. |
8K |
| 8 |
PlantUML macros and styles for drawing software architecture diagrams with the C4 model. |
7.5K |
| 9 |
Architecture-as-code language and tools that generate live, interactive diagrams. |
6.1K |
| 10 |
Small, dependency-free renderer that turns Mermaid diagrams into SVG, from Obsidian. |
4.6K |
| 11 |
Unified API that renders diagrams from many text formats, including PlantUML, Mermaid, Graphviz and D2. |
4.4K |
| 12 |
Converts ASCII art diagrams into SVG. |
4.2K |
| 13 |
Draws timing diagrams and waveforms from simple textual descriptions. |
3.5K |
| 14 |
Web app that generates flowcharts and diagrams from indented text. |
3.4K |
| 15 |
Draws UML diagrams from a simple text syntax. |
2.8K |
| 16 |
Drawing library for Typst with a TikZ-inspired API, for diagrams and plots. |
1.9K |
| 17 |
TeX packages for programmatically drawing vector graphics and diagrams in LaTeX. |
1.4K |
| 18 |
TeX package for drawing 2D and 3D plots directly in LaTeX documents. |
261 |
Head-to-head comparisons
Related topics
Related categories
Frequently asked questions
What is the most popular diagram-as-code tool?
Which diagram-as-code tools are actively maintained?
Are these diagram-as-code tools free and open source?
Missing a tool? Add it with a one-line pull request to the README.