Complete Guide

Mermaid.jsDocumentation

Master the art of creating beautiful diagrams with Mermaid.js. From basic flowcharts to complex system architectures, learn everything you need to know with practical examples and best practices.

Quick Start Guide

Get started with Mermaid.js in 4 simple steps

1
Basic Syntax
Learn the fundamental syntax rules for Mermaid diagrams
2
Choose Diagram Type
Select the appropriate diagram type for your use case
3
Add Content
Define nodes, connections, and styling
4
Customize
Apply themes, colors, and advanced formatting

Diagram Types

Explore comprehensive guides for each diagram type with syntax examples and use cases

Why Use Mermaid.js?

Discover the benefits of using Mermaid.js for your documentation and diagramming needs

Text-Based
Write diagrams using simple text syntax. Version control friendly and easy to maintain.
Collaborative
Share diagrams easily with your team. Perfect for documentation and presentations.
Versatile
Multiple diagram types for different use cases. From simple flowcharts to complex architectures.

Ready to Start Creating?

Put your knowledge to practice with our interactive playground or start building your own diagrams.