---
title: Shapes and Toolbox Reference | C4 Diagrams – Nodinite
description: "Reference for the shapes in the Nodinite C4 Diagrams designer toolbox: which shapes each diagram type offers, the internal vs external icon convention, Mermaid macros, boundaries, connectors, and how imported notation maps to shapes."
---

# :fa-toolbox: Shapes and Toolbox Reference

The toolbox panel in the [C4 Designer][] is the palette of C4 shapes you use to build or edit [C4 Diagrams][Architecture Diagrams]. Its contents are **context-sensitive**: the C4 toolbox shows only the shapes that are valid for the active diagram type, so the visible toolbox is always a subset of the full C4 shape vocabulary. Use this page as the lookup reference; for the hands-on workflow, see [Building a Diagram][].

![The toolbox on a Context, Component, Dynamic, and Container diagram, then the Service filter chip and All, animated walkthrough (7.12)][2]  
*Animated walkthrough: the toolbox on an L1 Context diagram (Persons, [Systems][], Boundaries, Connectors), an L3 Component diagram (Components, Neighbouring Containers, External Actors, the folded Advanced section, Boundaries, Connectors), a Dynamic diagram (Participants, the System, Enterprise and generic Boundaries, numbered-step connectors), and an L2 Container diagram. The [Service][Services] filter chip leaves only the shapes that bind to a Service, and **All** brings everything back. It ends on the Container toolbox.*  

:new7.12: The shapes, boundary kinds, and filter chips each diagram type offers come from the C4 model rules, the same rules the [Web API][], the import, MCP, and the Designer check on every save. The rules also decide what each shape can be bound to; [C4 Model vs Nodinite Concept Mapping][] has the full scope, subject, and binding tables.

## :fa-diagram-project: Understanding the Shape Vocabulary

One shape vocabulary covers every way a shape reaches a diagram in :Nodinite:. A diagram you [Import][] from Mermaid, PlantUML, Structurizr DSL, or Draw.io XML produces the same shape families as one you assemble by hand, and diagrams built in the designer export clean, standards-compliant Mermaid that any C4-aware tool can read.

<div class="mermaid">
flowchart LR
    Toolbox["fa:fa-toolbox Toolbox<br/>filtered by diagram type"] --> Canvas["fa:fa-diagram-project Canvas"]
    Import["fa:fa-file-import Import<br/>Mermaid, PlantUML, Structurizr DSL, Draw.io XML"] --> Canvas
    Repo["fa:fa-database Repository entity<br/>and its Component Type"] -.->|"binding and icon"| Canvas
    Canvas --> Mermaid["fa:fa-code Mermaid source and export"]
</div>

*The toolbox and the import wizard feed the same canvas; Repository bindings supply the node's entity and icon, and every diagram renders as Mermaid C4 markup.*

| Surface | What you do |
|---|---|
| :fa-toolbox: **Toolbox** | Drag and drop shapes onto the canvas in the designer |
| :fa-diagram-project: **Canvas** | The placed shape renders on the live diagram |
| :fa-file-import: **Import** | The import wizard produces the same shapes from external markup |

![C4 Designer with the Deployment toolbox and its All, Service and Contract filter chips, next to the Draft O2C Platform - Production Deployment diagram with Azure West Europe and the On-Premises Data Centre (7.12)][1]  
*Example of the toolbox on a Deployment diagram: only Infrastructure Nodes, Containers, Boundaries, and Connectors appear, because those are the shapes valid for that diagram type.*  

## :fa-filter: Toolbox Filter, Resolver, and Binding Defaults

The toolbox has up to five filter chips: **All**, [System][Systems], **Service**, [Contract][Contracts], and :new7.12: **Endpoint** ([Endpoints][]). A chip only shows when the diagram type has shapes that bind to it: a Context diagram shows **All** and **System**, **Endpoint** shows on a Component diagram (for its Components), and **Contract** shows only when [UseContracts][] is enabled and you have read rights on Contracts. :new7.12: There is no **Integration** chip and no **Domain** chip: no shape binds an [Integration][Integrations] or a [Domain][Domains], and the infrastructure items of a Deployment diagram are unbound labels.

The filter chips do **not** limit the diagram to a single binding target. They only change which repository-centric shape families the toolbox emphasizes. A separate node resolver decides what a selected node can bind to and what its default binding kind is (see [Repository Bindings][]). This holds for every diagram type below, so switching the filter never changes the meaning of a node that is already on the canvas.

| Filter chip | What it emphasizes in the toolbox | What it does not mean |
|---|---|---|
| All | All toolbox sections allowed for the diagram type | It does not force every node to bind to every entity kind |
| System | System-facing shapes, plus the advanced System items valid in the diagram | It does not mean every selected node binds as a [System][Systems] |
| Service | Service-facing container and deployment items | It does not mean the current node is a [Service][Services] node |
| Contract | [Contract][Contracts]-capable items, where contract support is enabled | It does not mean the diagram type is contract-only |
| Endpoint | The Component shapes of a Component diagram, which bind to an [Endpoint][Endpoints] | It does not mean every Component must be bound |

The designer default may prefer Service or Contract depending on the node kind and current binding, but the filter chip only changes what the toolbox shows.

## :fa-icons: Component Type Icons vs Toolbox Icons

Every shape on the canvas displays one of two icons:

* **Toolbox default icon**: the built-in icon for the shape type, shown in the toolbox and used as the fallback when no [Component Type][Component Types] is available.
* **Component Type icon**: the icon from the [Component Type][Component Types] assigned to the bound Repository entity.

When the bound entity has a Component Type, its icon **replaces** the toolbox default on the canvas. Assign the icon once to a [System][Systems], [Service][Services], Contract, [Domain][Domains] (boundaries), or Endpoint (Components on a Component diagram), and it appears automatically in every C4 diagram that references that entity, in both view mode and the designer. :new7.12: An Integration is never bound, so its Component Type doesn't show on C4 nodes; the Integration keeps a [C4 Properties][C4 Properties] card with the Component Type only, for [Mapify][] and its own pages.

>[!IMPORTANT]
>**The entity Component Type always wins.** For the full priority chain and fallback rules, see [Component Types][]. The icons listed on this page are the default fallback icons.

## :fa-up-right-from-square: The Internal vs External Icon Convention

Every actor and node shape exists in an **internal** and an **external** variant. :Nodinite: marks the difference with an icon overlay on every diagram type, so colour is never the only signal.

| Variant | Icon treatment | Canvas colour | Mermaid macro pattern |
|---|---|---|---|
| Internal | Base icon alone | Blue | No suffix: `Person`, `Container`, `Component` |
| External | Base icon + :fa-up-right-from-square: overlay at the top-right corner | Grey | `_Ext` suffix: `Person_Ext`, `Container_Ext`, `Component_Ext` |

| Tier | Internal icon | External icon |
|---|---|---|
| Person | :fa-user: | :fa-user: + :fa-up-right-from-square: |
| Software System | :fa-server: | :fa-server: + :fa-up-right-from-square: |
| Container (generic) | :fa-cube: | :fa-cube: + :fa-up-right-from-square: |
| Database (any tier) | :fa-database: | :fa-database: + :fa-up-right-from-square: |
| Queue / Stream (any tier) | :fa-layer-group: | :fa-layer-group: + :fa-up-right-from-square: |
| Component | :fa-puzzle-piece: | :fa-puzzle-piece: + :fa-up-right-from-square: |

The tables below list the internal icon; the external variant adds the overlay.

## :fa-table: Shape Availability by Diagram Type

| Shape | L0 / L1 | L2 | L3 | Dynamic | Deployment |
|---|---|---|---|---|---|
| Person (internal) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
| Person (external) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
| Software System | ✅ Yes | ✅ Yes | ✅ Advanced | ✅ Yes | ❌ No |
| Software System (external) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
| Database System | ✅ Yes | ✅ Yes | ✅ Advanced | ✅ Yes | ❌ No |
| Database System (external) | ✅ Yes | ✅ Yes | ✅ Advanced | ✅ Yes | ❌ No |
| Queue System | ✅ Yes | ✅ Yes | ✅ Advanced | ✅ Yes | ❌ No |
| Queue System (external) | ✅ Yes | ✅ Yes | ✅ Advanced | ✅ Yes | ❌ No |
| Container (generic or sub-typed) | ❌ No | ✅ Yes | ❌ No | ✅ Yes | ❌ No |
| Container (external) | ❌ No | ✅ Yes | ❌ No | ✅ Yes | ❌ No |
| Container Instance (+ external) | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
| Container Database (+ external) | ❌ No | ✅ Yes | ❌ No | ✅ Yes | ❌ No |
| Container Queue / Stream (+ external) | ❌ No | ✅ Yes | ❌ No | ✅ Yes | ❌ No |
| Neighbouring Container (Container family) | ❌ No | ❌ No | ✅ Yes | ❌ No | ❌ No |
| Component (+ external) | ❌ No | ❌ No | ✅ Yes | ⚠️ Import only | ❌ No |
| Component Database (+ external) | ❌ No | ❌ No | ✅ Yes | ⚠️ Import only | ❌ No |
| Component Queue (+ external) | ❌ No | ❌ No | ✅ Yes | ⚠️ Import only | ❌ No |
| Infrastructure Node | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
| Container Boundary | ❌ No | ❌ No | ✅ Yes | ⚠️ Import only | ❌ No |
| System Boundary | ❌ No | ✅ Yes | ❌ No | ✅ Yes | ❌ No |
| Enterprise Boundary | ✅ Yes | ❌ No | ❌ No | ✅ Yes | ❌ No |
| Generic Boundary | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
| Deployment Node | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
| Relationship: solid and async (dashed) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
| Bidirectional ↔ | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | ❌ No |
| Numbered Step, Numbered Step (Async), Return / Callback | ❌ No | ❌ No | ❌ No | ✅ Yes | ❌ No |

"Advanced" means the shape sits in the collapsed **Advanced** section of the L3 toolbox. On L2 the System shapes sit in the **External Systems** section, internal ones included; on Dynamic they sit in **Participants**. "Import only" means the toolbox doesn't offer the shape, but an imported diagram may hold it: Components on a Dynamic stay unbound. A shape or boundary kind that a diagram type doesn't hold at all is imported as it is, but the Designer can't add one, and a save that changes it answers with the rule's message.

>[!NOTE]
>In Dynamic diagrams the Relationship shapes gain a **step-number badge**, and a dedicated **Return ←** (`Rel_Back`) connector is added. Bidirectional (`BiRel`) is accepted on import for Dynamic diagrams but isn't a primary toolbox shape.

### Toolbox Section Order by Diagram Type

| Diagram | Toolbox sections (in order) |
|---|---|
| L0 System Landscape | Persons · [Systems][] · [Boundaries][Organising with Boundaries] (Boundary, Enterprise Boundary) · Connectors |
| L1 Context | Persons · [Systems][] · [Boundaries][Organising with Boundaries] (Boundary, Enterprise Boundary) · Connectors |
| L2 Container | Persons · Containers (Container only) · Databases · Queues & Streams · External [Systems][] · External Containers · [Boundaries][Organising with Boundaries] (Boundary, System Boundary) · Connectors |
| L3 Component | Components · Neighbouring Containers · External Actors · *Advanced ▶ ([System][Systems] shapes, collapsed)* · [Boundaries][Organising with Boundaries] (Boundary, Container Boundary) · Connectors |
| Dynamic | Participants · [Boundaries][Organising with Boundaries] (Boundary, System Boundary, Enterprise Boundary) · Connectors |
| Deployment | Infrastructure Nodes · Containers (Container Instance, Container Instance (External)) · [Boundaries][Organising with Boundaries] (Deployment Node) · Connectors (no Persons or System-level section) |

## :fa-sitemap: L0 System Landscape and L1 System Context

L0 and L1 use the same Mermaid `C4Context` declaration and the same toolbox sections, with the **Boundary** and **Enterprise Boundary**: both can be bound to a [Domain][Domains] or stay unbound. The difference is conceptual: L0 spans your full enterprise landscape and has no scope; L1 focuses on a single system in its context, and that System is its Architectural Scope. On an L1, draw the other Systems as external Systems (`System_Ext`). All shapes bind to [Systems][] only (a Person to a System with C4 Type Person); the System filter maps most directly to the binding model here.

| Shape | Icon | Mermaid macro | `C4Type` on the bound System | Notes |
|---|---|---|---|---|
| Person | :fa-user: | `Person` | `Person` | Internal user, analyst, or role |
| Person (external) | :fa-user: + overlay | `Person_Ext` | `PersonExt` | External customer, trading partner, or user |
| Software System | :fa-server: | `System` | `InternalSystem` | A [System][Systems] you own and operate |
| Software System (external) | :fa-server: + overlay | `System_Ext` | `ExternalSystem` | Third-party, SaaS, or partner [System][Systems] |
| Database System | :fa-database: | `SystemDb` | `SystemDb` | Internal [System][Systems] rendered as a database cylinder |
| Database System (external) | :fa-database: + overlay | `SystemDb_Ext` | `SystemDbExt` | External database [System][Systems] |
| Queue System | :fa-layer-group: | `SystemQueue` | `SystemQueue` | Internal message bus or queue [System][Systems] at context level |
| Queue System (external) | :fa-layer-group: + overlay | `SystemQueue_Ext` | `SystemQueueExt` | External queue, event bus, or stream [System][Systems] |

## :fa-cubes: L2 Container Diagram

Container diagrams zoom inside one System, the diagram's Architectural Scope, to show the applications, services, databases, and message buses that implement it. Container nodes bind to a [Service][Services] or a Contract, :new7.12: **never a System**: draw a platform, portal, or tool you keep as a System with a System shape from the **External Systems** section. That section offers all six System shapes from L0/L1, internal ones included (`System`, `System_Ext`, `SystemDb`, `SystemDb_Ext`, `SystemQueue`, `SystemQueue_Ext`). Its boundaries are the generic **Boundary** (a Domain or an unbound grouping) and the **System Boundary**. The subject System Boundary, made by Next layer, the import, or a generator, takes its binding from the scope and is read-only.

### Container Sub-Types

The `C4ContainerType` values below come from the Service's C4 properties; [Repository Properties for C4 Diagramming][] is the full reference, including numeric values.

| Shape | Icon | Mermaid macro | `C4ContainerType` | Example |
|---|---|---|---|---|
| Container (generic) | :fa-cube: | `Container` | `None` | Catch-all when no specific sub-type applies |
| Web Application | :fa-globe: | `Container` | `WebApp` | Customer portal, admin UI |
| Single-Page App | :fa-window-maximize: | `Container` | `SinglePageApp` | Single-page application or progressive web app |
| Mobile App | :fa-mobile-screen-button: | `Container` | `MobileApp` | iOS app, Android app |
| REST API / Service | :fa-plug: | `Container` | `API` | Customer API, Order Service, gRPC endpoint |
| Microservice | :fa-microchip: | `Container` | `Microservice` | Shipping service, auth service |
| Serverless / Function | :fa-bolt: | `Container` | `Function` | Azure Function, AWS Lambda, nightly batch |
| File Store | :fa-folder-open: | `Container` | `FileStore` | Azure Blob, SFTP folder, NFS mount |
| Container (external) | :fa-cube: + overlay | `Container_Ext` | — | A [Service][Services] of another [System][Systems], drawn outside the subject boundary |

### Database, Queue, and Stream Shapes (L2)

| Shape | Icon | Mermaid macro | `C4ContainerType` | Notes |
|---|---|---|---|---|
| Database / Datastore | :fa-database: | `ContainerDb` | `Database` | SQL Server, PostgreSQL, MongoDB, Cosmos DB |
| Cache / Key-Value Store | :fa-memory: | `ContainerDb` | `Cache` | Redis, Memcached |
| Database (external) | :fa-database: + overlay | `ContainerDb_Ext` | — | External database accessed by the system |
| Message Bus / Queue | :fa-layer-group: | `ContainerQueue` | `MessageBus` | [Azure Service Bus][], RabbitMQ, SQS |
| Queue | :fa-layer-group: | `ContainerQueue` | `Queue` | Standalone point-to-point queue, decoupled from a bus |
| Event Stream | :fa-stream: | `ContainerQueue` | `EventStream` | Kafka topic, Azure Event Hub |
| Queue / Stream (external) | :fa-layer-group: + overlay | `ContainerQueue_Ext` | — | External queue or stream outside the boundary |

## :fa-puzzle-piece: L3 Component Diagram

Component diagrams zoom into one Service or Contract, the diagram's **Subject**, and show its internal building blocks. The Architectural Scope is the System where the diagram lives. The subject Container Boundary is bound to the subject and is read-only. :new7.12: A Component binds only to an **Endpoint** of the subject (**Resolve…** offers **Use existing Endpoint**, and needs read rights on Endpoints) or stays unbound, as a pipeline stage, map, filter, or function does. An Endpoint Component shows the Endpoint's Component Type icon, has **View** in the node inspector, no state, and an *Endpoint* kind badge. A Component never binds an Integration.

| Shape | Icon | Mermaid macro | `C4ComponentType` | Notes |
|---|---|---|---|---|
| Component | :fa-puzzle-piece: | `Component` | `None` | Generic logical building block |
| Component (external) | :fa-puzzle-piece: + overlay | `Component_Ext` | — (optional binding) | External module or third-party library |
| Component Database | :fa-database: | `ComponentDb` | `Repository` | Data access component |
| Component Database (external) | :fa-database: + overlay | `ComponentDb_Ext` | — (optional binding) | External data store accessed by this component |
| Component Queue | :fa-layer-group: | `ComponentQueue` | `Queue` | Async message consumer or producer |
| Component Queue (external) | :fa-layer-group: + overlay | `ComponentQueue_Ext` | — (optional binding) | External queue or stream |

:new7.12: The **Neighbouring Containers** section offers the Container family for the related Services and Contracts, placed outside the subject boundary. A neighbour that belongs to another System gets an **Owner** pill to that System's Container diagram ([Navigation Between C4 Diagrams][]). The **External Actors** section offers the Person and Software System (external) shapes from L0/L1. The collapsed **Advanced** section exposes the System-level shapes still valid at L3: `System`, `SystemDb`, `SystemDb_Ext`, `SystemQueue`, and `SystemQueue_Ext`. The **Boundaries** section offers the generic **Boundary** and the **Container Boundary**, which wraps the subject.

## :fa-list-ol: Dynamic Diagram

Dynamic diagrams show the runtime interaction sequence for a specific business workflow. Participants are Person, System, or Container instances, and connectors carry **step numbers** that define the execution order. Components come only from imports and stay unbound. :new7.12: The Dynamic toolbox has a **Boundaries** section with the **Boundary**, **System Boundary**, and **Enterprise Boundary** (a Container Boundary only from an import); the generators draw one System Boundary per owning System. A Dynamic has no scope or one System, and several Dynamics can be Active for the same scope. The filter changes which participant families appear; the step and return connectors give the diagram its shape.

| Shape | Icon | Mermaid macro | Notes |
|---|---|---|---|
| Person | :fa-user: | `Person` | Internal role in the sequence |
| Person (external) | :fa-user: + overlay | `Person_Ext` | External actor in the sequence |
| Container (any sub-type) | :fa-cube: | `Container` | Participating [Service][Services]; the technology subtitle is optional |
| Container Database | :fa-database: | `ContainerDb` | Database participant |
| Container Queue | :fa-layer-group: | `ContainerQueue` | Message queue participant |
| Software System | :fa-server: | `System` | Internal [System][Systems] in the interaction flow |
| Software System (external) | :fa-server: + overlay | `System_Ext` | External [System][Systems] in the interaction flow |
| Database System (+ external) | :fa-database: | `SystemDb`, `SystemDb_Ext` | Database [System][Systems] in the flow |
| Queue System (+ external) | :fa-layer-group: | `SystemQueue`, `SystemQueue_Ext` | Queue or event bus [System][Systems] in the flow |

## :fa-network-wired: Deployment Diagram

Deployment diagrams show **where** container instances are physically hosted. A Container Instance binds to a Service or Contract; Infrastructure Nodes and Deployment Nodes are unbound labels. A Deployment diagram holds no System or Person shapes.

| Shape | Icon | Mermaid macro | Notes |
|---|---|---|---|
| Infrastructure Node | :fa-network-wired: | `InfrastructureNode` | Generic deployment participant; an unbound label |
| Container Instance | :fa-clone: | `Container` inside a `Deployment_Node` | Specific running replica; binds to a Service or Contract |
| Container Instance (external) | :fa-clone: + overlay | `Container_Ext` inside a `Deployment_Node` | External or managed instance outside the local deployment boundary |
| Deployment Node | :fa-building-lock: | `Deployment_Node` | Deployment boundary / infrastructure envelope (see Boundaries); an unbound label |

:new7.12: Mermaid and PlantUML have no Container Instance macro. The export writes a Container Instance as `Container` inside its `Deployment_Node`, and the import stores a `Container` on a Deployment diagram as a Container Instance, so write Deployment samples with `Container`.

## :fa-object-group: Boundaries

Boundary shapes group nodes inside a dashed labelled box. What a boundary can be bound to follows its kind: an Enterprise Boundary or a generic Boundary to a [Domain][Domains], a System Boundary to a System, a Container Boundary to a Service or Contract, and a Deployment Node to nothing. A label-only boundary with no Repository anchor is also valid. For adding, binding, collapsing, and nesting boundaries, see [Organising with Boundaries][].

>[!IMPORTANT]
>**Boundaries are per-diagram, not global.** Placing a Domain inside a boundary in one C4 diagram, or changing its boundary type, nesting, or order, doesn't affect where that Domain appears in any other diagram or in the [BPM][] Designer.

| Boundary shape | Icon | Mermaid macro | Available in | Binds to | Notes |
|---|---|---|---|---|---|
| Container Boundary | :fa-border-all: | `Container_Boundary` | L3, Dynamic (import only) | [Service][Services] or [Contract][Contracts] | The subject wrapper at L3, bound from the diagram's Subject |
| System Boundary | :fa-border-outer: | `System_Boundary` | L2, Dynamic | [System][Systems] | The subject wrapper at L2, bound from the scope; one per owning System on a generated Dynamic |
| Enterprise Boundary | :fa-building: | `Enterprise_Boundary` | L0/L1, Dynamic | [Domain][Domains], or unbound | Outermost organisational wrapper |
| Generic Boundary | :fa-border-none: | `Boundary` | L0/L1, L2, L3, Dynamic | [Domain][Domains], or unbound | Custom grouping with a free-text type hint, such as a Layer or a BizTalk receive port; the toolbox tile is named **Boundary** |
| Deployment Node | :fa-building-lock: | `Deployment_Node` | Deployment | Nothing | Infrastructure zone; supports unlimited nesting |

## :fa-arrow-right-arrow-left: Connectors

The toolbox exposes a diagram-specific connector palette. **Direction is a property of a placed connector**, not a separate shape; set it per flow in **Connector Properties** after you draw the connector. For drawing, display names, protocols, flows, and the connection rules per diagram type, see [Drawing Connectors][].

| Shape | Icon | Mermaid output | Available in |
|---|---|---|---|
| Synchronous | :fa-link-simple: | `Rel(...)` | L0, L1, L2, L3, Deployment |
| Asynchronous | :fa-link-simple: (dashed badge) | `Rel(...)` + `UpdateRelStyle($lineStyle=dashed)` | L0, L1, L2, L3, Deployment |
| Bidirectional | :fa-right-left: | `BiRel(...)` | L0, L1, L2, L3 |
| Numbered Step | :fa-list-ol: | `Rel(...)` with step prefix | Dynamic only |
| Numbered Step (Async) | :fa-list-ol: (dashed badge) | `Rel(...)` + dashed style with step prefix | Dynamic only |
| Return / Callback | :fa-reply: | `Rel_Back(...)` | Dynamic only |

>[!NOTE]
>**Bidirectional vs Rel_Back:** `BiRel` adds arrowheads to **both ends** of one connector; use it when the relationship is genuinely two-way. `Rel_Back` **reverses the rendered arrow** but keeps source and target in their logical markup order; use it for response or acknowledgement arrows in Dynamic step sequences.

:new7.12: Every static diagram type (L0, L1, L2, L3, Deployment) folds the Flows of a node pair into one connector; a Dynamic keeps one arrow per step. The Mermaid and PlantUML exports write each pair as one `Rel` (one way) or `BiRel` (both ways), with the labels and technology items joined by a semicolon and a space, and on a `BiRel` each technology item marked `→`, `←`, or `↔`. A Flow's technology carries its [Message Type][Message Types] as `protocol / Message Type`. The import splits them back into Flows.

### Connector Direction

| Direction | Mermaid macro | When to use |
|---|---|---|
| Auto (default) | `Rel` | The layout engine decides; start here for any new connector |
| Down | `Rel_D` | Top-to-bottom hierarchical flow; parent → child calls |
| Up | `Rel_U` | Bottom-to-top callbacks or events bubbling up |
| Left | `Rel_L` | Return path in a left-to-right layout |
| Right | `Rel_R` | Sequential pipeline steps in a left-to-right layout |
| Back | `Rel_Back` | Response or ack; the arrow is reversed visually while FROM/TO stay in their original order |
| Neighbor | `Rel_Neighbor` | Places the target adjacent to the source; minimises edge length for tightly coupled pairs |

## :fa-file-import: How Imported Notation Maps to Shapes

The Mermaid macro in each table above is the exact notation the [Import][] wizard reads. The diagram type declaration on the first line (`C4Context`, `C4Container`, `C4Component`, `C4Deployment`, `C4Dynamic`) tells the parser which shape tier to expect, and each macro (`ContainerDb_Ext`, `Component_Ext`, `Rel_Back`, …) maps to the shape with that macro on this page. `C4Context` serves both L0 and L1, so review the Level in the wizard. The wizard then matches node names to Repository entities by exact name: `Container` → a Service (or a Contract by name or alias), never a System; `System` and `Person` → a System; on L3, `Component` → the one Endpoint of exactly that name, else an unbound placeholder; never an Integration. It lets you review conflicts before anything is saved; see [Import][] for the full workflow and the supported syntax per source format.

Macros that aren't in this reference, such as newer Mermaid C4 additions or PlantUML-only variants, are skipped, and the import result header shows the count of skipped directives.

## :fa-hand-point-right: Next Steps

* :fa-rocket: [Creating Your First C4 Diagram][]  
* :fa-diagram-project: [Building a Diagram][]  
* :fa-arrow-right-arrow-left: [Drawing Connectors][]  
* :fa-file-import: [Import][]  

## :fa-link-horizontal: Related Topics

* :fa-pen-ruler: [C4 Designer][]  
* :fa-code: [Mermaid View][]  
* :fa-object-group: [Organising with Boundaries][]  
* :fa-link: [Repository Bindings][]  
* :fa-icons: [Component Types][]  
* :fa-arrows-left-right-to-line: [C4 Model vs Nodinite Concept Mapping][]  
* :fa-list-check: [Repository Properties for C4 Diagramming][]  

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/C4/Context/Designer_O2C.png
[2]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/C4/Diagram/C4_Toolbox.gif

[Architecture Diagrams]:{ndr}/Repository%20Model/C4%20Diagrams/Overview.md
[Azure Service Bus]:{ndr}/Logging%20and%20Monitoring/Message%20Queueing/Features/Azure%20Service%20Bus%20Queues/Monitoring%20Azure%20Service%20Bus%20Queue.md
[BPM]:{ndr}/Repository%20Model/BPMs/Overview.md
[Building a Diagram]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Building%20a%20Diagram.md
[C4 Designer]:{ndr}/Repository%20Model/C4%20Diagrams/Features/C4%20Designer.md
[C4 Model vs Nodinite Concept Mapping]:{ndr}/Repository%20Model/C4%20Diagrams/Troubleshooting/C4%20Model%20vs%20Nodinite%20Concept%20Mapping.md
[C4 Properties]:{ndr}/Repository%20Model/C4%20Diagrams/Troubleshooting/Repository%20Properties%20for%20C4%20Diagramming.md
[Component Types]:{ndr}/Repository%20Model/Component%20Types/Overview.md
[Contracts]:{ndr}/Getting%20Started/4.%20Repository/Contracts/Overview.md
[Creating Your First C4 Diagram]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Creating%20Your%20First%20C4%20Diagram.md
[Domains]:{ndr}/Repository%20Model/Domains/Overview.md
[Drawing Connectors]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Drawing%20Connectors.md
[Endpoints]:{ndr}/Repository%20Model/Endpoints/Overview.md
[Import]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Import.md
[Integrations]:{ndr}/Repository%20Model/Integrations/Overview.md
[Mapify]:{ndr}/Mapify/Overview.md
[Mermaid View]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Mermaid%20View.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Navigation Between C4 Diagrams]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Sync.md
[Organising with Boundaries]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Organising%20with%20Boundaries.md
[Repository Bindings]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Repository%20Bindings.md
[Repository Properties for C4 Diagramming]:{ndr}/Repository%20Model/C4%20Diagrams/Troubleshooting/Repository%20Properties%20for%20C4%20Diagramming.md
[Services]:{ndr}/Repository%20Model/Services/Overview.md
[Systems]:{ndr}/Repository%20Model/Systems/Overview.md
[UseContracts]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/UseContracts.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md