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

Diagram Core – Components

Diagram Core – ComponentsDiagram Core [Container: TypeScript, npm workspace]Studio (SPA)[Container: TypeScript, React, Vite]The browser app: browse, read,edit, and watch the diagram followthe text.Layout[Component: TypeScript, dagre]Compound dagre layout, async bycontract so the engine can beswapped.Node & Edge Views[Component: React]The React Flow components forelements, boundaries, chrome andfloating edges.Edge Paint[Component: TypeScript]Relationship paint applied inlinerather than by stylesheet, becauseexport re-inlines computed stylesand would otherwise drop it.Image Export[Component: html-to-image]PNG and SVG of the live canvas.Headless SVG[Component: TypeScript]Draws the same diagram as pureSVG markup from the graphpayload alone, with no DOM.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…Exports PNG and SVG withIs positioned byPaints relationships withReusesReusesIs the bundled form ofContainerComponentBoundaryRelationship