AionUi mermaid
Render Mermaid diagrams as SVG or ASCII art using beautiful-mermaid. Use when users need to create flowcharts, sequence diagrams, state diagrams, class diagrams, or ER diagrams. Supports both graphical SVG output and terminal-friendly ASCII/Unicode output.
install
source · Clone the upstream repo
git clone https://github.com/iOfficeAI/AionUi
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/iOfficeAI/AionUi "$T" && mkdir -p ~/.claude/skills && cp -r "$T/src/process/resources/skills/mermaid" ~/.claude/skills/iofficeai-aionui-mermaid && rm -rf "$T"
manifest:
src/process/resources/skills/mermaid/SKILL.mdsource content
Mermaid Diagram Renderer
Render Mermaid diagrams using
beautiful-mermaid library. Supports 5 diagram types with dual output modes.
Quick Start
Dependencies (
) auto-install on first run.beautiful-mermaid
SVG Output (Default)
# From file npx tsx scripts/render.ts diagram.mmd --output diagram.svg # From stdin echo "graph LR; A-->B-->C" | npx tsx scripts/render.ts --stdin --output flow.svg
ASCII Output (Terminal)
# ASCII art for terminal display npx tsx scripts/render.ts diagram.mmd --ascii # Pipe directly echo "graph TD; Start-->End" | npx tsx scripts/render.ts --stdin --ascii
Output example:
┌───────┐ ┌─────┐ │ Start │────▶│ End │ └───────┘ └─────┘
Supported Diagrams
| Type | Syntax | Best For |
|---|---|---|
| Flowchart | | Processes, decisions |
| Sequence | | API calls, interactions |
| State | | State machines |
| Class | | OOP design |
| ER | | Database schemas |
Theming (SVG only)
npx tsx scripts/render.ts diagram.mmd --theme github-dark --output out.svg
Use invalid theme name to see available themes list (e.g.,
--theme ?)
Resources
- Main rendering scriptscripts/render.ts
- Mermaid syntax quick referencereferences/syntax.md