Tools / Editor
C4 Model Builder: Systems & Containers
Build a C4-style architecture view from elements and relationships. Preview flowchart output and understand the difference from native C4 syntax.
What this architecture builder produces
Describe people, systems, containers, and components as structured data to sketch an architecture view. Keep one level of abstraction in focus: a context view explains users and external systems, while a container view explains the main applications and data stores inside a system.
A worked example
Input
{
"elements": [
{
"id": "user",
"type": "Person",
"name": "Customer"
},
{
"id": "web",
"type": "System",
"name": "Store"
},
{
"id": "db",
"type": "Container",
"name": "Database"
}
],
"relations": [
{
"from": "user",
"to": "web",
"label": "Browses"
},
{
"from": "web",
"to": "db",
"label": "Reads"
}
]
}Diagram source
flowchart LR
n0["Person: Customer"]
n1["System: Store"]
n2["Container: Database"]
n0 -->|"Browses"| n1
n1 -->|"Reads"| n2How to use this tool
- Start from the JSON example with elements and relations. Give each element a stable ID, type, and name.
- Reference element IDs from each relationship and use a specific label such as Reads orders.
- Preview the result and remove details that belong at another level. Keep separate context and container diagrams when their audiences differ.
What to check
| Detail | Guidance |
|---|---|
| Output format | The builder generates flowchart LR source. It does not generate native C4Context or C4Container syntax. |
| Model size | Use at most 100 elements and 300 relationships. Split large systems into focused views. |
| Architecture meaning | A connection is whatever its label says. Deployment, runtime traffic, and ownership are different relationships; do not use an unlabeled arrow for all three. |
Common questions
Is a container necessarily a Docker container?
No. In C4, a container is an application or data store. Name the responsibility and technology where useful; do not mix a deployment host with a software container just because both are called containers.