mermaidGenerate and render diagrams from Mermaid syntax into PNG, SVG, or PDF using customizable themes and various diagram types.
Install via ClawdBot CLI:
clawdbot install jarekbird/mermaidGenerate diagrams from text using Mermaid.
@mermaid-js/mermaid-cli (npm install -g @mermaid-js/mermaid-cli).mmd filemmdc to render PNG/SVGmmdc -i input.mmd -o output.png -t dark -b transparent
| Flag | Description |
|---|---|
| -i | Input .mmd file |
| -o | Output file (.png, .svg, .pdf) |
| -t | Theme: default, dark, forest, neutral |
| -b | Background color (transparent, hex) |
| -w | Width in pixels (default: 800) |
| -H | Height in pixels |
| -s | Scale factor (default: 1, use 2-3 for high-res) |
| -c | Config JSON file for advanced theming |
graph TD / graph LRsequenceDiagramclassDiagramstateDiagram-v2erDiagramganttpiemindmaptimelinegitGraphquadrantChartblock-beta.mmd file to /tmp/mermaid-.mmd mmdc -i /tmp/mermaid-.mmd -o /tmp/mermaid-.png -t dark -b transparent -s 2 Read toolgraph TD
A[Client] -->|HTTPS| B[API Gateway]
B --> C[Auth Service]
B --> D[App Server]
D --> E[(PostgreSQL)]
D --> F[(Redis Cache)]
sequenceDiagram
participant U as User
participant A as API
participant DB as Database
U->>A: POST /login
A->>DB: Validate credentials
DB-->>A: User record
A-->>U: JWT token
graph LR for left-to-right flow, graph TD for top-down-t dark -b transparent-s 2 or -s 3 for sharp images on retina displayspty: false when calling mmdcFor custom colors, create a config JSON:
{
"theme": "base",
"themeVariables": {
"primaryColor": "#f59e0b",
"primaryTextColor": "#1a1a1a",
"primaryBorderColor": "#d97706",
"lineColor": "#6b7280",
"secondaryColor": "#10b981",
"tertiaryColor": "#3b82f6"
}
}
Then: mmdc -i input.mmd -o output.png -c config.json
Generated Mar 1, 2026
Developers and architects can generate visual diagrams of system components, data flows, and interactions to document software designs. This aids in onboarding new team members and maintaining clear technical specifications across projects.
Business analysts can create flowcharts to map out workflows, decision trees, and operational processes. This helps in identifying inefficiencies, training staff, and improving organizational clarity in sectors like finance or healthcare.
Educators and trainers can produce diagrams for teaching materials, such as sequence diagrams for algorithms or mind maps for lesson plans. This enhances learning by visualizing complex concepts in subjects like computer science or engineering.
Project managers can generate Gantt charts to outline timelines, dependencies, and milestones for projects. This supports scheduling, resource allocation, and progress tracking in industries like construction or IT services.
Database administrators can create entity-relationship diagrams to model database schemas and relationships. This assists in planning, documenting, and communicating database structures during development or migration phases.
Offer a free tier for basic diagram generation with limited themes and exports, while charging for premium features like advanced theming, high-resolution outputs, and team collaboration tools. Revenue comes from monthly subscriptions and enterprise licenses.
Provide paid services to help businesses integrate Mermaid diagrams into their workflows, including custom theme development, automation scripts, and training workshops. Revenue is generated through project-based fees and ongoing support contracts.
License the diagram generation capability as an API for other software applications, such as documentation tools or project management platforms. Revenue streams include API usage fees, per-diagram charges, and white-label licensing for large clients.
💬 Integration Tip
Always use pty: false when calling mmdc to avoid terminal issues, and automate cleanup of temporary files to maintain system efficiency.
Display and control HTML content on connected Mac, iOS, or Android nodes via a web-based canvas with live reload and remote actions.
生成和编辑各种类型的图表(drawio、mermaid、excalidraw)。支持流程图、时序图、类图、ER图、思维导图、架构图、网络拓扑图等常见图表类型。能够根据自然语言描述创建新图表,也能读取并修改已有的 drawio/mermaid/excalidraw 文件。使用独立的 MCP server (mcp-diagram-generator) 生成图表文件,减少 token 消耗并保证输出一致性。支持自动配置管理,默认输出路径为项目目录下的 diagrams/{format}/,支持自定义路径和自动创建目录。
Create, export, and manage Canva designs via the Connect API. Generate social posts, carousels, and graphics programmatically.
Create software diagrams using Mermaid syntax. Use when users need to create, visualize, or document software through diagrams including class diagrams, sequence diagrams, flowcharts, ERDs, C4 architecture diagrams, state diagrams, git graphs, and other diagram types. Triggers include requests to diagram, visualize, model, map out, or show the flow of a system.
Generate diagrams from descriptions with Mermaid, PlantUML, or ASCII for architecture, flows, sequences, and data models.
Generate beautiful, hand-drawn Mermaid diagrams with robust syntax (quoted labels, ELK layout). Use this skill when the user asks for "diagram", "flowchart", "sequence diagram", or "visualize this process".