Skip to main content

C4 PlantUML

C4 PlantUML creates C4 software architecture diagrams with PlantUML macros.

Use this type​

Use C4 PlantUML for system landscape, system context, container, component, dynamic, and deployment views.

Source format​

The source format is PlantUML with C4 macros. Enter the source in the diagram.zip editor.

Syntax essentials​

  • Start and end the source with PlantUML directives.
  • Include the required C4 library file.
  • Declare people, systems, containers, or components.
  • Use Rel macros to define relationships.

Example​

@startuml
!include <C4/C4_Context>
Person(user, "User")
System(app, "diagram.zip")
Rel(user, app, "Creates diagrams")
@enduml
Rendered exampleDrag to pan. Use the wheel or controls to zoom.
100%
This view uses the live diagram.zip renderer.

Upstream reference​

C4 PlantUML documentation