A beautiful, modern Mermaid diagram editor — write, preview, and share diagrams instantly.
Features • Getting Started • Tech Stack • Usage • License
- ✏️ Monaco Editor — Full-featured code editor with Mermaid syntax highlighting, line numbers, and auto-completion
- 🔄 Live Preview — Real-time diagram rendering as you type, with smooth crossfade transitions
- 🔍 Pan & Zoom — Navigate large diagrams with intuitive pan and zoom controls
- 🎨 Themes — Multiple diagram themes (Default, Dark, Forest, Neutral) with a sleek dark editor
- 📤 Export — Download diagrams as PNG or SVG, or copy directly to clipboard
- 🔗 Share & Embed — Generate shareable links with compressed diagram state, or embed via
<iframe> - 🏷️ Tags & Metadata — Add a title, subtitle, and category tags to your diagrams
- ⚙️ Settings Panel — Customize themes and tags from a clean settings UI
- 💾 Auto-Save — Diagram state persists in
localStorage— never lose your work
- Node.js v18+
- npm (comes with Node.js)
# Clone the repository
git clone https://github.com/your-username/Graphlet.xyz.git
cd Graphlet.xyz
# Install dependencies
npm install
# Start the dev server
npm run devThe app will be running at http://localhost:3000.
npm run build
npm run preview| Layer | Technology |
|---|---|
| Framework | Nuxt 4 (SPA mode) |
| UI | Vue 3 + Composition API |
| Editor | Monaco Editor |
| Diagrams | Mermaid.js |
| Pan/Zoom | Panzoom |
| Icons | Lucide |
| Sharing | Pako (compression) |
| Fonts | Plus Jakarta Sans, Syne, DM Mono |
- Write — Type Mermaid syntax in the left-hand editor panel
- Preview — Watch your diagram render in real-time on the right
- Customize — Click the ⚙️ settings icon to change themes and add tags
- Export — Use the toolbar buttons to copy, download (PNG/SVG), or share your diagram
- Share — Click "Share" to generate a link or embeddable
<iframe>code
Graphlet supports all Mermaid diagram types including:
- Flowcharts
- Sequence Diagrams
- Class Diagrams
- State Diagrams
- Entity Relationship Diagrams
- Gantt Charts
- Pie Charts
- Git Graphs
- and more…
Graphlet.xyz/
├── components/
│ ├── TheEditor.vue # Monaco-based code editor
│ ├── ThePreview.vue # Live diagram preview with pan/zoom
│ ├── TheToolbar.vue # Top toolbar (logo, export, share)
│ ├── TheSettings.vue # Theme & tag settings panel
│ └── TheShareModal.vue # Share link & embed modal
├── composables/
│ ├── useEditorState.ts # Editor & diagram state management
│ └── useShareState.ts # Share/embed URL generation
├── pages/
│ ├── index.vue # Main editor page
│ └── embed.vue # Embeddable diagram view
├── assets/css/
│ └── main.css # Global styles & design tokens
└── nuxt.config.ts # Nuxt configuration
MIT
Built with ☕ and Mermaid.js
