Ali Hashemi136 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.
Select → Sprout → Connect → Edit — all visual, all native Mermaid.
Merlay provides dedicated visual drivers tailored to each diagram family:
| Diagram Type | Visual Capabilities | Syntax Header |
|---|---|---|
| Flowchart | Sprout steps, drag-connect, 10 node shapes, arrow types, subgraphs/groups, flow direction | flowchart TD, graph LR |
| State Diagram | States, choices <<choice>>, forks/joins, composite states, start/end anchors [*], transitions |
stateDiagram-v2 |
| Sequence Diagram | Participants & actors, message connections, grouping boxes, autonumber | sequenceDiagram |
| Mindmap | Central topic root, subtopic sprouting (+ Subtopic), drag-to-reparent, shapes, icons |
mindmap |
All other diagram types open in high-performance view-only mode with pan, zoom, and SVG element inspection.
mermaid code block in your note (Reading View or Live Preview) and click the "Visual Mode" button next to Edit this block./flowchart, /state, /sequence, or /mindmap anywhere in your note.+ Next Step or + Subtopic to sprout a connected child.--- config: { theme: ... } ---).+ Next Step / + Subtopic):.mmd and .mermaid diagram files directly from Obsidian's File Explorer.%% mv: ... %%). Fully compatible with LLMs, git diffs, and other Markdown tools./): Type /flowchart, /state, /sequence, or /mindmap to insert a diagram template and immediately launch Visual Mode..mmd FilesCtrl/Cmd + P): Run Merlay: Create New Mermaid Diagram (File).| Action | Shortcut / Gesture |
|---|---|
| Select Node / Topic | Click node |
| Sprout Child Step / Subtopic | Click + Next Step or + Subtopic on selected item |
| Connect / Reparent | Drag from node handle onto target node |
| Edit Label | Double-Click node or topic |
| Edit Edge Label / Style | Click edge arrow or connection |
| Delete Element | Select item and press Delete or Backspace |
| Change Diagram Theme | Click Theme dropdown in top controls bar |
| Pan Canvas | Click + Drag canvas background (or hold Space) |
| Zoom | Mouse Wheel or trackpad pinch |
| Toggle Syntax Drawer | Click <> Syntax button in top bar |
Mermaid is a declarative, code-first diagramming language that computes its own layout. Traditional visual diagramming tools often attempt to impose arbitrary spatial coordinates (like React Flow or Excalidraw), leading to broken round-trips, messy syntax, and layout drift.
Merlay takes a different approach:
https://github.com/dev-hashemi/merlaymain.js, manifest.json, and styles.css from the latest GitHub Release..obsidian/plugins/merlay/.# Install dependencies
npm install
# Build production bundle
npm run build
# Run unit tests
npm test
MIT License © 2026 Seyed Ali Hashemi