Create, visualize, and export diagrams using Mermaid.js
Create process diagrams with decision points, connections, and custom styling.
Visualize interaction sequences between different components or actors.
Plan and track project timelines, milestones, and task dependencies.
Support for flowcharts, sequence diagrams, class diagrams, entity-relationship diagrams, state diagrams, and Gantt charts.
Download diagrams as PNG images or copy as SVG for embedding in documents and presentations.
Use our API to programmatically generate diagrams for integration with your applications.
Integrate Mermaid diagrams into your applications using our simple API:
Renders a Mermaid diagram to the specified format.
curl -X POST http://localhost:5000/api/render \
-H "Content-Type: application/json" \
-d '{
"code": "graph TD;\n A-->B;\n A-->C;\n B-->D;\n C-->D;",
"format": "svg"
}'
code (required): The Mermaid diagram code to renderformat (optional): Output format - "svg" (default) or "png"Returns the rendered diagram in the specified format with appropriate content type headers.