Export and Sharing
Section titled “ Export and Sharing”Every diagram in C4 Diagrams can be exported and shared in multiple formats. Because Nodinite generates every export on demand from the current relational data in the database, exports are always current: no stale screenshot diverges from the actual architecture.

Animated walkthrough: a diagram of the Order-to-Cash demo downloads as PNG from Print & Export, the whole Diagram Set downloads as a PNG ZIP from Export, and the diagram's address opens the same diagram for everyone with access to the set.
- On a diagram page, click Print & Export. The menu has three groups: Print (Print diagram), Image (SVG, PNG), and Markup (Mermaid, Structurizr DSL, PlantUML, Draw.io).
- Click PNG. The diagram downloads as
<diagram name>.png. - Click the set's name in the breadcrumb to open the Diagram Set.
- Click Export, then PNGs. The Export as PNG ZIP dialog lists the diagrams to tick, with a State column (Active, Draft).
- Click Export ZIP. The download is
<set name>-diagrams.zip, with one PNG per diagram. - Share the diagram page's address. It opens the current diagram for everyone with access to the set.
Understanding Export and Sharing
Section titled “ Understanding Export and Sharing”Every export and the diagram page render from the same live data in the Diagram Set, so all shared copies show the current architecture.
Export Formats
Section titled “ Export Formats”This section is the one home for the export format list; other C4 pages link here. A single diagram and a whole Diagram Set offer the same six formats.
Single Diagram
Section titled “Single Diagram”The Print & Export button on the diagram page, and Export in the C4 Designer, open the same menu. It groups the formats under Image and Markup:
| Format | Extension | Best for |
|---|---|---|
| SVG vector | .svg |
Print-quality, scalable embedding |
| PNG image | .png |
Word, PowerPoint, Confluence, Teams chats |
| Mermaid | .md |
GitHub, Azure DevOps, Notion, Mermaid Live Editor |
| Structurizr DSL | .dsl |
Interchange with Structurizr tooling |
| PlantUML | .puml |
Interchange with PlantUML ecosystems |
| Draw.io | .drawio |
Import into draw.io / diagrams.net for manual editing or branding |
Above the formats, the Print group has Print diagram.
The export endpoints are Web API routes with the pattern /api/C4Diagrams/{id}/export.{extension}, for example export.png; the extension is md, dsl, puml, drawio, svg, or png. The OpenAPI documentation of your Nodinite Web API lists every export route.
New 7.12 The Web Client also serves the raw Mermaid markup at /Repository/C4Diagrams/{id}/mermaid (Administrators: /Admin/C4Diagrams/{id}/mermaid), as plain text that opens from a link or a script; see Shareable URL. Give readers that address, not /api/… on the Web Client, which only answers the Web Client's own pages.
Whole Diagram Set
Section titled “Whole Diagram Set”The Export menu on the Diagram Set page offers the same six formats, grouped under Images (SVGs, PNGs) and Markup. Each one downloads a ZIP named <set name>-diagrams.zip:
| Format | Download | Notes |
|---|---|---|
| SVG | ZIP of .svg files |
Opens Export as SVG ZIP first: tick the diagrams to include; a State column shows Active or Draft |
| PNG | ZIP of .png files |
Opens Export as PNG ZIP first, with the same diagram list |
| Mermaid | ZIP of .md files |
|
| Structurizr DSL | ZIP of .dsl files |
|
| PlantUML | ZIP of .puml files |
|
| Draw.io | ZIP of .drawio files |
The export URLs are relative to the Nodinite Web API (https://{webapi}/). Every export endpoint needs a signed-in user with Repository access and access to the Diagram Set (Role-Based Access for C4 Diagram Sets); there is no anonymous access. In the Web Client, the menus call them for you.
Connector Flows on Export
Section titled “ Connector Flows on Export”If a static diagram shows 2 flows or 3 flows on one visible connector, the export behaviour depends on the target format:
| Format | What designers should expect |
|---|---|
| PNG / SVG | Exports the rendered diagram for presentations, reviews, and embedding. Great for visual communication, but not for round-tripping per-flow metadata |
Mermaid .md |
Expands the visible connector into one relationship line per flow, preserving each flow's display name and protocol |
| Draw.io XML | Exports separate edges for the stored flows so the diagram can be refined in draw.io, but Message Type links remain Nodinite-only metadata |
In other words, the canvas may collapse several flows for readability while export keeps them explicit where the target format supports it. Optional Message Type bindings are used inside Nodinite for navigation and traceability; they are not embedded into exported markup or image files.
Sharing a C4 Diagram
Section titled “ Sharing a C4 Diagram”Diagram Page URL
Section titled “Diagram Page URL”The diagram page's address, /Repository/C4DiagramSets/{setId}/Diagrams/{id}, is a stable, shareable link to the diagram. There is no separate read-only viewer: colleagues without Modify on the set see the same page read-only. Paste the link in:
- Teams or Slack messages
- Jira / ServiceNow tickets
- Email threads
- Architecture review documents
The page renders the latest diagram state every time it is opened. No diagram rebuilding or re-exporting required. The link needs sign-in and access to the Diagram Set, so it works for colleagues, not for anonymous readers; for those, export the diagram or copy its Mermaid source. The page's view switch shows the diagram in the Mermaid View, which keeps Font Awesome Component Type icons only (why).
Copy the Mermaid Source
Section titled “Copy the Mermaid Source”The Mermaid button on the diagram page opens the Mermaid dialog; Copy Mermaid source copies the Mermaid C4 markup to the clipboard. Print & Export > Mermaid downloads the same markup as a .md file. Use it to:
- Paste into GitHub README files (
```mermaid ```block) - Insert into Confluence using the Mermaid macro
- Add to Azure DevOps wiki pages (native Mermaid support)
- Open in the Mermaid Live Editor for immediate visual editing
Set-Based Role Permissions
Section titled “Set-Based Role Permissions”Shared links respect Diagram Set permissions: only users whose Roles are assigned to the set can open its diagrams, and new sets can inherit default roles through DefaultRolesInViews. There are no per-diagram sharing flags; see Role-Based Access for C4 Diagram Sets for the full model.
Embedding in External Tools
Section titled “ Embedding in External Tools”GitHub / Azure DevOps / Bitbucket
Section titled “GitHub / Azure DevOps / Bitbucket”Paste the Mermaid export directly into any Markdown file:
```mermaidC4Container title API-Led Architecture Person(user, "Web User", "Uses the portal") Boundary(apis, "Experience APIs") { Container(api, "Customer API", "ASP.NET Core", "REST API") } System_Ext(erp, "ERP", "Back-office system") Rel(user, api, "Calls", "HTTPS") Rel(api, erp, "Reads inventory", "REST")```GitHub, Azure DevOps wikis, and Bitbucket render Mermaid diagrams natively.
Confluence
Section titled “Confluence”Confluence offers two options:
- Mermaid macro — Install the Mermaid Diagrams for Confluence app, then paste the Mermaid source into the macro
- PNG/SVG file — Export the diagram and attach or upload the image. The export endpoint URL as an image source only works for viewers who are signed in to Nodinite with access to the set; an anonymous embed doesn't load
SharePoint / Teams Tab
Section titled “SharePoint / Teams Tab”For SharePoint modern pages (Image Web Part), upload an exported PNG or SVG. A Teams tab can point at the diagram page's address; every viewer needs sign-in and access to the set.
Automating Export
Section titled “ Automating Export”Because all export endpoints are standard GET requests, you can automate them. Authenticate as for any other Web API call; with Windows authentication, for example:
# Download the latest PNG for use in documentation pipelines$diagramId = "your-diagram-id"
Invoke-WebRequest ` -UseDefaultCredentials ` -Uri "https://{webapi}/api/C4Diagrams/$diagramId/export.png" ` -OutFile "architecture-$(Get-Date -Format 'yyyyMMdd').png"The account that runs the script needs Repository access and access to the Diagram Set.
This approach enables:
- Nightly exports committed to a Git repository alongside the application code
- Automated architecture documentation in CI/CD pipelines
- Version-controlled architecture diagrams without manual screenshot management
Export from the Designer
Section titled “ Export from the Designer”Within the C4 Designer, the Export dropdown () in the toolbar provides one-click download of the current diagram in any of the six single-diagram formats, with no need to call the export endpoint separately. The Designer's Export has no Print diagram: switch to View and use Print & Export.