Everyone has opened an architecture diagram that lied.
The diagram shows three flows. The firewall lets twelve through. The server marked "to be decommissioned" still answers. Nobody lied on purpose: the diagram was right the day it was drawn, and the network moved on.
I built Atlas for that. It is a web editor for IT system architecture: flows, logical and physical architecture, flow matrix, simulations. What sets it apart: it compares the diagram with what is really running, and tells you where it has drifted.
The code is AGPL-3.0: github.com/hi3ris/atlas-si. A public instance runs at atlas.dagban.tg.
What Atlas does
Draw without drawing
You can draw with the mouse, but the fastest way is to import what you already have:
- a flow matrix in Excel or CSV;
- a draw.io drawing or a Mermaid flowchart;
- a
docker-compose.yml, Kubernetes manifests, Terraform; - Nmap output.
Atlas builds the cards, flows, layers and ports, then lays everything out. One matrix line like this is enough:
Source;Destination;Port;Protocole;Statut Portail;API;443;TCP;ouvert API;Base;5432;TCP;prevu Every flow has a status: open, planned, requested, to confirm, closed, fallback. That status is what makes the rest possible.
Four views of one model
- Flows: components sorted by layer, flows colored by category.
- Architecture: the logical view, and a physical view where each device is drawn like the real one in a 19-inch rack, with its ports and cables. Atlas refuses a cable when no port is free.
- Matrix: computed from the diagram, never maintained by hand.
- Simulations: step-by-step scenarios you can replay. An attack simulation can cite the MITRE ATT&CK techniques of each step.
Security questions
On any card, three analyses:
- Attack paths: if this card is compromised, what can it reach, hop by hop, and on which ports?
- Outage: if it goes down, who is hit, and which fallbacks take over?
- Exposure: a score from 0 to 100, with its reasons.
Atlas also writes the rules to open for nftables, iptables, FortiGate or pfSense, from the planned flows. You review, you paste. Nothing is applied on its own.
Drift
This is the part I am proudest of.
You drop in a firewall rule export or connection logs. Atlas compares it with the diagram and sorts the gaps:
- seen on the network, missing from the diagram;
- closed on the diagram, still allowed;
- drawn, but denied by a rule;
- in service on the diagram, never seen.
It then suggests edits. None of them changes a status: an unknown flow becomes "to confirm", the rest becomes an open item. A human decides.
The upload can be automated. A small script with no dependencies runs on a machine that can see the firewall, reads its rules through its API (FortiGate, OPNsense or pfSense) and sends them to Atlas:
PAREFEU_TYPE=opnsense PAREFEU_URL=https://firewall.internal \ PAREFEU_CLE=… PAREFEU_SECRET=… \ ATLAS_URL=https://atlas.example ATLAS_DIAGRAMME=… ATLAS_JETON=… \ node tools/atlas-parefeu.mjs --essai The Atlas server never contacts the firewall: the script pushes. No extra SSRF surface, and the firewall does not have to be reachable from the Internet. The script exits with code 2 when new drift appears: a scheduled job can alert on it, and a webhook notifies the project.
Plug it into your agent in one minute
Atlas is also an MCP server. Your agent (Claude, Claude Code, Cursor or any MCP client) draws and reviews your diagrams for you. There is no token to copy: access is granted with OAuth 2.1, on the site.
The connector URL of the public instance:
https://atlas.dagban.tg/mcp Claude (web or desktop): Settings → Connectors → "Add custom connector", then paste the URL.
Claude Code:
claude mcp add --transport http atlas https://atlas.dagban.tg/mcp Cursor and other clients:
{ "mcpServers": { "atlas": { "url": "https://atlas.dagban.tg/mcp" } } } On first connection, Atlas opens a consent page. You choose:
- read only, write, or proposals only (the agent proposes, you accept or reject);
- all your projects, or just one.
Then you just talk to the agent:
Draw our web portal in Atlas: a WAF in front of two web servers, an API, a replicated PostgreSQL database, and a bastion for admin access. Mark anything you don't know as "to confirm". Then tell me what an attacker can reach if they compromise a web server.
The agent first reads the instance guide (the lire_guide tool), composes the diagram, checks it, saves it and gives you the link. It has about thirty tools: compose from a flow list, Mermaid, draw.io, Docker Compose, Kubernetes or Terraform; add a card or a flow; analyze attack paths; write firewall rules; compare with logs; comment.
The guardrails are the same as for a human, and stricter:
- no tool deletes or shares anything;
- every change creates a version, tagged with the agent's name: one click to roll back;
- a TLP:RED project stays invisible to the agent unless you explicitly allow it;
- access is revoked in one click, and expires on its own after 90 days without use.
For a self-hosted instance it works the same way: the URL is your server followed by /mcp. One file, docs/agents.md, describes everything an agent needs to know. A test checks that it covers every tool, so the docs cannot fall behind the code.
Tool names and the interface's source text are in French (an English translation layer runs in the browser). Agents don't mind: they read the guide and work in your language.
Technical choices
No framework
The interface is index.html plus lib/*.js files. Plain HTML, CSS and JavaScript. No framework, nothing loaded from a third party: even the fonts live in the repo.
That has a cost: you write yourself what a library would give you. It also has upsides. Nothing to build. Nothing that breaks when a dependency updates. And a tool made for sensitive diagrams calls no CDN.
A few things that forced me to write:
- Office exports (Excel, PowerPoint) are zip files full of XML. Atlas writes its own zip in a few dozen lines, and produces slides where links are real connectors: they follow the shapes when you move them in PowerPoint.
- Excalidraw export is JSON where arrows are bound to the shapes.
- English: code and strings stay in French. In English, a translator walks the page at display time. It looks for an exact match first, then templates with holes:
// {} keeps the name as is; {n} takes a number; {t} a text translated in turn. "{n} ligne(s) lue(s), {n} règle(s) après regroupement.": "{n} line(s) read, {n} rule(s) after grouping.", Diagram content is never translated: input fields are excluded. A test sweeps the interface and fails if a French string has no translation.
A lean server
Node 20, Hono and PostgreSQL. Four production dependencies. The server handles accounts (scrypt-hashed passwords, TOTP two-factor), role-based shared projects, versions of every diagram, public links, live presence (SSE) and signed webhooks.
One rule matters a lot: projects marked TLP:RED are invisible to an API token that was not explicitly granted access. You can plug in an agent without worrying it will see what it shouldn't.
Tests everywhere
Four families of tests run on every PR:
- data validation and color contrast (at least 4.5:1, in both themes);
- the API, on a real PostgreSQL database;
- end-to-end tests: the interface in a real browser (Playwright), then the server started with its database;
- translation coverage.
Try it
Online, nothing to install
Go to atlas.dagban.tg and create an account: it opens once an administrator approves it. Everything is there, MCP connector included. Switch the interface to English from the menu.
At home, with Docker
git clone https://github.com/hi3ris/atlas-si && cd atlas-si cp .env.exemple .env Set POSTGRES_PASSWORD in .env, then:
docker compose up -d Open http://localhost:8080 and create the first account. A fictional demo project is included.
Without a server, index.html also opens directly in a browser: import and display work, and the project stays in the browser.
What's missing
I'd rather say it:
- Merged real-time editing isn't done. Two people see they are on the same diagram, but their changes don't merge.
- Two cards carry only one link between them.
- Drift doesn't replay rule order: a broad rule placed before a narrow one can shadow it.
- Firewall object groups aren't expanded: an endpoint is matched if a card has its name or IPv4 address.
- French comes first. The interface is translated, but code, comments and docs are in French.
Contributing
Everything is on github.com/hi3ris/atlas-si. CONTRIBUTING.md covers setup and tests. One rule above all: never real data in the repo: no real organization's diagram, no production address.
Ideas, bugs and feedback are welcome in the issues, in English or French. If you draw architectures for a SOC, a network team or an audit, I'd love to know what you're missing.

