Render Mermaid diagrams to SVG or ASCII/Unicode with beautiful-mermaid (Node/Bun/Deno/browser, no DOM). Use when you need Mermaid render without DOM.
Mermaid code -> SVG or ASCII/Unicode. Themed output. TS-first.
pnpm add beautiful-mermaidrenderMermaid(code, opts?) -> Promise<string> (SVG)renderMermaidAscii(code, opts?) -> Promise<string> (ASCII/Unicode)fromShikiTheme(themeName) -> MermaidConfig["theme"]import { renderMermaid, renderMermaidAscii, fromShikiTheme } from "beautiful-mermaid";
const code = "flowchart LR\nA-->B";
const svg = await renderMermaid(code, {
theme: fromShikiTheme("catppuccin-mocha"),
backgroundColor: "#1e1e2e",
});
const ascii = await renderMermaidAscii(code, {
useUnicode: true,
maxWidth: 80,
});
theme: MermaidConfig["theme"]. Default "default".backgroundColor: string. Default "transparent".themeConfig: MermaidConfig["themeConfig"].mermaidConfig: MermaidConfig.svgOptimize: SvgoConfig or false.useUnicode: boolean. Default true.wrap: boolean. Default true.maxWidth: number. Default 80.bg: string. Default "#FFFFFF".fg: string. Default "#000000".default, forest, dark, neutral, base, ocean, dimmed, darkes, light, catppuccin-latte, catppuccin-frappe, catppuccin-macchiato, catppuccin-mocha, dracula, dracula-soft, one-dark-pro, material-dark, material-light, material-darker, material-palenight, material-ocean, material-lighter, tokyo-night, tokyo-night-storm, tokyo-night-light, github-light, github-dark, github-dark-dimmed
.svg or inline in HTML.Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer