Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Merlay

Ali HashemiAli Hashemi136 downloads

Visual overlay editor for Mermaid diagrams. Mermaid, your way.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates10

Merlay Logo

Merlay

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 Demo — visual diagram editing in Obsidian

Select → Sprout → Connect → Edit — all visual, all native Mermaid.


📊 4 Supported Diagram Types

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.


⚡ Quick Start (In 10 Seconds)

  1. Open Visual Mode:
    • Hover over any mermaid code block in your note (Reading View or Live Preview) and click the "Visual Mode" button next to Edit this block.
    • Or simply type /flowchart, /state, /sequence, or /mindmap anywhere in your note.
  2. Edit Visually:
    • Click a node or topic to select it and click + Next Step or + Subtopic to sprout a connected child.
    • Double-click any node to edit its label inline.
    • Drag from a handle to connect or reparent.
    • Click an edge or transition to edit labels, change arrow styles, or delete.
  3. Save Automatically:
    • Close the editor when you're done — your note's Mermaid block is updated automatically in real time.

✨ Features

  • 🎯 Native Obsidian Integration:
    • Appears seamlessly on hover alongside Obsidian's native block controls in both Reading View and Live Preview.
    • Matches your active Obsidian theme (dark and light mode).
    • Opens in a clean, focused visual overlay modal with full touch and mobile support.
  • 🎨 Universal Diagram Themes (Zero Lock-In):
    • Switch between Auto (System), Default, Neutral, Forest, Dark, and Base themes across all diagram types.
    • Emits 100% standard Mermaid YAML frontmatter (--- config: { theme: ... } ---).
  • ⚡ Relational Sprouting (+ Next Step / + Subtopic):
    • Select any node to reveal the directional sprout button (oriented to your flow or hierarchy). Spawns a downstream connected step or subtopic in one click.
  • 🔗 Drag-to-Connect & Reparent:
    • Hover any node to grab an anchor handle; drag and release onto any other step to create a new connection or reparent tree branches.
  • ✏️ Inline Label Editing:
    • Double-click any node or topic to rename it directly on the canvas.
    • Click any arrow to open the floating Edge HUD for editing edge labels or removing connections.
  • 💻 Live Syntax Drawer:
    • Slide out the live syntax panel at any time to inspect, edit, or copy the underlying Mermaid source code.
  • 📂 Standalone File Editor:
    • Create and edit standalone .mmd and .mermaid diagram files directly from Obsidian's File Explorer.
  • 🤖 Zero Lock-In & AI-Friendly:
    • Generates pristine, human-readable Mermaid syntax without comment hacks (%% mv: ... %%). Fully compatible with LLMs, git diffs, and other Markdown tools.

🎯 How to Use

1. In Your Notes

  • Slash Commands (/): Type /flowchart, /state, /sequence, or /mindmap to insert a diagram template and immediately launch Visual Mode.
  • Hover Button: Hover over any Mermaid diagram in your note and click "Visual Mode".
  • Right-Click Menu: Right-click anywhere in your note editor → Insert Mermaid Diagram, or right-click inside an existing Mermaid code block → Edit Diagram in Visual Mode.

2. Standalone .mmd Files

  • File Explorer: Right-click any folder in the Obsidian File Explorer → New Mermaid Diagram.
  • Ribbon Icon: Click the Merlay icon in the left ribbon sidebar.
  • Command Palette (Ctrl/Cmd + P): Run Merlay: Create New Mermaid Diagram (File).

⌨️ Interaction Cheat Sheet

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

💡 Why Merlay? (Structural, Not Spatial)

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:

  • 1:1 Native Parity: Controls are overlaid directly on Obsidian's exact Mermaid SVG rendering — what you see is what you get.
  • Topological Operations: You manipulate relationships (nodes and connections), and Mermaid handles clean layout automatically.
  • Ultra-Lean Footprint: Zero heavy canvas framework dependencies. Bundled at just ~170 KB.

🚀 Installation

Via BRAT (Beta Testing)

  1. Install the Obsidian BRAT plugin.
  2. Open BRAT settings → click "Add Beta plugin".
  3. Enter: https://github.com/dev-hashemi/merlay
  4. Click "Add Plugin".

Manual Installation

  1. Download main.js, manifest.json, and styles.css from the latest GitHub Release.
  2. Copy them into your vault folder under .obsidian/plugins/merlay/.
  3. In Obsidian, open Settings → Community plugins and toggle on Merlay.

🛠️ Development

# Install dependencies
npm install

# Build production bundle
npm run build

# Run unit tests
npm test

Architecture & Contributing

  • Architecture Guide: Design philosophy, module map, and engineering rules.
  • Adding a New Diagram Type: 5-phase procedure for extending diagram driver support.

📄 License

MIT License © 2026 Seyed Ali Hashemi

HealthExcellent
ReviewCaution
About
Edit Mermaid diagrams visually inside Obsidian using a focused overlay editor. Create flowcharts with single-click node sprouting, drag-and-drop connections, inline renaming, and automatic saving to clean, standard Mermaid syntax compatible with mobile, GitHub, and AI assistants.
DrawingVisualizationCanvas
Details
Current version
0.4.0
Last updated
18 hours ago
Created
Last month
Updates
10 releases
Downloads
136
Compatible with
Obsidian 1.4.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
Ali HashemiAli Hashemidev-hashemi
GitHubdev-hashemi
  1. Community
  2. Plugins
  3. Drawing
  4. Merlay

Related plugins

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Kroki

Render Kroki diagrams.

Simple mind map

A mind map that combines aesthetics and functionality. 一个颜值与功能并存的思维导图。

Draw in Canvas

Draw freehand annotations on Obsidian JSON Canvas files.

draw.io

Create and edit diagrams with draw.io (diagrams.net), locally and offline.

D2

A modern diagram scripting language that turns text to diagrams.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

Maps

Adds a map layout to bases so you can display notes as an interactive map view.