Drawn by AppKit
Every node is a real view, not a div pretending to be one. Scrolling stays smooth because there is no document to reflow.
- AppKit
- NSView
- CoreGraphics
Write Mermaid in the source pane, drag and restyle nodes on the canvas — the source follows. Export as PNG, SVG or PDF.






01
flowchart TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[Car]
style C color:#ffffff,fill:#F4431E01
Add a node, connect two, drag an edge, paste. What the canvas writes is standard Mermaid — not a sidecar file, not a private format.
02
Fill, stroke, text colour, width and opacity become ordinary style rules, and the inspector says where the style came from.
03
Consecutive property edits merge into one text undo. ⌥⌘I tidies the document without touching comments or statement order.
02
Most Mermaid tooling is a browser wearing a desktop costume.
Every node is a real view, not a div pretending to be one. Scrolling stays smooth because there is no document to reflow.
Geometry comes from a dedicated layout engine, not a web view. Mernyx is not dependency-free — it is just not a browser.
Open any .mmd or .mermaid file from Finder. Preview it in place with Quick Look, and see thumbnails without launching it.
03
Each family has its own syntax-highlighting keyword table, its own layout, and its own editing rules.
Flowchart
Sequence diagram
Class diagram
State diagram
ER diagram
Mindmap
Architecture diagram
Requirement diagram
Block diagram
Swimlane diagram
Agent flow diagram
Use case diagram
Pie chart
Gantt chart
Quadrant chart
Radar chart
Treemap
Kanban diagram
Packet diagram
Info diagram
Timeline
Sankey diagram
User journey
Venn diagram
C4 diagram
Cynefin diagram
Git graph
XY chart
Wardley map
Railroad diagram
ZenUML diagram
Event modeling diagram
Ishikawa diagram
Tree view
Coverage means every family has a template that compiles to a non-empty scene. It does not mean every syntax and visual detail is finished.
04
Mermaid spells an icon as fa:fa-user — GitHub’s Mermaid renderer draws those letters instead of the icon.
flowchart LR
A([fa:fa-user User]) --> B([fa:fa-server Server])
B --> C([fa:fa-database Database])Font Awesome Free 7.3.1 ships inside Mernyx — 2,163 icons in the solid, regular and brands styles. Nothing to install: the glyphs are in the binary, and the file you export does not need them.
The icon goes into the SVG as a path, not as a font name. Open that file with no Font Awesome Free installed and the icon is still there, scaling with the drawing.
A node can be the icon itself: @{ icon: "fa:user" } draws a frame around the glyph with the label on a band outside it.
05
Both run on your own endpoint and your own key. The model only ever writes Mermaid source — Mernyx still compiles, lays out and draws it, and nothing reaches your file until you approve it.
Type into the bar at the bottom of the canvas. The source streams into the editor and the canvas draws it as it arrives, so you can read every line before it lands. If it does not parse, the model tries again.
When the source does not parse, the diagnostics bar offers Fix with AI. The file and its diagnostics go to your model, and the result comes back as a line diff first. Apply appears only when the error count went down — the engine decides, not the model.
Any OpenAI-compatible endpoint — OpenAI, OpenRouter, DeepSeek, Groq, or a local model via Ollama or LM Studio. The key sits in your macOS keychain; no account, no server in between.
The model returns Mermaid source and nothing else. Layout, colours and shapes are still Mernyx’s, so a generated diagram is drawn by the same renderer as one you drew by hand.
Both paths end in Apply or Discard. Discard never touches the document and never enters the undo stack; Apply replaces it in one step you can undo with ⌘Z.
PNG, SVG and PDF, all produced from the same Scene. A few primitives still come out slightly differently in the raster exports.
⌥⌘I normalises whitespace and flowchart indentation, without touching tokens, comments or statement order.
The canvas highlights the node your caret is on, scrolling only if it is off-screen. Toggle in Settings › Canvas › Linkage.
Preview .mmd and .mermaid files straight in Finder, with scroll-zoom, drag-pan and system light/dark.
14 scenario samples, plus a starting skeleton for every one of the 34 families, in 5 searchable categories.
Menu items enable per family and per selection, and the shortcuts and the menu share one binding table.
Each family merges its own keyword table with engine facts, so a diagnostic with a location is marked as a source range.
Off by default, and it never affects exported output.
Mermaid's language is documented across dozens of families. The cheat sheet covers the core ones.
flowchart LR
A[Start] --> B[Middle] --> C[End]Direction · The first line picks the flow: TD and TB are the same, LR and RL run sideways.
Open the cheat sheetEvery diagram on the cheat sheet is drawn by Mernyx itself — the same native renderer the app uses for its canvas.
The cheat sheet's index
Mernyx is a single native window: source on the left, a real vector canvas in the middle, properties on the right.