Mermaid ER diagrams for the Mac
Type it or draw it.
It’s still Mermaid.
Twofold is a native Mac editor for entity-relationship diagrams. Edit the text or the canvas and both stay in sync. The file stays plain Mermaid, so it renders on GitHub, GitLab, Notion, Obsidian and your docs site.
erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE_ITEM : contains
CUSTOMER {
string id PK
string name
string email UK
}
ORDER {
int id PK
string customerId FK
date placedAt
}
LINE_ITEM {
int orderId PK, FK
int quantity
}Built for diagrams that live next to your code
Text and canvas are equals
Type Mermaid or drag on the canvas. Every edit shows up in the other view straight away, and one undo history covers both.
Your typing is never overwritten
While the text has a syntax error, the canvas shows the last valid diagram and pauses visual editing until you fix it.
Detail on demand
Show entities only for the big picture, add relationships, or show every attribute for implementation. You don’t have to edit the file to switch.
Layout you control
Arrange entities to tell the story, or let automatic layout place them. New entities land next to the ones they relate to.
Crow’s foot without the syntax recall
Set cardinalities from a menu or the inspector instead of remembering whether it’s }o..|{ or |o--o{.
Native and local
A fast Mac app that works offline with Finder, iCloud Drive and git. No account, no cloud, no subscription. Export to PNG and PDF.
No lock-in. It’s just a .mmd file.
Twofold saves standard Mermaid. Canvas positions go at the end of the file as Mermaid comments, which every other renderer ignores. Commit it, diff it, review it, and open it anywhere.
…
LINE_ITEM {
int orderId PK, FK
int quantity
}
%% @layout: node positions for the visual editor (ignored by Mermaid)
%% @pos 10 20 CUSTOMER
%% @pos 230 20 ORDER
%% @pos 230 190 LINE_ITEMComing to the Mac in 2026
A one-time purchase with a free trial. Join the waitlist to get into the beta.