← 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
Studio SPA – Components
Studio SPA – Components
Studio (SPA)
[Container: TypeScript, React, Vite]
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.
App Shell
[Component: React]
Owns the loaded workspace, the
selected view, capabilities and the
live-reload poll.
API Client
[Component: TypeScript]
One typed fetch wrapper per
endpoint, so error handling and the
URL scheme live in one place.
Graph Pane
[Component: React, React Flow]
The interactive diagram: drag,
zoom, drill in, align, export. Prop-
injected for its backend, which is
what lets it be embedded…
Source Pane
[Component: React]
One buffer per file, with dirty
tracking, conflict resolution and
save.
DSL Editor
[Component: CodeMirror 6]
CodeMirror 6 surface: highlighting,
completion and lint marks over the
buffer.
DSL Language
[Component: TypeScript]
A StreamLanguage and completion
source built from one shared
vocabulary — the SPA keeps a
single copy of the DSL keyword set.
File Tree
[Component: React]
Searchable and windowed over
uniform rows, so a tree of any size
keeps ~25 rows in the DOM.
Explorer
[Component: React]
The whole model as one searchable
graph, independent of any curated
view.
Docs Pane
[Component: React, marked]
Renders !docs sections and !adrs
decisions.
Assistant Panel
[Component: React]
Shows a proposal as a diff against
the buffer. Applying it is an ordinary
edit — nothing AI-specific touches
the editor.
Diagram Core
[Container: TypeScript, npm
workspace]
The renderer-agnostic diagram
layer. Knows nothing about the API
or app state, which is what lets the
headless renderer and the SPA…
Calls the backend through
Renders the selected view
with
Renders the editor with
Renders the whole model with
Renders documentation with
Browses sources with
Embeds
Opens
Highlights and completes with
Lays out and draws with
Calls
Container
Component
Boundary
Relationship