Skip to content

How Archidocs works

Archidocs turns YAML files in one git repo into one Model, every Element and Relationship of your architecture. People explore that Model in a diagram viewer, and agents query and edit it over MCP.

  1. YAML in git:
    • a Workspace, one repo
    • a Project folder per Team
  2. archidocs check validates every file and every reference between Projects.
  3. One Model, at every Revision:
    • Elements and Relationships
    • Deployments
    • Views and ADRs
  4. Two ways in:
    • the viewer, for people
    • the MCP server, for agents
  • Workspace. The whole architecture, kept in one git repo. It also defines the Teams and Environments that every Project shares. See Workspace and Projects.
  • Project. One Team’s slice of the Workspace: a folder of YAML files that the Team edits through pull requests.
  • Team. A group that owns things. Every Element has exactly one Owner Team, shown on every node. See Teams and ownership.
  • Element. A node of the Model: a Person, a System, a Service or a Component. See Elements.
  • Relationship. A directed edge from a consumer Element to the provider it depends on, declared under the consumer. Edges between bigger boxes are derived from it. See Relationships.
  • Deployment. One Service running in one Environment, such as prod, on one Deployment Target, such as a cluster. A Service’s URL lives here. See Deployments.
  • ADR. An architecture decision record: a Markdown file in a Project, linked to the Elements it affects. See Decisions.
  • View. A diagram defined by a query over the Model. Archidocs generates one for every scope, and Teams save their own. See Views.
  • Revision. A commit that changed the Model. The viewer and the MCP server can show the Model at any Revision and compare two. See Revisions and history.
  • The viewer. A static site that shows the Model as diagrams, where every screen is a link. See Use the viewer.
  • The MCP server. Answers the viewer’s questions for agents, and lets them edit the YAML safely. See Agents and MCP.

archidocs check reads every Project at the same commit and combines them into one Model. It checks every reference between Projects, so a typo in another Team’s id fails before it merges.

archidocs build writes that Model as a Workspace Bundle, a single JSON file, for the latest commit and for past Revisions. The viewer and the MCP server read Bundles, never the YAML, so they always agree.

Section titled “The viewer: read-only, and every screen is a link”

archidocs dev serves the viewer on your machine as you edit. archidocs build writes it as a static site, with the Model at every kept Revision.

The viewer only reads the Model. People explore it there: they search, open Systems in place, and turn on a Lens for impact, a path or a Team. To change the Model, they change the YAML.

Everything on screen is held in the URL: the View, what is open, the selection, the Lens and the Revision. Anyone who opens the link sees the same screen. Save as View turns a screen into Saved View YAML, for a pull request.

  • Diagrams drawn by hand go stale. Every diagram here is a query over the validated Model, so changing the YAML redraws every diagram it touches.
  • No single Team knows the whole architecture. Each Team writes down only its own slice, in its own folder. One Workspace combines the slices, so nobody has to ask around for the full picture.
  • Git is already where changes are reviewed. The Model lives in the repo, so a change to the architecture gets the same pull request, review and history as a change to code.
  • Most people arrive from a link. Someone shares a URL in a pull request, a chat thread or an incident channel. So the viewer opens on the answer the link points at, and every screen can be shared the same way.
  • A static site, with nothing to sign in to. It needs no server or database, so CI can publish it to any static host. The host’s own access control decides who can open it.
  • Read-only, so review stays in git. A change made in the viewer would skip review and could disagree with the files. That is also why Save as View writes YAML instead of saving on a server.
  • People and agents ask the same questions. Both read the same Model, so the viewer and an agent can’t give different answers.

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