About Diagrams
Diagrams is a Python library that allows users to draw cloud system architecture diagrams as code. It was created for prototyping new system architectures without the need for design tools, and can also be used to describe or visualize existing system architectures.
The library supports major cloud providers including AWS, Azure, GCP, Kubernetes, Alibaba Cloud, and Oracle Cloud, as well as on-premises nodes, SaaS, and major programming frameworks and languages. It does not control actual cloud resources or generate infrastructure code; it is solely for drawing diagrams.
Key features
- Draw cloud system architecture diagrams in Python code
- Prototype new system architectures without design tools
- Track architecture diagram changes in version control systems
- Support for major cloud providers: AWS, Azure, GCP, Kubernetes, Alibaba Cloud, Oracle Cloud
- Support for on-premises nodes, SaaS, and major programming frameworks and languages
Good fit for
- Prototyping a new system architecture
- Describing or visualizing an existing system architecture
Diagrams: questions and answers
- What is Diagrams used for?
- Diagrams lets you draw cloud system architecture diagrams in Python code. It is a good fit for prototyping a new system architecture and describing or visualizing an existing system architecture.
- Is Diagrams open source?
- Yes. Diagrams is open source under the MIT licence. Its source code is on GitHub at mingrammer/diagrams and is written mainly in Python.
- Is Diagrams free?
- Yes. Diagrams is open source, so the software itself is free to use.
- Can I self-host Diagrams?
- Yes. Diagrams can be self-hosted on your own server or infrastructure.
- What is Diagrams an alternative to?
- Diagrams is an open-source alternative to Eraser. Other open-source alternatives to Eraser include Excalidraw and draw.io.
- Is Diagrams actively maintained?
- Yes. The most recent commit to Diagrams was on 8 October 2026, and the latest release is v0.25.1, published on 22 November 2025. The project has 43k stars on GitHub.
Open-source alternatives to Diagrams
See all
Excalidraw
Whiteboards
Virtual whiteboard for sketching hand-drawn like diagrams
MITvs Miro★ 134k
draw.io
Whiteboards
draw.io is a JavaScript, client-side editor for general diagramming.
Apache-2.0vs Microsoft Visio★ 8.7k
Penpot
Design
Penpot: The open-source design platform for Product teams that need scalable collaboration
MPL-2.0vs Figma★ 61k
Graphite
Design
Community-built comprehensive 2D content creation appplication for graphic design, digital
Apache-2.0vs Affinity★ 28k
Krita
Design
Krita is a free and open source cross-platform application that offers an end-to-end solut
GPL-3.0vs Adobe Photoshop★ 11k
Pencil
Design
The Pencil Project's unique mission is to build a free and opensource tool for making diag
GPL-2.0vs Uizard★ 9.9k
SaaS alternatives to Diagrams
See all
Eraser
Whiteboards
Diagramming tool for engineers with diagram-as-code and AI generation
SaaS
Mermaid Chart
Design
Create diagrams, flowcharts, and documentation with Mermaid
SaaS
Napkin AI
AI Tools
Turns text into editable diagrams, infographics and visuals
SaaS
Anylayr
Design
AI product designer that generates UI frames, layouts and components from a text description
SaaS
Appthetics
Design
Design mobile app screens by chatting with AI, with Figma and code export and store screenshots
SaaS
Axure RP
Design
Prototyping and wireframing software with conditional logic
SaaS

