Ali Hashemi2k downloadsVisual overlay editor for Mermaid diagrams. Mermaid, your way.
Mermaid, your way.
A visual overlay editor for Mermaid diagrams in Obsidian.
Merlay lets you create and edit Mermaid diagrams visually directly inside your Obsidian notes. Build Flowcharts, State Diagrams, Sequence Diagrams, and Mindmaps with single-click relational sprouting, drag-and-drop connections, and inline renaming — without writing code or fighting diagram syntax.
Everything you create is saved as 100% standard, clean Mermaid syntax right inside your note. No proprietary lock-in, no layout drift, and fully compatible with Obsidian mobile, GitHub, and AI assistants.
Merlay is also available for VS Code and its forks (Devin, Cursor, VSCodium) on the VS Code Marketplace and Open VSX — same visual editor, same core.
Select → Sprout → Connect → Edit — all visual, all native Mermaid.
Merlay provides interactive visual editing for 4 major Mermaid diagram types:
flowchart, graph)stateDiagram-v2)sequenceDiagram)mindmap)All other diagram types open in a high-performance view mode with smooth pan and zoom.
/flowchart, /state, etc.)..mmd and .mermaid diagram files directly from the file explorer./flowchart, /state, /sequence, or /mindmap).| Action | Shortcut / Gesture |
|---|---|
| Select | Click element |
| Sprout Child | Click + handle on selected element |
| Connect | Drag from handle to target element |
| Edit Text | Double-Click element or connection label |
| Delete | Delete or Backspace |
| Pan | Click + Drag canvas background (or hold Space) |
| Zoom | Mouse Wheel or pinch trackpad |
| Toggle Syntax Drawer | Click <> Syntax button |
Mermaid is a declarative, code-first diagramming language that computes its own layout. Traditional visual editors often attempt to impose arbitrary spatial coordinates onto diagrams, leading to broken round-trips, syntax corruption, and layout drift.
Merlay takes a structural approach:
Install directly inside Obsidian:
(Or view on the Obsidian Community Directory).
Install directly from:
(Or search Merlay in your editor's Extensions view).
npm install # Install dependencies
npm test # Run tests
npm run build # Build production bundles
cp .env.example .env # once: point MERLAY_VAULT_DIR at your vault
npm run install:obsidian # build + install into your Obsidian vault (then Ctrl+R)
npm run install:vscode # build + package + install into VS Code (then reload window)
For architecture details, see ARCHITECTURE.md.
If Merlay saves you time, consider starring the repo — it helps others discover it.
MIT License © 2026 Seyed Ali Hashemi