Structurizr
$ structurizr Official Low RiskStructurizr CLI (structurizr) validates Structurizr DSL/JSON workspaces and exports C4 views to PlantUML, Mermaid, WebSequenceDiagrams, static HTML, SVG/PNG, or Structurizr JSON. Local validate and export run offline without credentials, while push/pull sync with Structurizr cloud or on-premises workspaces.
brew install structurizr Validating workspace.dsl and exporting PlantUML/Mermaid/JSON diagrams runs directly on the local repository via structurizr.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic validate and export -format json|mermaid|plantuml with clean exit codes, though single-dash -workspace flags are non-standard and logs are plain text.
validateprovides zero-write syntax checkingexport -format jsonemits structured workspace JSON
Offline validate and export are safe local operations; remote writes only happen on explicit push / lock subcommands.
- Separate read/export vs. remote
push/pullcommands
Packaged via brew install structurizr and release zips, but requires a Java JRE/JDK and export -format png|svg requires browser tooling.
- Java runtime dependency; PNG/SVG export uses browser renderer
Canonical C4 DSL tooling with multi-format exports (plantuml, c4plantuml, mermaid, json, static).
- Rich C4 model validation and export targets
Official Structurizr project maintained by Simon Brown / Structurizr under Apache-2.0.
- Official Structurizr CLI distribution
Clear command and flag pages at docs.structurizr.com/cli.
- Official docs at docs.structurizr.com/cli
Security, Auth & Guardrails
Local validate and export need no auth; push/pull take workspace -id, -key, and -secret flags or properties.
CLI is free and open-source (Apache-2.0); optional Structurizr Cloud / Lite / On-premises hosting varies by edition.
# Structurizr Agent Rules - Note Structurizr CLI uses single-dash Java-style flags (`-workspace`, `-format`, `-output`), not `--` flags. - Run `structurizr validate -workspace workspace.dsl` after any DSL edit. - Never run `structurizr push` or pass `-key`/`-secret` unless explicitly syncing to a remote Structurizr server.
Agent-Ready Command Recipes
Safe Read-Only Queries
structurizr validate -workspace workspace.dsl
Parses and validates workspace.dsl syntax and model relationships without writing files.
Controlled Writes & Previews
structurizr export -workspace workspace.dsl -format mermaid -output ./diagrams
Exports all workspace views as Mermaid .mmd files into ./diagrams (use -format json for workspace JSON).
Strengths for Agents
- + Canonical C4
workspace.dslvalidation and export toplantuml,mermaid,static, andjson. - + Clean separation between offline
validate/exportand remotepush/pull.
Caveats & Pitfalls
- ! Requires Java runtime; single-dash flags (
-workspace,-format) differ from POSIX--conventions. - ! Direct
-format png|svgexport delegates to a headless browser renderer (exportingmermaid/plantumlis simpler).