Mermaid View
Section titled “ Mermaid View”Every diagram in C4 Diagrams has a Mermaid View — a read-only rendering of the diagram as valid Mermaid C4 markup. The Mermaid View is independent of the C4 Designer: it gives you a portable, embeddable diagram that renders natively in GitHub, Confluence, Azure DevOps, Notion, SharePoint, and any other Mermaid-capable tool.
What Mermaid View Shows
Section titled “What Mermaid View Shows”Mermaid View gives you a text-based version of the current diagram. It is useful when you want a shareable view that can be pasted into documentation tools or copied into another Mermaid-capable system.
It focuses on the same architecture you see in the designer:
- The diagram keeps the current shape of the architecture
- The output stays readable in external tools
- The view is read-only, so it cannot change the diagram itself

Animated walkthrough: an Active diagram of the Order-to-Cash demo switches to the Mermaid view, then the Mermaid dialog copies the Mermaid source, ready to paste into GitHub, Azure DevOps, or Confluence.
- Open an Active diagram. It opens in the interactive view.
- Click Mermaid view, the second icon of the view switch in the canvas toolbar. Mermaid draws the same diagram; each flow is its own line with its protocol, and the view is read-only.
- Click Mermaid in the page toolbar. A dialog opens with zoom, Refresh, Print, Copy Mermaid source, and Download as image.
- Click Copy Mermaid source. The button reads Copied!; paste the markup into GitHub, Azure DevOps, or Confluence.
Bound nodes show the Repository name in the interactive view and the node's own label in Mermaid. When the two differ, the Impact Inbox reports Bound entity diverged.

Open the Mermaid View with Show in Mermaid in the Action menu, next to View, Edit, and Show in Mapify (Mapify).
Example Output
Section titled “Example Output”The following is an example of Mermaid C4Container markup auto-generated by Nodinite
Diagram Level and Mermaid Type
Section titled “Diagram Level and Mermaid Type”The diagram type you select when you create the diagram controls which Mermaid C4 header Nodinite emits. When you Import existing Mermaid markup, the type is auto-detected from the keyword on the first line:
| Diagram type | Mermaid output header | When to use |
|---|---|---|
| System Landscape (L0) | C4Context |
Enterprise-wide view of all Systems and their relationships |
| Context (L1) | C4Context |
High-level people + Systems overview for one central system |
| Container (L2) | C4Container |
Services and technology inside a System boundary |
| Component (L3) | C4Component |
Internal structure of a single Service |
| Deployment | C4Deployment |
Infrastructure topology — where containers are hosted |
| Dynamic | C4Dynamic |
Runtime interaction sequence for a specific workflow |
Where to Open the Mermaid View
Section titled “Where to Open the Mermaid View”The Mermaid View is not a page of its own. The diagram page, /Repository/C4DiagramSets/{setId}/Diagrams/{id}, opens in the interactive view, and you switch to Mermaid on that page; the switch is not part of the URL.
| Where | What it does |
|---|---|
| View switch in the canvas toolbar (Interactive view / Mermaid view icons) | Draws the diagram inline with Mermaid |
| Mermaid button in the page toolbar | Opens the Mermaid dialog: zoom, Refresh, Print, Copy Mermaid source, Download as image |
| New 7.12 Sequence button in the page toolbar, on a Dynamic diagram only | Opens the Mermaid dialog with Sequence picked: the numbered steps in order (Dynamic Diagram Example) |
| Print & Export > Mermaid (.md) | Downloads the Mermaid markup as a file (Export and Sharing) |
| Diagram Sets list > Action > Show in Mermaid | Draws the whole Diagram Set |
Copy the markup into external tools such as GitHub README files, Confluence pages, or the Mermaid Live Editor. Exported and copied markup leaves out the Font Awesome icons that Nodinite adds to the drawing; the dialog footer says so.
Connector Flows in Mermaid
Section titled “Connector Flows in Mermaid”On Context, Container, and Component diagrams, Interactive View may show one visible connector labelled 2 flows, 3 flows, or similar. That is a presentation choice to reduce clutter on the canvas.
The Mermaid output stays explicit:
- Each flow becomes its own relationship line
- Each flow keeps its own display name and protocol text
- Optional Message Type links remain Repository metadata and are not written into the Mermaid markup
This means the Mermaid view can look more detailed than the interactive canvas. That is expected and useful when you want a text representation of every flow rather than the compact presentation used during diagram review.
Sharing and Embedding
Section titled “Sharing and Embedding”Shareable URL
Section titled “Shareable URL”The diagram page's address is the link to share; there is no separate copy-URL button. The address is stable and always reflects current data: every time it is opened, the diagram is freshly generated from the current relational rows, so there are no stale screenshots. Opening it needs sign-in and access to the Diagram Set (Role-Based Access for C4 Diagram Sets). To share outside Nodinite, copy the Mermaid source or export the diagram instead.
New 7.12 For the raw markup, use /Repository/C4Diagrams/{id}/mermaid on the Web Client (Administrators: /Admin/C4Diagrams/{id}/mermaid, which also opens diagrams in restricted sets). It opens from the address bar, an e-mail, a wiki link, or a bookmark, and returns the diagram's Mermaid markup as plain text (text/plain) for a signed-in user with access to the set; scripts and wiki tooling can read it too. Unlike Copy Mermaid source, it keeps the %% nodinite:node … comment lines and the icon tokens in the labels. An unknown diagram, or one in a set you can't read, returns Not Found, without saying which of the two it was.

The /mermaid address of the Order-to-Cash - Context diagram in the Contoso O2C Operations set: the C4Context markup with its element and Rel lines, plus the nodinite:node metadata lines.
Embedding in External Tools
Section titled “Embedding in External Tools”Because the Mermaid markup is standard C4 Mermaid syntax, it renders natively in:
- GitHub — paste into a
README.mdor wiki page inside a```mermaid ```block - Confluence — use the Mermaid macro or a compatible Confluence app
- Azure DevOps — wiki pages support Mermaid natively
- Notion — use the Mermaid code block
- SharePoint — paste the copied markup into a Mermaid-capable web part
- Mermaid Live Editor — for quick sharing and editing
Export Endpoint
Section titled “Export Endpoint”A Web API export endpoint returns the diagram as SVG, PNG, Mermaid markup, Structurizr DSL, PlantUML, or Draw.io XML, always reflecting the current state, for a signed-in user with access to the set. See Export and Sharing for the URLs and automation. For the Mermaid markup alone, the Web Client's /Repository/C4Diagrams/{id}/mermaid gives it without the Web API host (see Shareable URL).
Relationship to the Existing "Show in Mermaid" Feature
Section titled “Relationship to the Existing "Show in Mermaid" Feature”The existing "Show in Mermaid" action on individual Repository entities (Integrations, Services, Systems) continues to work unchanged. It is useful for quick ad-hoc exploration.
The C4 Diagram Mermaid View is the diagram page for persistent, publishable architecture documentation.
Both capabilities are valuable and serve different use cases.