← 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
VS Code Extension – Components
VS Code Extension – Components
VS Code Extension
[Container: TypeScript, esbuild, .vsix]
Core Library
[Container: Python 3.13]
Parsing, the domain model, the
view graph and the generators.
Pure Python, no I/O beyond reading
source files.
Diagnostics Bridge
[Component: TypeScript]
Runs `c4 check --json` on save
and publishes the results into the
Problems panel.
Web Backend
[Container: Python, FastAPI]
Serves the JSON API and the built
SPA. Holds all mutable state on one
injected AppState rather than in
module globals.
Studio (SPA)
[Container: TypeScript, React, Vite]
The browser app: browse, read,
edit, and watch the diagram follow
the text.
CLI
[Container: Python, click]
generate, render, export, check,
list-views, webapp, new.
Workspace Sources
[Container: Files on disk]
The user's .dsl and .json files,
including !include fragments. The
source of truth; c4studio never
generates them from the model.
Preview Manager
[Component: TypeScript]
Owns the preview panel: renders
the chosen view with `c4 render --
view` and shows the SVG, with no
server and no port. Starts the…
Server Resolver
[Component: TypeScript]
Finds a runnable c4studio: a
configured command, the project's
own environment, or a managed
install.
TextMate Grammar
[Component: tmLanguage JSON]
DSL syntax highlighting. The third
copy of the keyword vocabulary,
and the one that cannot share the
others.
Parses and generates through
Parses and builds view graphs
through
Reports skipped constructs to
Writes atomically to
Calls
Finds a runnable backend
through
Renders one view as SVG with
Starts on request, for Open in
Studio
Opens in a browser on
request
Finds the same backend
through
Runs `c4 check --json` with
Locates or installs
Highlights
Container
Component
File Store
Boundary
Relationship