← c4studio · This site was generated by c4 publish from the model of c4studio itself.

c4studio – Containers

c4studio – Containersc4studio [Software System]Software Architect[Person]Models a system in Structurizr DSLand reads the diagrams itproduces.Developer[Person]Keeps the model honest alongsidethe code, usually in the same pullrequest.Core Library[Container: Python 3.13]Parsing, the domain model, theview graph and the generators.Pure Python, no I/O beyond readingsource files.Web Backend[Container: Python, FastAPI]Serves the JSON API and the builtSPA. Holds all mutable state on oneinjected AppState rather than inmodule globals.Studio (SPA)[Container: TypeScript, React, Vite]The browser app: browse, read,edit, and watch the diagram followthe text.Diagram Core[Container: TypeScript, npmworkspace]The renderer-agnostic diagramlayer. Knows nothing about the APIor app state, which is what lets theheadless renderer and the SPA…Headless Renderer[Container: JavaScript (bundled),Node 18+]Committed build artefact: diagram-core bundled for Node, so thewheel renders SVG without an npminstall. The only part of c4studio…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. Thesource of truth; c4studio nevergenerates them from the model.Layout Sidecars[Container: JSON files]<source>.layout.json — per-user UIstate, gitignored, written next tothe source.VS Code Extension[Container: TypeScript, esbuild,.vsix]DSL highlighting, inline diagnostics,and a preview that draws one viewas an SVG beside the editor. Runswhatever c4studio is on the…GitHub Action[Container: composite action,YAML]Renders every view as SVG onpush, and optionally commits themor comments on the pull request.Anthropic API[Software System]Answers the assistant's requestsfor a rewritten DSL file.Structurizr Theme CDN[Software System]Serves theme JSON and the serviceicons a themed diagram embeds.PyPI[Software System]Distributes the c4studio wheel,bundle and renderer included.CI (GitHub Actions)[Software System]Runs the c4studio action on everypush to render views without abrowser.Models and reads architectureinEdits the DSL inGenerates and checksdiagrams withPreviews diagrams whileediting withParses and generates throughParses and builds view graphsthroughInvokes `c4 render`Runs on every pushReports skipped constructs toWrites atomically toReads and writesLays out and draws withCallsRenders one view as SVG withStarts on request, for Open inStudioOpens in a browser onrequestHighlightsIs the bundled form ofPipes the graph payload toAsks for a rewritten fileFetches theme JSON andicons fromDistributesPersonContainerFile StoreNetworkExternal SystemBoundaryRelationship