Skip to content

C4 Modeling

Thomas Klok Rohde edited this page Jul 10, 2026 · 2 revisions

C4 Modeling

Archi Online supports C4 as a built-in ArchiMate profile. It does not add a second metamodel: C4 concepts are stored as normal ArchiMate elements, relationships, views, and properties, so .archimate, Open Exchange, and CSV flows remain compatible with Archi and other ArchiMate tooling.

The implementation follows the C4 idea that the notation is tool independent, then uses ArchiMate for durable semantics. The practical rule is: model the C4 view first, and switch to richer ArchiMate modeling only when the distinction is architecturally useful.

Creating C4 views

Use C4 in the toolbar or right-click the Views folder in the model tree and choose New C4 View. The built-in templates cover:

  • System Landscape
  • System Context
  • Container
  • Component
  • Deployment
  • Dynamic

When a C4 view is active, the palette shows C4 shortcuts for Person, Software System, Container, Component, Deployment Node, Infrastructure Node, and Database. The Database shortcut is still a C4 Container; it adds the c4.tags=database property.

The C4 toolbar menu also provides:

  • Insert or Update Legend for the active C4 view.
  • Validate Active C4 View for missing descriptions, missing technology, and unlabeled relationships.

Visual conventions

A C4 container view: person, containers, an external system, and a database cylinder with labeled relationships

C4 views use a Structurizr-style visual mode. The underlying model remains ArchiMate, but C4-tagged nodes in views with c4.viewType render with C4 figures instead of ArchiMate corner icons:

  • Dark blue boxes are people.
  • Blue boxes are internal software systems, containers, and components.
  • Grey boxes are external elements, detected from c4.external=true or an external tag in c4.tags.
  • Containers tagged with database in c4.tags render as database cylinders.
  • Parent software systems, containers, and deployment nodes render as pale dashed boundaries labeled Software System: Name, Container: Name, or Deployment Node: Name.
  • Relationships render as plain directed arrows with intent labels and optional [technology/protocol] lines.

New C4 templates and palette-created C4 elements persist the default fill, line, and font colors so exported .archimate files look close to C4 in other tools. Imported or older C4 views without those styles still render correctly in Archi Online through computed C4 defaults. Any explicit user styling on a node or connection takes precedence.

Mapping

C4 concept ArchiMate concept C4 metadata
Person BusinessActor c4.kind=person
Software System ApplicationComponent c4.kind=software-system
Container ApplicationComponent c4.kind=container
Data store ApplicationComponent c4.kind=container, c4.tags=database, c4.technology=...
Component ApplicationFunction c4.kind=component
Deployment node Node c4.kind=deployment-node
Infrastructure node Node c4.kind=infrastructure-node
Container instance Artifact c4.kind=container-instance, c4.instanceOf=...

For component views, components are modeled as ApplicationFunctions. The owning container is modeled as an ApplicationComponent; an AssignmentRelationship can connect the container to the functions, while the view uses boundary/nesting to keep the C4 presentation readable.

Relationships

C4 relationships default to TriggeringRelationship from caller to callee. Use another ArchiMate relationship only when its meaning is intentional:

  • FlowRelationship when something is actually transferred.
  • ServingRelationship when one element provides behavior to another.
  • AccessRelationship when data read/write semantics matter.

Relationship labels should describe intent. Add c4.technology for protocol or mechanism, for example HTTPS/JSON, SQL/TCP, or AMQP. Dynamic views can add c4.order so labels render as ordered steps.

Properties

Archi Online uses these stable profile keys:

Key Purpose
c4.kind C4 element kind.
c4.viewType C4 view type on an ArchiMate view.
c4.scopeId Optional id or name of the scoped element.
c4.technology Technology, protocol, or runtime label.
c4.tags Comma-separated tags such as database or external.
c4.external true for externally owned systems or services.
c4.instanceOf Source element for deployment instances.
c4.order Sequence number for dynamic relationships.

The Properties panel exposes these fields on C4 elements, relationships, and views. The raw values remain visible in the normal Properties tab.

Labels

C4 element labels render as:

Name
[C4 Type: Technology]
Short documentation description

C4 relationship labels render as:

1. Intent
[Protocol/Technology]

The documentation field should contain the short C4 description. Keep deeper architecture rationale in normal ArchiMate documentation, related elements, or dedicated views.

Example

The repository includes a small C4 container-view example at public/examples/c4-customer-portal.archimate. Opened in the app's full-screen presentation mode, it looks like this:

The C4 customer-portal example shown in full-screen presentation mode

References

Clone this wiki locally