sysgraph Docs
Catalog & architecture

Catalog (C4)

The catalog is the single source for your real systems. You describe a system once and pick it in flows. When its name changes every flow that uses it follows, and the architecture view is drawn from the catalog.

The catalog screen
The catalog screen

C4 types

TypeWhatWhere it lives
PersonA human or external actor using the systemAt the top or in a group
ContextA software system (e.g. "Payments", "Store")At the top or in a group
ContainerAn application or data store inside a contextInside a context
ComponentA part inside a containerInside a container
GroupOnly for organizing; not drawnAt the top or in another group

Example hierarchy: Store (context) › Order Service (container) › Saga orchestrator (component).

Adding items

  • On the catalog screen, New item; to add below an item, Add child item.
  • From a flow: Save to catalog in a participant's panel.
  • An item has a name, C4 type, role (optional), parent and description.

If a role is chosen the item's appearance (shape, color, name affixes) comes from the role; otherwise from its C4 type. See Roles and appearance.

Using items in flows

  • Search with the Catalog & roles button in the palette and add an item as a participant.
  • Link an existing participant with Pick from catalog… in its panel.
  • If a linked participant's name was not overridden in the flow, renaming the item in the catalog updates the flow too.

A parent can be a participant as well: one flow can draw a system as a single box, another its insides. The architecture view groups both at the right level.

Search and filters

The search above the catalog tree works word by word: each word must appear in the name, description, role or the path of parent items ("payment system service" finds that system's services). Matches are shown in the tree with their parents.

Besides the C4 type, filter by Role, In flows (used / unused) and Endpoints (with / without); the "n of total" count and Clear filters are above the list. Without filters you can expand or collapse the whole tree with one button.

Focusing: in a crowded catalog, pick an item in "Focus on a context or container" or press Focus on this item on an item page. The list then shows only that item and what is inside it; search, filters and counts work within it too. The focus stays in the address (kept while you move between items, shareable as a link); × returns to the whole catalog.

When your flows have participants whose names equal a catalog item but which are not linked, the Link matches button in the catalog finds them all at once. Names that match once affixes are removed (e.g. "Payment Service" ↔ "Payment") and names with several candidates are shown separately; choose and press Link. Participants that aren't linked don't show up in the architecture view.

Item page

Selecting an item opens its details on the right:

  • Used in flows (the item and everything inside it).
  • A summary of its endpoints; adding and editing happen on the Endpoints page (Endpoints and contracts).
  • Zone: the network layer or trust boundary the item is in (e.g. DMZ). Leave it empty and the parent item's zone applies. See Zones.
  • Code names: the application's names in code (assembly, service or host name). When importing from code, applications and called services are linked to the item by these names; a name can belong to one item only (Importing from code).
  • Linked decisions and open projects affecting it.
  • Show in architecture: focuses the architecture view on this item.
  • In an organization, the catalog's sharing status (Organizations).

Import and export

The catalog exports to JSON and can be imported into another workspace. To move a whole workspace, use a backup.

Import also reads other tools' models:

  • Structurizr DSL (.dsl): person, softwareSystem, container, component and group / enterprise become catalog items at the same C4 level, nested under their parents; descriptions and technologies go into the description. Relationships are skipped — in sysgraph they come from your flows.
  • Backstage catalog-info.yaml (one or more documents): Domain → group, System → system, Component → container in its system (or a component with subcomponentOf), Resource → container. metadata.name becomes a code name, so Radar and production metrics match it; the owner becomes the item's owner when a team with that name exists in Workspace › Teams. API entities are skipped (import their API document under Endpoints).

Before anything changes you see a summary (new, updated, unchanged items and warnings). Items are matched by code name, then by name and type, so importing the same file again updates instead of creating copies; role, zone and other fields of matched items are kept.