A beautiful, fast, and responsive live editor for Mermaid.js diagrams, designed with a modern Material You (Material Design 3) aesthetic.
- Live Preview: See your diagrams update in real-time as you type.
- Ready-to-use Templates: Quick-start with templates for Flowcharts, Sequence diagrams, ER diagrams, Gantt charts, and more.
- Export Options: Instantly copy your diagram to the clipboard, or download it as an
SVGor high-resolutionPNG. - Zoom Controls: Easily zoom in, zoom out, or reset the diagram view.
- Auto-Save: Your code is automatically saved to your browser's local storage so you never lose your work.
- Mobile Friendly: Seamlessly switch between the editor and preview on smaller screens.
- Syntax Error Handling: Clear, user-friendly error messages if your Mermaid syntax breaks.
This project requires zero build steps or dependencies to install.
- Download or clone this repository.
- Open the
index.htmlfile in any modern web browser. - Start typing Mermaid syntax in the editor!
Ctrl + S/Cmd + S: Trigger manual save (shows confirmation toast)Ctrl + Shift + C/Cmd + Shift + C: Copy SVG to clipboardTab: Indent code automatically inside the editor
Built as a single-file application using:
- HTML/CSS/Vanilla JavaScript
- Tailwind CSS (via CDN) for styling
- Mermaid.js (via CDN) for diagram rendering
- Google Fonts (Roboto & Material Symbols) for typography and icons