← c4studio
· This site was generated by
c4 publish
from
the model of c4studio itself
.
c4studio
c4studio described in its own DSL, rendered by itself.
Start
Overview
Views
c4studio – System Landscape
systemLandscape
c4studio – System Context
systemContext
c4studio – Containers
container
Core Library – Components
component
Web Backend – Components
component
Studio SPA – Components
component
Diagram Core – Components
component
VS Code Extension – Components
component
Dynamic – typing a change and seeing it
dynamic
Dynamic – the same diagram, with no browser
dynamic
Developer machine – one process, one browser
deployment
CI – the same code, headless
deployment
c4studio – What works offline
filtered
Documentation
c4studio, described in its own DSL
Why Node appears exactly once
Decisions
Record architecture decisions
Accepted
The editor edits text, never the model
Accepted
Every renderer consumes one view graph
Accepted
Diagram Core – Components
Diagram Core – Components
Diagram Core
[Container: TypeScript, npm workspace]
Studio (SPA)
[Container: TypeScript, React, Vite]
The browser app: browse, read,
edit, and watch the diagram follow
the text.
Layout
[Component: TypeScript, dagre]
Compound dagre layout, async by
contract so the engine can be
swapped.
Node & Edge Views
[Component: React]
The React Flow components for
elements, boundaries, chrome and
floating edges.
Edge Paint
[Component: TypeScript]
Relationship paint applied inline
rather than by stylesheet, because
export re-inlines computed styles
and would otherwise drop it.
Image Export
[Component: html-to-image]
PNG and SVG of the live canvas.
Headless SVG
[Component: TypeScript]
Draws the same diagram as pure
SVG markup from the graph
payload alone, with no DOM.
Headless Renderer
[Container: JavaScript (bundled),
Node 18+]
Committed build artefact: diagram-
core bundled for Node, so the
wheel renders SVG without an npm
install. The only part of c4studio…
Exports PNG and SVG with
Is positioned by
Paints relationships with
Reuses
Reuses
Is the bundled form of
Container
Component
Boundary
Relationship