Skip to main content

Tutorial

Build a tiny order slice: API, database, external payments, and a trust boundary.

Screen map

Sphere board for the Order Platform example, showing the top bar, Ask Sphere bar, view tabs, tool rail, canvas, legend, and minimap

  • Top bar — diagram name, Autosave/visibility, Library, Docs, search, undo/redo, Board & export, collaborator avatars (real-time co-editing isn't live yet — see the FAQ), Share.
  • Ask Sphere bar — natural-language prompt to design or modify the architecture.
  • View tabs — All Systems, External Integrations, Contracts, Agent Runtime, plus Filters / Focus / Auto-layout.
  • Tool rail (left) — Select, Pan, Connect, Fast design, Add component, Add boundary, Toggle grid, Curved arrows.
  • Canvas — the diagram itself, with a legend and minimap docked to the lower right.

Step 1 — Name the system

Click the diagram name in the top bar (for example Order Platform). That name is used for export filenames and the SCAN system.name.

Step 2 — Add components

Click Add component on the tool rail to open the kind picker:

Add component menu with the seven kinds: Service, External System, Datastore, Event / Stream, Search, Agent, Repository

KindExample name
ServiceOrder API
External SystemPayment Platform
DatastoreOrders DB
Event / StreamOrder Created
SearchSearch Index
AgentArchitecture Agent
RepositoryGitHub Repository

Pick a kind, then click empty canvas to place it. The inspector opens for the new node — set technology (e.g. Spring Boot, PostgreSQL) if you want.

Fast design (optional)

Toggle Fast design on the tool rail. Click to place the current component kind; drag a thin box for a datastore; drag a large box for a boundary; click two components to connect. Esc exits.

Step 3 — Connect

  1. Select Connect on the tool rail.
  2. Wire Payment Platform → Order API as a synchronous / REST-style link.
  3. Wire Order API → Orders DB as database access.

Prefer port-to-port when ports exist: expose → consume.

Select a component to open the Inspector on the right — API Surface (Consume/Expose), Connections, Repository, and Contracts:

Inspector panel for Order API, showing API surface, connections, and repository

Select an edge to set label, contract (e.g. OpenAPI), and operations from there.

Step 4 — Trust boundary

Add boundaryTrust Boundary, click the canvas, then resize so Order API and Orders DB centers sit inside. Or right-click a component → Group into boundary.

Step 5 — Views and layout

  • Tabs: All Systems, External Integrations, Contracts, Agent Runtime emphasize different node kinds.
  • Focus dims everything outside the 1-hop neighborhood of the selection.
  • Auto-layout rearranges the board, then fits the viewport. Undo with Ctrl/Cmd+Z.

Step 6 — Save and export

Open Board & export in the top bar for the full menu:

Board & export menu with New board, Import YAML, Save, Download copy, Export SVG, and Export PNG

ActionHow
SaveCtrl/Cmd+S or Board & export → Save
Download a local copyBoard & export → Download copy (.scan.yaml)
Export imageBoard & export → Export SVG or Export PNG
ImportBoard & export → Import YAML
Start overBoard & export → New board

Done

You now have a valid SCAN document Sphere can round-trip. Continue with Ask Sphere or dig into SCAN concepts.