Diagram your architecture, capture the requirements behind it, and plan the work to build it, all in one place, collaboratively, without handing your data to a third party.
Open the editor · Documentation · Self-hosting guide
Most teams keep architecture diagrams in one tool, requirements in another, and planning in a third, and the links between them live in people's heads. This editor keeps them connected: a box on a diagram can point at the requirement that justifies it, and a requirement can show you every component that implements it.
It is built for teams that can't put their designs in someone else's cloud. The editor runs entirely in the browser, collaboration is peer-to-peer, and everything the project provides for servers is optional, self-hosted, and designed to work in restricted or air-gapped networks.
- Diagrams: a node-based canvas for system and architecture diagrams, with a component library, icons, and custom shapes.
- Requirements traceability: link diagram components to requirements, and look up a requirement's components in reverse. Export requirements as print-ready PDF documents.
- Planning: Program Increment (PI) planning with capacity reservations, sprint planning, team views, milestones and a timeline, and a dependency view of work items.
- Presentations: build step-by-step "scenarios" on a diagram, present them like slides, or export them as PDF slides, PNG images, an animated GIF or an MP4 video.
- Real-time collaboration: edit together, peer to peer. Document data flows directly between browsers.
- Offline and installable: works as a PWA, with documents stored locally in the browser.
- Optional team store: a self-hosted document store with single sign-on, for teams that want shared workspaces that outlive any one browser. Groups from your identity provider give whole teams their workspaces, with viewer, editor and owner roles.
Only the editor is required. Add the other pieces as you need them.
flowchart LR
subgraph Browser
E[Editor<br/>static site / PWA]
end
E <-- "peer-to-peer<br/>(document data)" --> E2[Other editors]
E -. "handshake only" .-> R[Relay<br/>optional]
E -. "workspace documents" .-> S[Store<br/>optional]
S --> DB[(PostgreSQL)]
S --> IdP[OIDC provider<br/>Keycloak, Entra ID, Okta, GitHub…]
| Component | Needed for | What it sees |
|---|---|---|
| Editor | Everything | Your documents, in your browser only |
| Relay | Real-time collaboration | Only the initial handshake between browsers; it is out of the path once connected |
| Store | Shared, persistent workspaces | The documents people put in workspaces, and who is signed in |
With no relay configured, collaboration is disabled. With no store configured, nothing leaves the browser. A store keeps workspace documents as the editor sends them, so the server and its administrators can read them: run it inside your own network.
Open the hosted editor. Your documents stay in your browser.
docker run -d -p 8080:80 \
-e RELAY="wss://relay.example.com" \
-e APP_URL="https://design.example.com" \
ghcr.io/jbraunsmajr/system-design:latestBoth variables are optional. See docs/container-configuration.md for the full reference, Compose examples, and reverse-proxy setup.
Start a relay:
docker run -d -p 4444:4444 ghcr.io/jbraunsmajr/system-design-relay:latestThen either set Share → Settings → Relay server URL to ws://localhost:4444 in the editor, or bake in a default at build time:
VITE_SIGNALING_URL="wss://relay.example.com" npm run builddocs/relay-server.md covers TLS, access control, STUN/TURN, isolated networks, and troubleshooting.
A complete example with the editor, relay, store, PostgreSQL, and Keycloak:
docker compose -f docker/store/compose.yaml up --buildOpen http://localhost:8088, then File → Documents, and sign in as demo / demo. That account is a store administrator: choose New workspace, then Add a copy to … to put the open diagram in it. otter / otter is in the group /design-team-a; give that group a role under Members and Otter has the workspace at their next sign-in.
This demo uses a placeholder client secret, demo accounts, a throwaway database password, an open relay, and plain HTTP. Read docs/store-deployment.md before deploying it for real.
| Image | Purpose |
|---|---|
ghcr.io/jbraunsmajr/system-design |
The editor (nginx, static) |
ghcr.io/jbraunsmajr/system-design-relay |
Collaboration relay |
ghcr.io/jbraunsmajr/system-design-store |
Workspace store |
Requires Node.js 26 (matching CI).
npm install
npm run dev # editor at http://localhost:5173/system-design/
npm run build # editor + docs site, output in dist/
npm run preview # serve the production build locallyBefore pushing, run the checks CI runs on every push:
npm run format:check # Prettier; fix with `npm run format`
npm run lint # ESLint; warnings are allowed, errors are not
npm run typecheck # TypeScript, no emitPushing to main builds and deploys to GitHub Pages. For a first-time setup on a fork, set Settings → Pages → Source to GitHub Actions. The Vite base in vite.config.ts is /system-design/ to match the repo name; update it if you rename the repo.
- React + TypeScript, built with Vite
- React Flow (
@xyflow/react) for the canvas - Yjs for conflict-free collaborative editing, over WebRTC
- VitePress for the documentation site (
docs-site/) - Node.js + PostgreSQL for the optional store (
store/)
| Path | Contents |
|---|---|
src/ |
The editor |
store/ |
The optional store: service, schema.sql, openapi.json |
docker/ |
Images, nginx config, and the full-stack Compose example |
docs/ |
Operator docs kept in the repo |
docs-site/ |
The published documentation site |
scripts/ |
Test runner, verification suites, and operational tools |
fixtures/, baselines/ |
Performance test workloads and their baselines |
npm test # all suites, in parallel
npm test -- store # only suites whose path contains "store"
npm test -- --jobs=4 # cap concurrency (or TEST_JOBS=4)
npm test -- --serial # one at a timeSuites are the *.verify.ts files under src/ and the scripts/verify-*.ts scripts. Browser suites need Playwright's Chromium (npx playwright install chromium). Suites that need PostgreSQL or Keycloak skip themselves unless DATABASE_URL or the Keycloak settings are provided (see .github/workflows/test.yml for the exact variables).
Performance regressions are gated in CI. See docs/performance-testing.md for the harness and npm run test:perf:local to run it yourself.