Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

structurizrx serve

Serve a workspace, or a directory of workspaces, in a local web browser with live reload.

structurizrx serve [path] [--port <n>] [--open]
Argument/FlagDefaultEffect
path.A .dsl/.json file, or a directory containing one or more workspaces
--port, -p3000TCP port to listen on
--openoffOpen the browser automatically after starting

Like render, serve materializes generated (auto) views before rendering. Editing and saving a watched file reloads the browser via a WebSocket automatically — no manual refresh.

Routes

RouteWhat it is
GET /Workspace list
GET /workspace/{name}Workspace overview
GET /workspace/{name}/diagram/{key}A single diagram
GET /workspace/{name}/decisionsADR list (from !adrs)
GET /workspace/{name}/decisions/{id}A single ADR
GET /workspace/{name}/canvasIn-browser WASM rendering demo
GET /docs/This documentation site
GET /llms.txtThe DSL cheat sheet, as plain text

JSON API

The same server exposes a JSON API mirroring the CLI, useful for agents working against a live server:

RouteEquivalent to
GET /api/workspacesworkspace list with counts
GET /api/workspace/{name}the full workspace JSON (export)
GET /api/workspace/{name}/decisions[/{id}]ADR data
GET /api/workspace/{name}/diagram/{key}/svgrender --format svg, one diagram
GET /api/workspace/{name}/diagram/{key}/mermaidrender --format mermaid, one diagram
GET /api/workspace/{name}/digestdigest
GET /api/workspace/{name}/query?expr=...query