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

Studio SPA – Components

Studio SPA – ComponentsStudio (SPA) [Container: TypeScript, React, Vite]Web Backend[Container: Python, FastAPI]Serves the JSON API and the builtSPA. Holds all mutable state on oneinjected AppState rather than inmodule globals.App Shell[Component: React]Owns the loaded workspace, theselected view, capabilities and thelive-reload poll.API Client[Component: TypeScript]One typed fetch wrapper perendpoint, so error handling and theURL 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 iswhat lets it be embedded…Source Pane[Component: React]One buffer per file, with dirtytracking, conflict resolution andsave.DSL Editor[Component: CodeMirror 6]CodeMirror 6 surface: highlighting,completion and lint marks over thebuffer.DSL Language[Component: TypeScript]A StreamLanguage and completionsource built from one sharedvocabulary — the SPA keeps asingle copy of the DSL keyword set.File Tree[Component: React]Searchable and windowed overuniform rows, so a tree of any sizekeeps ~25 rows in the DOM.Explorer[Component: React]The whole model as one searchablegraph, independent of any curatedview.Docs Pane[Component: React, marked]Renders !docs sections and !adrsdecisions.Assistant Panel[Component: React]Shows a proposal as a diff againstthe buffer. Applying it is an ordinaryedit — nothing AI-specific touchesthe editor.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…Calls the backend throughRenders the selected viewwithRenders the editor withRenders the whole model withRenders documentation withBrowses sources withEmbedsOpensHighlights and completes withLays out and draws withCallsContainerComponentBoundaryRelationship