Skip to content

Quick start

In about five minutes you go from an empty repo to the viewer showing a small Model: a Shopper who uses an Online Shop made of two Services. Every file you need is on this page.

Archidocs needs Node.js 22.18 or later. There is nothing to install: npx runs the CLI. Installation covers a global install and a dev dependency instead.

A Workspace is one git repo that holds the whole architecture. In the repo that will hold yours (a new, empty one is fine), run:

Terminal window
npx archidocs init

This writes a starter archidocs/workspace.yaml, adds the .archidocs/ cache to .gitignore, and installs an authoring skill for coding agents. The skill and the MCP command init prints run Archidocs the same way you ran init, so agents need no global install either. Everything Archidocs reads lives under archidocs/.

Save each file at the path in its title.

workspace.yaml defines the Teams that own things and the Environments that Services run in. Replace the starter file with:

archidocs/workspace.yaml
teams:
storefront:
name: Storefront
environments:
prod:
name: Production

A Project is one Team’s folder in the Workspace. Its project.yaml names the Team that owns everything in the folder:

archidocs/shop/project.yaml
id: shop
name: Shop
owner: storefront

Every other .yaml file in the folder declares Elements and their Relationships. This one declares a Person, and a System that holds two Services:

archidocs/shop/model.yaml
people:
shopper:
name: Shopper
relationships:
- to: web
description: Browses and buys using
systems:
online-shop:
name: Online Shop
services:
web:
name: Web
technology: TypeScript, React
relationships:
- to: api
description: Places orders through
technology: JSON/HTTPS
api:
name: API
technology: Node.js

Each Relationship sits under the Element that depends on the other one, and its description reads as a sentence: “Web places orders through API”.

Terminal window
npx archidocs check
0 errors, 0 warnings

archidocs check validates every file and every reference between them. When something is wrong, it names the file, the line and the rule that was broken.

Terminal window
npx archidocs dev

Open http://localhost:4321. The viewer starts on the C1 Landscape. Choose Go deeper › C2 Landscape; it shows the Shopper and the Online Shop:

The viewer on the C2 Landscape of the quick start's Workspace: the Shopper, with an arrow to the Online Shop System.The viewer on the C2 Landscape of the quick start's Workspace: the Shopper, with an arrow to the Online Shop System.

In the viewer, the Online Shop box has an arrow button. Select it to open the System’s own View, with the two Services inside it:

The viewer with the Online Shop System opened: the Shopper uses Web, and Web places orders through API. Both Services sit inside Online Shop.The viewer with the Online Shop System opened: the Shopper uses Web, and Web places orders through API. Both Services sit inside Online Shop.

That is the Model you wrote, drawn. The viewer reloads as you edit the files; stop it with Ctrl+C.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.