Skip to content
zaxovaikoPublic

About

A lightweight menubar Mermaid diagram renderer built with Tauri

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Mermlaid

Turn Mermaid your agents write into diagrams you can actually inspect.

Claude and Codex are great at generating Mermaid. Mermlaid is the focused Mac app that makes the result visible instantly: open it from the menu bar, paste the code, inspect the flow, then export it without leaving your work.

Download on the Mac App Store · Open the web editor · View source

The Mermlaid popover hanging from the macOS menubar, with the editor on top and the preview below

Download on the App Store

🧩 Make state diagrams readable

State diagrams are where generated Mermaid becomes most useful. Instead of reviewing a wall of transitions in a chat response, use Mermlaid to see every state, retry path, and terminal state at once.

stateDiagram-v2
  [*] --> Draft
  Draft --> Review: submit
  Review --> Approved: approve
  Review --> Draft: changes requested
  Approved --> [*]
Loading

Use it for approval flows, onboarding, async jobs, payments, and any system where the edge cases live in the transitions.

⚡ Features

  • Tray / menubar popover, summoned with Cmd/Ctrl+Shift+M
  • Live rendering as you type
  • CodeMirror 6 editor with Mermaid syntax highlighting and toggleable line wrapping
  • Pan and zoom the preview, fit to screen, reset zoom, fullscreen
  • Copy the diagram to the clipboard as a bitmap or as SVG text
  • Save as PNG, JPG or SVG at 1x / 2x / 3x scale
  • Expand the popover into a full window, carrying the current code across
  • Follows the system light/dark theme; code and settings persist between launches
  • Great for flowcharts, sequence diagrams, architecture maps, and state machines

⌘ Install

Install Mermlaid from the Mac App Store, or use the web editor for a quick diagram without installing anything.

Mermlaid is open source under the MIT License. Build from source below if you want to contribute or adapt it to your workflow.

🛠 Development

Prerequisites:

pnpm install
pnpm tauri dev      # run the app with hot reload
pnpm tauri build    # release bundle in src-tauri/target/release/bundle

Checks:

pnpm build                                                      # typecheck + frontend build
cargo fmt --manifest-path src-tauri/Cargo.toml --check
cargo clippy --manifest-path src-tauri/Cargo.toml -- -D warnings

🗂 Project layout

Path What lives there
index.html Single page shared by the popover and the main window
src/main.ts Wiring: toolbar, shortcuts, render pipeline, window events
src/editor.ts CodeMirror setup
src/mermaidLang.ts Mermaid syntax highlighting
src/render.ts Mermaid rendering and theming
src/panzoom.ts Preview pan/zoom
src/export.ts Rasterizing, clipboard copy, file export
src/store.ts Persisted settings
src-tauri/src/ Rust side: tray, global shortcut, window management, commands

🤝 Contributing

Bug reports, feature ideas and pull requests are welcome — see CONTRIBUTING.md and the Code of Conduct. Security issues: see SECURITY.md.

📄 License

MIT © zaxovaiko

About

A lightweight menubar Mermaid diagram renderer built with Tauri

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages