gotoailab/modern_mermaid
À propos
Un éditeur Mermaid.js moderne et élégant, avec aperçu en direct, plusieurs thèmes et export de haute qualité. Idéal pour les développeurs, les designers et les chefs de produit.
Développement web et applicatifWhat you can do
- Live Preview: Real-time rendering as you type
- Auto-scaling: Diagrams automatically scale to fit the viewport
- Zoom & Pan: Smooth zoom and pan controls with mouse/trackpad
- Fullscreen Mode: Distraction-free editing experience
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalA modern, powerful, and beautiful Mermaid.js diagram editor and previewer
English | 简体中文 | 日本語 | Español | Português
🎯 Features • 🚀 Quick Start • 📖 Documentation • 🤝 Contributing
Live Experience: https://modern-mermaid.live/
✨ Features
🎨 Professional Themes
- 10+ Beautiful Themes: Linear Light/Dark, Industrial, Hand Drawn, Studio Ghibli, Retro, and more
- Custom Backgrounds: Gradient, solid colors, and patterns
- Font Selection: Multiple professional fonts including Fira Code, JetBrains Mono, and more
- Dark Mode: Full dark mode support with automatic theme switching
⚡ Powerful Editor
- Syntax Highlighting: Real-time Mermaid syntax highlighting with color-coded keywords
- Line Numbers: Clear line numbering for easy reference
- Auto-completion: Smart suggestions for Mermaid syntax
- Resizable Panels: Adjustable editor and preview pane sizes
🖼️ Advanced Export
- High-Quality Export: Export diagrams in PNG (transparent) or JPG (with background)
- Clipboard Copy: One-click copy diagrams to clipboard with/without background
- Custom Resolution: Export at 3x resolution for crystal-clear images
- Batch Export: Export multiple diagrams at once
🎯 Annotation Tools
- Drawing Tools: Arrows, rectangles, circles, lines, and text annotations
- Color Customization: Customize annotation colors to match your theme
- Multi-language Support: Interface available in 6 languages
🔧 Interactive Features
- Live Preview: Real-time rendering as you type
- Auto-scaling: Diagrams automatically scale to fit the viewport
- Zoom & Pan: Smooth zoom and pan controls with mouse/trackpad
- Fullscreen Mode: Distraction-free editing experience
- Node Coloring: Right-click on nodes to change colors
📊 Supported Diagram Types
- Flowcharts & Flow Diagrams
- Sequence Diagrams
- Class Diagrams
- State Diagrams
- Entity Relationship Diagrams
- User Journey Diagrams
- Gantt Charts
- Pie Charts
- Git Graphs
- Mindmaps
- Timeline Diagrams
- Quadrant Charts
- XY Charts
- And more!
🖼️ Screenshots
Click to expand screenshots
Main Interface

Themes
![]() Brutalist |
![]() Cyberpunk |
![]() Ghibli |
![]() Merphis |
![]() Spotless |
![]() HandDrawn |
🚀 Quick Start
Prerequisites
- Node.js 20.19+ or 22.12+
- npm, pnpm, or yarn
Installation
# Clone the repository
git clone https://github.com/gotoailab/modern_mermaid.git
cd modern_mermaid
# Install dependencies (using pnpm recommended)
pnpm install
# Or using npm
npm install
# Or using yarn
yarn install
Development
# Start development server
pnpm dev
# The app will be available at http://localhost:5173
Production Build
# Build for web production
pnpm build
# Preview production build
pnpm preview
Browser Extension
# Build as a Chrome Extension
pnpm build:extension
# The extension will be built in the dist-extension directory
🛠️ Tech Stack
| Technology | Version | Purpose |
|---|---|---|
| React | 19.2 | UI Framework |
| TypeScript | 5.9 | Type Safety |
| Vite | 7.2 | Build Tool |
| Tailwind CSS | 4.1 | Styling |
| Mermaid.js | 11.12 | Diagram Rendering |
| Lucide React | 0.554 | Icons |
| html-to-image | 1.11 | Image Export |
📖 Documentation
Basic Usage
- Enter Mermaid Code: Type your Mermaid diagram code in the left editor panel
- See Live Preview: The diagram renders in real-time on the right
- Customize: Choose themes, backgrounds, and fonts from the toolbar
- Annotate: Use annotation tools to highlight important parts
- Export: Download or copy your diagram in your preferred format
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl/Cmd + S |
Download diagram |
Ctrl/Cmd + C |
Copy to clipboard |
Ctrl/Cmd + Z |
Undo |
Ctrl/Cmd + Y |
Redo |
Esc |
Exit fullscreen |
Example Diagrams
graph TD
A[Start] --> B{Is it working?}
B -- Yes --> C[Great!]
B -- No --> D[Debug]
D --> A
More examples available in the examples directory.
🤝 Contributing
We love contributions! Here's how you can help:
Ways to Contribute
- 🐛 Report Bugs: Open an issue describing the bug
- 💡 Suggest Features: Share your ideas for new features
- 📝 Improve Documentation: Help us improve our docs
- 🌍 Translations: Add support for more languages
- 💻 Code Contributions: Submit pull requests
Development Process
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Code Style
- Follow the existing code style
- Run
pnpm lintbefore committing - Write meaningful commit messages
- Add tests for new features
🌟 Star History
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Mermaid.js - Amazing diagram library
- React - UI framework
- Tailwind CSS - Styling framework
- Vite - Build tool
- All our contributors
📞 Contact & Support
- 🌐 Website: modern-mermaid.live
- 💬 Discord: Join our community
- 🐛 Issues: GitHub Issues
- 📧 Email: [email protected]
- 𝕏 𝕏(Twitter): @chg80333
Made with ❤️ by the Modern Mermaid Team
Explorer des projets similaires
Chargement…




