Mermaid diagram
A Mermaid diagram written in the selected row's cell, or a flowchart drawn from the rows' From and To columns.
Add it to a document
In Grist, add a widget, choose Custom, then Enter Custom URL and paste:
https://gristwidgets.com/widgets/mermaid-diagram/v0/It takes every v0.x release, fixes and new features; a breaking change comes as a new major version, at a URL of its own. The same widget is also served at https://arthurblanchon.github.io/grist-widget-sdk/widgets/mermaid-diagram/v0/.
What it does
People who document processes, plans or structures in Grist draw them with Mermaid, the text-to-diagram language an AI writes easily. In cell mode, the selected row's cell holds the Mermaid code and the widget draws it. In rows mode, the widget draws a flowchart from the rows themselves: an arrow from each row's From to its To, labelled by its Label.
Diagrams use Mermaid (MIT), in its strict security mode, coloured with the shared theme.
Columns
| Column | Type | Use |
|---|---|---|
Diagram, optional | Text | cell mode: the Mermaid code |
From, optional | Any | rows mode, with To: where each row's arrow starts |
To, optional | Any | where it ends |
Label, optional | Any | the arrow's label |
The mode follows the mapping: rows mode when From and To are mapped, otherwise cell mode.
Access
read table: it only reads.
Changes
0.3.4 · 2026-11-28
- Built with the latest version of grist-widget-sdk: nothing changes on screen.
0.3.3 · 2026-11-21
- No more linking alert ("Widget linking") in a section that follows no other, or that no section follows: the widget works either way.
0.3.2 · 2026-11-21
- The widget loads again: Grist started serving its plugin script as a development build that this widget's security policy refuses, which left every copy on "The Grist plugin did not load". The widget now ships its own copy of Grist's plugin script, a fixed version without that problem, and runs no script from anywhere else.
0.3.1 · 2026-11-16
- A flowchart built from more rows than a diagram can hold (500 arrows) draws the first ones and says how many of how many are drawn, instead of an error about a setting nobody using the widget can change.
0.3.0 · 2026-11-16
- "Report a problem": when a change fails to save, or if the widget ever stops working, a link opens this widget's bug form, filled in with its name and version. Nothing is sent from your document: you write what you choose.
- If the widget stops working, it says so, with a button to reload it, instead of showing an empty panel.