Description
C4-PlantUML is a library of macros for drawing C4 architecture diagrams with PlantUML. The C4 model describes a software system at the levels of context, containers, components and code, and this library lets you write those diagrams as plain text instead of placing boxes by hand. It includes macros for system context and landscape, container, component, dynamic and deployment diagrams, plus a C4-styled sequence diagram. You can add custom tags and stereotypes, update styles with skinparam changes, define your own legend title and set tags for individual elements or boundaries. Layout options control how elements are arranged, and relationship types are available for connecting them. Snippets for Visual Studio Code are included. The library is aimed at up-front design sessions, where a team wants to sketch an architecture quickly and keep the diagram in version control next to the code. It is released under the MIT license and developed in the open on GitHub, where the project publishes a getting-started guide and sample diagrams.…
Highlights
- Macros for C4 context, container and component diagrams
- Dynamic and deployment diagram support
- Custom tags, stereotypes and skinparam styles
- Layout options for arranging elements
- Visual Studio Code snippets
Ratings & Reviews
No ratings yet
Be the first to rate C4-PlantUML.
People also visit
C4-PlantUML FAQ
What is C4-PlantUML?
It is a library of PlantUML macros for drawing diagrams that follow the C4 model of software architecture, written as plain text.
Who is it for?
Software architects and developers who want to describe systems in text and keep their diagrams under version control.
Is it free?
Yes. It is open source and released under the MIT license.
How do I start?
Include the C4-PlantUML library in a PlantUML file, then call its macros for each element and relationship. The project's getting-started guide walks through a container diagram.
What diagram types does it support?
System context and landscape, container, component, dynamic and deployment diagrams, and a C4-styled sequence diagram.
Can I change how the diagrams look?
Yes. You can add custom tags and stereotypes, update the skinparam styles, define a new legend title and set tags for individual elements and boundaries.
Is there editor support?
Snippets for Visual Studio Code are included in the project to speed up writing the common blocks.
What are the best C4-PlantUML alternatives?
Popular alternatives to C4-PlantUML include Archimate-PlantUML, Go Plantuml and Diagrams. See all C4-PlantUML alternatives






