← 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
Dynamic – the same diagram, with no browser
Dynamic – the same diagram, with no browser
CI (GitHub Actions)
[Software System]
Runs the c4studio action on every
push to render views without a
browser.
GitHub Action
[Container: composite action,
YAML]
Renders every view as SVG on
push, and optionally commits them
or comments on the pull request.
CLI
[Container: Python, click]
generate, render, export, check,
list-views, webapp, new.
DSL Parser
[Component: Python, recursive
descent]
Tokenises and parses Structurizr
DSL. Rewrites the source before
tokenising — !include flattened,
!script stripped, constants…
View Graph
[Component: Python]
Workspace + view -> nodes and
edges, with C4 visibility, boundary
nesting and endpoint lifting applied.
The one contract every renderer…
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…
Headless SVG
[Component: TypeScript]
Draws the same diagram as pure
SVG markup from the graph
payload alone, with no DOM.
1. Runs the action on push
2. c4 render workspace.dsl -o
diagrams/
3. Parses the source
4. Builds the same graph the
web app serves
5. Pipes the payload to the
bundled Node renderer
6. Draws it as SVG markup
External System
Container
Component
Relationship