mingrammer /diagrams
:art: Diagram as Code for prototyping cloud system architectures
★ 42,801⑂ 2,728👁 395⑃ 666● 551▤ 46◈ 47
42,801
stars
+2
2,728
forks
395
watchers
666
prs
551
issues
46
releases
47
discussions
README
!diagrams logo Diagrams !python version !Run tests !contributors Diagram as Code. Diagrams lets you draw the cloud system architecture in Python code. It was born for prototyping a new system architecture design without any design tools. You can also describe or visualize the existing system architecture as well. Diagrams currently supports main major providers including: AWS, Azure, GCP, Kubernetes, Alibaba Cloud, Oracle Cloud etc... It also supports On-Premises nodes, SaaS and major Programming frameworks and languages. Diagram as Code also allows you to track the architecture diagram changes in any version control system. NOTE: It does not control any actual cloud resources nor does it generate cloud formation or terraform code. It is just for drawing the cloud system architecture diagrams. Providers !aws provider !azure provider !gcp provider !ibm provider !kubernetes provider !alibaba cloud provider !oracle cloud provider !openstack provider !firebase provider !digital ocean provider !elastic provider !outscale provider !on premises provider !generic provider !programming provider !saas provider !c4 provider Getting Started Want to try it first? The online playground runs diagrams right in your browser — no installation required. It requires Python 3.9 or higher, check your Python version first. It uses Graphviz to render the diagram, so you need to install Graphviz to use diagrams. After installing graphviz (or already have it), install the diagrams. macOS users can download the Graphviz via brew install graphviz if you're using Homebrew. shell using pip (pip3) $ pip install diagrams using pipenv $ pipenv install diagrams using poetry $ poetry add diagrams You can start with quick start. Check out guides for more details, and you can find all available nodes list in here. Playground diagrams.mingrammer.com/playground A free online editor for diagrams: write Diagram as Code in Python and see the rendered architecture diagram instantly, without installing Python or Graphviz. It runs the real diagrams package in your browser via Pyodide, and supports node search, autocompletion, PNG/SVG/JPEG export, and shareable links. See the playground guide for details. Examples | Event Processing | Stateful Architecture | Advanced Web Service | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | | !event processing | !stateful architecture | !advanced web service with on-premises | You can find all the examples on the examples page. Contributing To contribute to diagram, check out contribution guidelines. Let me know if you are using diagrams! I'll add you in showcase page. (I'm working on it!) :) Who uses it? Apache Airflow is the most popular data
Top issues
#17Is there a way to have arrows to and from Clusters29 comments · 2020-02-13#229Why the node of result png is blank?20 comments · 2020-07-12#279Enable cluster branding17 comments · 2020-09-14#270getting errors when run this program16 comments · 2020-09-10#6Feature request: Terraform support16 comments · 2020-02-11#306[Question] about nodes14 comments · 2020-09-30#176Optimize the resource images size13 comments · 2020-05-27#8Icons not included into the resulting svg and as a result can not be imported into the SaaS such as draw.io13 comments · 2020-02-11
Discussions
#1244Diagrams Playground is now live!0 comments · 2026-08-15#1226Pathwick - Static security analyzer for architecture diagrams0 comments · 2026-06-30#1212diagrams-js: TypeScript/JavaScript port of diagrams0 comments · 2026-04-09#1188v0.25.10 comments · 2025-11-22#1185v0.25.01 comments · 2025-11-21#1182Component classes in the C4 package0 comments · 2025-11-14#1169Diagrams MCP: Architecture Diagrams for Claude 🤖0 comments · 2025-08-25#1160How to quickly find right resource name1 comments · 2025-08-06
Latest release
v0.25.1 v0.25.1 2025-11-22What's Changed fix: missing logos in v0.25.0 by adding build-system configuration by @Copilot in https://github.com/mingrammer/diagrams/pull/1187 New Contributors @Copilot made their first contribution in https://github.com/mingrammer/diagrams/pull/1187 Full Changelog: https://github.com/mingrammer/diagrams/compare/v0.25.0...v0.25.1