One diagram, multiple render options
Suggested prompt
Use examples/recipes/render-options/diagram.mmd as the reference for a rendering comparison. Preserve its meaning while comparing LR and TD layouts, light and dark SVG, opaque and transparent PNG, and supported Unicode/ASCII outputs. Follow the exact input paths and commands in its README. Inspect capabilities before applying layout; keep a separate output for each variant.
Use examples/recipes/render-options/diagram.mmd as the reference for a rendering comparison. Preserve its meaning while comparing LR and TD layouts, light and dark SVG, opaque and transparent PNG, and supported Unicode/ASCII outputs. Follow the exact input paths and commands in its README. Inspect capabilities before applying layout; keep a separate output for each variant. Work in a new destination that I approve; do not overwrite the reference files. Inspect the diagram type’s capabilities before choosing an operation. Do not invent pixel coordinates or use unsupported polish or transformations. Render the result, report available checks and their limits, and keep visual judgment separate from mechanical evidence.
This recipe renders the same request flow in eight ways to demonstrate Beautiflow’s layout direction, formats, themes, and transparent backgrounds.
Read the Mermaid source
flowchart LR
visitor([Visitor]) --> router[Request router]
router --> cached{Response cached?}
cached -->|Yes| cache[(Edge cache)]
cache --> response[Return response]
cached -->|No| queue[Work queue]
queue --> worker[Render worker]
worker --> store[(Content store)]
store --> response
Layout direction
Suggested prompt
Using separate disposable copies of examples/recipes/render-options/diagram.mmd, compare the supplied LR and TD layout action files. Inspect supported operations first and use the agent receipt workflow for mutations. Preserve all nodes, relationships and labels; keep both outputs so the orientation trade-off is visible.
Using separate disposable copies of examples/recipes/render-options/diagram.mmd, compare the supplied LR and TD layout action files. Inspect supported operations first and use the agent receipt workflow for mutations. Preserve all nodes, relationships and labels; keep both outputs so the orientation trade-off is visible. Work in a new destination that I approve; do not overwrite the reference files. Inspect the diagram type’s capabilities before choosing an operation. Do not invent pixel coordinates or use unsupported polish or transformations. Render the result, report available checks and their limits, and keep visual judgment separate from mechanical evidence.
The Mermaid semantics stay identical while sidecar actions generate horizontal and vertical layouts. Both renders use the same theme so only geometry and semantic emphasis change.
| Left to right | Top to bottom |
|---|---|
2 · Diagram |
2 · Diagram |
Left to right:
beautiflow apply examples/recipes/render-options/diagram.mmd --actions examples/recipes/render-options/layout-left-to-right.json --json
beautiflow render examples/recipes/render-options/diagram.mmd --format svg --theme github-light --output examples/recipes/render-options/rendered/layout-left-to-right.svg
Top to bottom:
beautiflow apply examples/recipes/render-options/diagram.mmd --actions examples/recipes/render-options/layout-top-to-bottom.json --json
beautiflow render examples/recipes/render-options/diagram.mmd --format svg --theme github-light --output examples/recipes/render-options/rendered/layout-top-to-bottom.svg
Both action files also preserve the cached response as the primary flow and mark the render-worker path as secondary. Remove generated local state after reproducing the comparison:
rm -f examples/recipes/render-options/diagram.beautiflow.json
SVG themes
Suggested prompt
Render the same source as github-light and dracula SVG using the commands in examples/recipes/render-options/README.md. Keep labels and topology unchanged, use distinct output paths, and compare contrast without treating a theme change as a geometry improvement.
Render the same source as github-light and dracula SVG using the commands in examples/recipes/render-options/README.md. Keep labels and topology unchanged, use distinct output paths, and compare contrast without treating a theme change as a geometry improvement. Work in a new destination that I approve; do not overwrite the reference files. Inspect the diagram type’s capabilities before choosing an operation. Do not invent pixel coordinates or use unsupported polish or transformations. Render the result, report available checks and their limits, and keep visual judgment separate from mechanical evidence.
| GitHub Light | Dracula |
|---|---|
2 · Diagram |
2 · Diagram |
beautiflow render examples/recipes/render-options/diagram.mmd --format svg --theme github-light --output examples/recipes/render-options/rendered/github-light.svg
beautiflow render examples/recipes/render-options/diagram.mmd --format svg --theme dracula --output examples/recipes/render-options/rendered/dracula.svg
SVG remains scalable and is the best choice for documentation and the web.
PNG backgrounds
Suggested prompt
Export the same reference source as an opaque github-dark PNG and a transparent nord-light PNG. Use the documented render commands and distinct output paths; explain transparency without changing the diagram semantics.
Export the same reference source as an opaque github-dark PNG and a transparent nord-light PNG. Use the documented render commands and distinct output paths; explain transparency without changing the diagram semantics. Work in a new destination that I approve; do not overwrite the reference files. Inspect the diagram type’s capabilities before choosing an operation. Do not invent pixel coordinates or use unsupported polish or transformations. Render the result, report available checks and their limits, and keep visual judgment separate from mechanical evidence.
| GitHub Dark | Transparent Nord Light |
|---|---|
2 · Diagram ![]() |
2 · Diagram ![]() |
beautiflow render examples/recipes/render-options/diagram.mmd --format png --theme github-dark --output examples/recipes/render-options/rendered/github-dark.png
beautiflow render examples/recipes/render-options/diagram.mmd --format png --theme nord-light --transparent --output examples/recipes/render-options/rendered/nord-light-transparent.png
PNG is convenient for slides and chat. --transparent removes the canvas background while retaining diagram colors.
Terminal output
Suggested prompt
Check terminal-format support for examples/recipes/render-options/diagram.mmd, then produce Unicode and ASCII output using the documented commands. Explain the format trade-offs. Do not assume that every diagram type supports terminal rendering.
Check terminal-format support for examples/recipes/render-options/diagram.mmd, then produce Unicode and ASCII output using the documented commands. Explain the format trade-offs. Do not assume that every diagram type supports terminal rendering. Work in a new destination that I approve; do not overwrite the reference files. Inspect the diagram type’s capabilities before choosing an operation. Do not invent pixel coordinates or use unsupported polish or transformations. Render the result, report available checks and their limits, and keep visual judgment separate from mechanical evidence.
Unicode:
┌─────────┐ ┌────────────────┐
│ Visitor │ ──▶ │ Request router │ ──▶ …
└─────────┘ └────────────────┘
beautiflow render examples/recipes/render-options/diagram.mmd --format unicode --output examples/recipes/render-options/rendered/diagram-unicode.txt
ASCII:
+---------+ +----------------+
| Visitor | --> | Request router | --> ...
+---------+ +----------------+
beautiflow render examples/recipes/render-options/diagram.mmd --format ascii --output examples/recipes/render-options/rendered/diagram-ascii.txt
The complete generated terminal output is available in diagram-unicode.txt and diagram-ascii.txt.
Live preview
beautiflow server examples/recipes/render-options/diagram.mmd
Server mode renders the saved diagram using its sidecar state and updates after every save.

