Skip to content
Documentation
Updated 7 minutes to read
Markdown

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.

Export one Order-to-Cash diagram as PNG, then the whole Diagram Set as a PNG ZIP, and open the diagram from its link, animated walkthrough (7.12)
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.

  1. 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).
  2. Click PNG. The diagram downloads as <diagram name>.png.
  3. Click the set's name in the breadcrumb to open the Diagram Set.
  4. Click Export, then PNGs. The Export as PNG ZIP dialog lists the diagrams to tick, with a State column (Active, Draft).
  5. Click Export ZIP. The download is <set name>-diagrams.zip, with one PNG per diagram.
  6. Share the diagram page's address. It opens the current diagram for everyone with access to the set.
flowchart LR Repo["fa:fa-database Diagram Set data"] --> Endpoint["fa:fa-plug Export endpoint"] Repo --> Viewer["fa:fa-eye Diagram page URL (signed in)"] Endpoint --> Img["fa:fa-image PNG / SVG"] Endpoint --> Md["fa:fa-code Mermaid markup"] Endpoint --> Src["fa:fa-file-code Structurizr DSL / PlantUML"] Endpoint --> Drawio["fa:fa-pen-ruler Draw.io XML"] Img --> Docs["fa:fa-book Confluence, SharePoint, Office"] Md --> Wiki["fa:fa-code-branch GitHub, Azure DevOps"]

Every export and the diagram page render from the same live data in the Diagram Set, so all shared copies show the current architecture.

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.

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.

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.

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.

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).

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

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.

Paste the Mermaid export directly into any Markdown file:

```mermaid
C4Container
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 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

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.

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:

Terminal window
# 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

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.

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...