Skip to content
Projets

À 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 applicatif

Comment ces chiffres sont mesurés

What 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

Original

Modern Mermaid Banner

Live Demo Discord License React Mermaid

A modern, powerful, and beautiful Mermaid.js diagram editor and previewer

English | 简体中文 | 日本語 | Español | Português

🎯 Features • 🚀 Quick Start • 📖 Documentation • 🤝 Contributing

Modern Mermaid - Online flowchart & diagram editor | Product Hunt


Live Experience: https://modern-mermaid.live/

merphis

(back to top)

✨ 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

Main Interface

Themes


brutalist
Brutalist
cyberpunk
Cyberpunk
ghibli
Ghibli
merphis
Merphis
spotless
Spotless
handdrawn
HandDrawn

(back to top)

🚀 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

(back to top)

📖 Documentation

Basic Usage

  1. Enter Mermaid Code: Type your Mermaid diagram code in the left editor panel
  2. See Live Preview: The diagram renders in real-time on the right
  3. Customize: Choose themes, backgrounds, and fonts from the toolbar
  4. Annotate: Use annotation tools to highlight important parts
  5. 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.


(back to top)

🤝 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

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Code Style

  • Follow the existing code style
  • Run pnpm lint before 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


📞 Contact & Support


Made with ❤️ by the Modern Mermaid Team

⬆ Back to Top

Explorer des projets similaires

Chargement…