diagramsmith

v0.4.3
io.github.Zune2004/diagramsmith Checked 2 days ago Published 1 day ago

Draw Mermaid, hand-drawn and interactive HTML diagrams locally.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

render_mermaid

Render Mermaid diagram source to PNG or SVG in the output directory.

ParameterTypeDescription
source *stringMermaid diagram source text
formatstringOutput format (svg or png)
namestringOptional output filename base (sanitised with timestamp)
themestringOptional Mermaid theme override

render_diagram

Auto-layout and render an Excalidraw-style diagram spec JSON to PNG or SVG (plus editable .excalidraw).

ParameterTypeDescription
spec *objectDiagram spec object (nodes, edges, groups, direction, title, etc.)
formatstringOutput format (png or svg)
namestringOptional output filename base (sanitised with timestamp)
presetstringOptional style preset

render_interactive

Render a diagram spec JSON into a self-contained interactive HTML explorer.

ParameterTypeDescription
spec *objectDiagram spec object (nodes, edges, groups, steps, inline drills)
namestringOptional output filename base (sanitised with timestamp)
stylesstringStyle presets to embed: "all" or a comma-separated list (e.g. "sketch,clean,midnight")

list_styles

List the available diagram style presets and customizable style options.