Skip to content

Your First Model

Let’s build a simple architecture diagram — a web app with an API and database.

Press Ctrl+K to open the command palette, then click New model. Give it a name like “my-app”.

Right-click the canvas and choose Add node → Person. This is a user of your system. Name it something like “User” and give it a brief description — “A customer using the web application.”

User

Right-click again and add a System. Name it “My App” with a description like “The main application.” This is the top-level boundary for everything you’re building.

User
My App

Hover over the User node — you’ll see connection handles appear on each side. Click and drag from a handle to the System node to create an edge. Give the edge a label like “Uses”.

Select the “My App” system and click the expand button (↗) to zoom in and see its containers. The canvas is now scoped to this system — the breadcrumb at the top shows your navigation path.

Right-click and add containers for the parts of your system:

Website
React
API
Node.js
Database
PostgreSQL

Draw edges between them: Website → API → Database.

Expand a container to add components inside it. Components are the logical modules — your auth service, user repository, API routes, etc.

Inside components, you can add operations (individual functions), processes (multi-step workflows), and models (data structures). These appear in a compact list view instead of on the canvas.