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

Mermaid Flow

Mohammed ThanseerMohammed Thanseer9k downloads

Create and edit Mermaid flowcharts visually by dragging nodes and drawing connections. No Mermaid syntax required.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates22
Mermaid Flow Logo

Mermaid Flow

A visual, drag-and-drop editor for Mermaid flowcharts inside Obsidian.

Build and rearrange diagrams by moving nodes and drawing connections — Mermaid Flow writes the underlying mermaid code for you, so no syntax knowledge is required.

Building a Mermaid flowchart visually in Obsidian

Your edits round-trip safely: Mermaid Flow reads your existing Mermaid blocks, lets you edit them visually, and writes them back — preserving YAML frontmatter, comments, accessibility titles, custom styles, and advanced directives without loss.


✨ Features

🎨 Visual Diagramming & Canvas

  • Full-Bleed Canvas Surface — Open, edge-to-edge canvas with an infinite grid background, smooth mouse panning, spacebar pan, trackpad gestures, and wheel navigation.
  • Marquee Selection (Rubber-Band) — Drag a box across the canvas background to multi-select nodes for batch styling, moving, or grouping.
  • Mobile Multi-Touch Gestures — Full support for touchscreens and mobile devices featuring two-finger panning and pinch-to-zoom with strict pointer isolation.
  • Dynamic Quick Actions — Instantly add a sequential "Step after", a perpendicular "Parallel sibling" from the same parent, or a two-way "Yes/No branch".
  • Auto-Layout & Smart Guides — Automatically arrange nodes with one click, or move nodes freely with dynamic visual alignment guides and optional grid snapping.
  • Auto-Hiding Floating Properties Panel — Choose between a docked sidebar or a floating panel overlay that automatically fades out while dragging elements.
  • Full-Width Responsive Toolbar — Multi-row flex-wrapping toolbar that adapts to narrow viewports with collision protection for pinned Save and Discard buttons.

🧩 Nodes, Shapes & Subgraphs

  • Diverse Node Shapes — Rectangles, rounded rectangles, stadiums, cylinders, diamonds, hexagons, parallelograms, circles, asymmetric subroutines, and more.
  • Semantic Style Presets — Instantly format nodes with draw.io-style semantic roles: Start, End, Process, Decision, and Data / IO.
  • Multi-Line Text Editing — Auto-expanding textareas with Shift+Enter for multi-line labels on nodes and edges, rendered via centered SVG <tspan> layout.
  • Rich Text Styling — Format labels using inline <b>, <i>, and <font color="..."> tags that render as styled text just like native Obsidian Mermaid previews.
  • Nested Subgraphs & Group Inheritance — Group nodes into subgraphs, manage parent-child subgraph hierarchies with cycle safety, and automatically inherit group membership when creating child or sibling nodes.
  • Custom ClassDef Management — Create, style, and assign reusable Mermaid classDef styles, with a dedicated delete button that safely cleans up class references across all nodes and groups.

🔗 Edge & Connection Controls

  • Edge Style Presets — One-click styling for links including Default, Dependency (Dashed), Emphasis (Thick), Muted, and Line (Undirected).
  • Arrow Types & Direction — Directed arrows (-->), open links (---), dotted links (-.->), thick links (==>), and one-click edge reversal.
  • Animated Links & Reconnection — Toggle animated flows or drag edge endpoints between nodes to quickly rewire workflows.

🤖 AI Flowchart Assistant (Optional)

  • Prompt-to-Diagram — Describe a workflow in natural language to generate a Mermaid flowchart instantly.
  • Broad Provider Support — Connect via OpenAI, Google Gemini, Anthropic Claude, Ollama (local), OpenRouter, or LM Studio.

🛠️ Workflow & Integration

  • Zero Syntax Knowledge Needed — Mermaid Flow generates clean, valid Mermaid code in the background as you draw.
  • Bidirectional Live Code View — Toggle the live raw Mermaid code view side-by-side; edits made to text immediately update the visual canvas and vice versa.
  • Flexible Workspace Modes — Edit in a full-featured Modal overlay, vertical split pane, or dedicated workspace tab.
  • Component Snippet Library — Save frequently used diagram fragments and subtrees into your vault's component library for easy insertion.
  • Persistent Layouts — Node positions are stored in clean, non-intrusive %% mermaid-flow:pos comments, so your custom layout survives reloads while remaining 100% readable by any standard Mermaid viewer.
  • Works Across All Modes — Launch the visual editor directly from Reading mode, Live Preview, or Source mode.

🎬 See it in Action

Edit an Existing Diagram

Click Edit on any rendered Mermaid block in Reading mode or Live Preview to rearrange it visually — your advanced syntax, comments, and YAML frontmatter are preserved on save.

Editing an existing Mermaid diagram visually in Obsidian

Generate with AI

Describe the process you want and let your configured AI provider draft the flowchart, then polish it on the canvas.

Generating a Mermaid flowchart with AI in Obsidian

🚀 Getting Started

Installation

  1. In Obsidian, go to Settings → Community plugins.
  2. Turn off Restricted mode (if enabled).
  3. Click Browse and search for Mermaid Flow.
  4. Click Install, then Enable.

You can also visit the Obsidian Community Plugin Directory page.

Quick Usage

  • Create a new diagram: Click the Mermaid Flow ribbon icon, or open the Command Palette (Ctrl/Cmd+P) and run Mermaid Flow: Insert visual Mermaid diagram.
  • Edit an existing diagram: Click the Edit action button in the top-right corner of any rendered Mermaid block, or position your cursor inside a mermaid code block and run Mermaid Flow: Edit Mermaid diagram visually.
  • Save your work: Click Save in the floating action pill to commit the diagram back to your note, or enable Auto-save in settings/pane view for continuous synchronization.

⌨️ Keyboard Shortcuts & Gestures

Shortcut / Gesture Action
Click + Drag (Canvas) Marquee selection (rubber-band box to select multiple nodes)
Two-Finger Drag (Touch) Pan canvas surface
Pinch / Spread (Touch) Pinch-to-zoom canvas
Shift + Click Toggle node in/out of multi-selection
Space + Click-Drag Pan canvas (desktop)
Middle-Click Drag Pan canvas
Mouse Wheel Zoom in / Zoom out
Double-Click Background Add a new node at the cursor position
Double-Click Node Quick in-place label editing
Shift + Enter Insert newline in label editor
Cmd / Ctrl + Z Undo
Cmd / Ctrl + Shift + Z (or Cmd + Y) Redo
Delete / Backspace Delete selected node, edge, or group

🔒 Safe Round-Trip Integrity

The parser and serializer strictly adhere to a "never drop a line" design invariant:

  • Mermaid v10.5+ YAML Frontmatter (--- ... ---) is kept at the top of the block with indentation preserved.
  • Contextual Comments (%%) remain anchored to the nodes, edges, or subgraphs they annotate.
  • Accessibility Metadata (accTitle and accDescr) round-trips natively.
  • Unsupported / Advanced Statements (such as custom click handlers, hyperlinked interactions, or complex directives) are safely held in internal buffers and re-emitted without corruption.

🗺️ Roadmap

Completed Milestones

  • Full visual drag-and-drop flowchart editor with freeform node positioning
  • Edge-to-edge full-bleed canvas with hidden scrollbars and open grid background
  • Multi-touch gestures for mobile/tablet (two-finger pan, pinch-to-zoom)
  • Marquee (rubber-band) drag-to-select for multi-node operations
  • Multi-line label editing with Shift+Enter and centered SVG multi-line rendering
  • Subgraph grouping with nested parent hierarchies and cycle prevention
  • Automatic subgraph inheritance for connected children and duplicated nodes
  • Reusable semantic node presets (Start, End, Process, Decision, Data / IO)
  • Reusable edge presets (Default, Dependency, Emphasis, Muted, Line)
  • Custom classDef creation, styling, and one-click deletion across diagrams
  • Safe round-tripping for YAML frontmatter, scoped comments, and advanced Mermaid syntax
  • Rich text formatting (<b>, <i>, <font color="...">) without innerHTML
  • AI flowchart generation and prompt-based refinement (HTTP APIs: OpenAI, Claude, Gemini, Ollama, OpenRouter, LM Studio)
  • Flexible editor layouts: Modal popup, Split pane, or New workspace tab
  • Component snippet library for saving and reusing diagram blocks

Up Next

  • Subgraph-to-node and subgraph-to-subgraph visual edge rendering on the canvas
  • Custom user-saved style presets for nodes and links
  • Configurable visual alignment guide thresholds and snap tolerances
  • Direct export to high-resolution PNG / SVG with transparent background options
  • Extended visual editing for Sequence diagrams, Mindmaps, and ER diagrams

☕ Support Development

If Mermaid Flow saves you time and enhances your Obsidian note-taking experience, consider supporting ongoing development:


🤝 Contributing

Contributions, bug reports, and suggestions are always welcome!

  • Check existing issues or open a new one on GitHub Issues.
  • See the Contribution Guide and Architecture Overview to set up the development environment.

📄 License

Licensed under the GNU General Public License v3.0.

HealthExcellent
ReviewSatisfactory
About
Edit Mermaid flowcharts visually inside Obsidian with a WYSIWYG drag-and-drop editor. Drag nodes and draw connections without writing Mermaid code, preserve manual layouts via hidden comments, and work in an embedded pane or modal with Live Preview and Reading Mode edit buttons.
VisualizationDrawingEditing
Details
Current version
1.10.1
Last updated
3 days ago
Created
5 months ago
Updates
22 releases
Downloads
9k
Compatible with
Obsidian 1.7.2+
Platforms
Desktop, Mobile
License
GPL-3.0
Report bugRequest featureReport plugin
Sponsor
GitHub Sponsors
Ko-fi
Author
Mohammed ThanseerMohammed Thanseerthanshi26
GitHubthansheer
  1. Community
  2. Plugins
  3. Visualization
  4. Mermaid Flow

Related plugins

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Mermaid Tools

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

tldraw

Integration with tldraw, allowing users to draw and edit content on a virtual whiteboard.

Kroki

Render Kroki diagrams.

Mermaid View

Handle Mermaid files as first-class citizens, rendering them fullscreen when opened.

Simple mind map

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

Advanced Canvas

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

ExcaliBrain

An interactive, structured mind-map of your Obsidian vault.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.