Skip to content

Rendering Backend Comparison

Rendering-backend pages are the normative source for backend-only behavior. The portable core docs describe model concepts shared by renderers; backend docs describe syntax, validation, render options, and extension data owned by each renderer.

Capability PlantUML Mermaid D2 Structurizr LikeC4
System context diagrams Supported Supported Supported Supported Element views (no fixed C4 types)
System landscape diagrams Supported Rendered as Mermaid C4 context syntax Supported Supported Element views (no fixed C4 types)
Container diagrams Supported Supported Supported Supported Element views (no fixed C4 types)
Component diagrams Supported Supported Supported Supported Element views (no fixed C4 types)
Dynamic diagrams Supported Supported by renderer, limited by Mermaid C4 syntax Supported Supported Supported (flat steps)
Deployment diagrams Supported Supported by renderer, limited by Mermaid C4 syntax Supported Supported Supported
Relationship endpoints Elements and boundaries Concrete elements only; boundaries are rejected Elements with deterministic D2 paths Structurizr model LikeC4 model
Properties Property tables Not supported Markdown tables Structurizr properties Metadata
Directional relationship helpers c4.contrib.plantuml Syntax accepted, no layout effect Not supported Not supported Not supported
Bidirectional relationship helpers c4.contrib.plantuml c4.contrib.mermaid c4.contrib.d2 Not supported bidirectional=True
Relative layout helpers c4.contrib.plantuml Not supported D2 direction and extension layout hints Auto-layout options autoLayout
Dynamic relationship indexes c4.contrib.plantuml Not supported Not supported Dynamic view order Step order
Element tags, sprites, links, shapes plantuml={...} Not supported d2={...} Tags and styles Tags, icons, links, shapes
Boundary type hints plantuml={...} mermaid={...} d2={...} Model scopes Nested elements
Style options PlantUML render options Mermaid options D2 options Style presets Kinds, colors, view style rules
Image backend Local CLI/JAR, remote server, or Kroki Local Mermaid CLI or Kroki Local D2 CLI or Kroki Kroki or local CLI Local likec4 CLI (PNG, JPG)

Export backends and formats

Backend Source output Local export Remote export Kroki Image formats
PlantUML C4-PlantUML plantuml CLI or plantuml.jar PlantUML server Supported PNG, SVG, EPS, LaTeX, TXT, UTXT
Mermaid Mermaid C4 Mermaid CLI (mmdc) Not supported Supported PNG, SVG, PDF
D2 D2 d2 CLI Not supported Supported PNG, SVG, PDF
Structurizr Structurizr DSL Structurizr CLI Not supported Supported (default) PNG, SVG, PDF (local CLI: PNG, SVG)
LikeC4 LikeC4 .c4 likec4 CLI Not supported Not supported PNG, JPG

Use PlantUML when C4-PlantUML-specific layout, styling, tags, dynamic indexes, or remote rendering matter. Use Mermaid when Mermaid source is the target format and the diagram fits Mermaid's smaller experimental C4 feature set. Use D2 when deterministic D2 source or local D2 image export is the target. Use Structurizr when Structurizr DSL or Kroki-backed or local Structurizr CLI export is the target. Use LikeC4 when LikeC4 source or locally exported LikeC4 views are the target.