mermaid-render

Solid

Render .mmd (and .excalidraw) files as hand-drawn PNGs via Excalidraw. Triggered by 'render this diagram', 'export mermaid as PNG', 'convert mmd to image', or 'excalidraw export'.

AI & Automation 20 stars 11 forks Updated yesterday GPL-3.0

Install

View on GitHub

Quality Score: 77/100

Stars 20%
44
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# mermaid-render Convert Mermaid `.mmd` source files (or `.excalidraw` JSON files) to hand-drawn style PNGs. ## Browser surface The `.mmd → PNG` flow drives `excalidraw.com` via BYOB MCP (`mcp__byob__browser_*`) — the user's real Chrome. The `.excalidraw → PNG` flow does not touch a browser at all. The `.mmd` flow uses `mcp__byob__browser_eval` to extract scene JSON from `localStorage`. BYOB blocks `browser_eval` by default; set `BYOB_ALLOW_EVAL=1` before invoking BYOB if you need this flow. The gate is documented in [`docs/features/byob-browser-control.md`](../../../docs/features/byob-browser-control.md). ## Dependencies (install once) ```bash npm install -g @moona3k/excalidraw-export ``` This handles `.excalidraw` → PNG headlessly (pure Node, no browser, ~100ms/file, authentic roughjs hand-drawn aesthetic). ## Input types | Input | Pipeline | |-------|----------| | `.excalidraw` | Direct: `excalidraw-export` → PNG (fast, no browser) | | `.mmd` | Browser: excalidraw.com import → extract scene from localStorage → `excalidraw-export` → PNG | --- ## Workflow A: `.excalidraw` → PNG (no browser needed) ```bash excalidraw-export <file.excalidraw> -o <output.png> --scale 2 file <output.png> # verify: should show "PNG image data" ``` --- ## Workflow B: `.mmd` → PNG ### Step 1: Read and validate the Mermaid source ```bash cat <file.mmd> ``` **Before proceeding, check for diagram topologies that produce bad renders:** | Pattern | Problem | Fix | |---------|--------...

Details

Author
tomcounsell
Repository
tomcounsell/ai
Created
5 years ago
Last Updated
yesterday
Language
Python
License
GPL-3.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category