mermaid
Render Mermaid diagrams to images.
Usage
GET /?source=<base64>&format=svg&theme=default&width=800&height=600&scale=1&bgColor=white
Parameters
- source (required) — base64-encoded Mermaid diagram source
- format — svg, png, pdf (default: svg)
- theme — default, forest, dark, neutral (default: default)
- width — width in pixels (default: 800)
- height — height in pixels (default: 600)
- scale — scale factor 1-5 (default: 1)
- bgColor — background color, hex without # (default: white)
Example
GET /?source=Z3JhcGggVEQKICAgIEEtLT5C&format=svg&theme=dark