Visual architecture diagrams that produce validated, machine-readable code.
Draw on a canvas. Get CALM JSON automatically. Let AI generate architectures for you.
Architecture diagrams are everywhere — but they rot. They're images no tool can read, no CI can validate, and no AI can generate. CALM (Common Architecture Language Model) fixes this with a JSON schema for architecture-as-code. CalmStudio makes CALM visual.
- Draw visually — drag typed nodes onto a canvas, connect them with typed relationships, nest services inside containers
- Get code automatically — every diagram change produces valid CALM JSON in real time
- AI-native — an MCP server lets Claude Code and other AI assistants create architectures from text descriptions
- FINOS standard — outputs validate against
calm validatefrom day one
- 9 CALM node types with distinct shapes (Actor, System, Service, Database, Network, Webclient, Ecosystem, LDAP, Data Asset)
- 5 relationship types with distinct edge styles (connects, interacts, deployed-in, composed-of, options)
- Sub-flow containment for deployed-in and composed-of relationships
- Drag from palette or click to place, multi-select, resize, copy/paste
- ELK.js hierarchical auto-layout with pin support
- Dark mode, keyboard shortcuts, search/filter
- CALM JSON code panel with syntax highlighting (CodeMirror)
- Edit the diagram → code updates. Edit the code → diagram updates.
- Direction mutex prevents infinite loops
- Properties panel for editing node metadata, interfaces, and controls
- Import existing CALM JSON files with automatic ELK layout
- Export as CALM JSON, SVG, or PNG
- Native file system access (open, save, save-as) with dirty state tracking
- Install:
npx @calmstudio/mcp - 21 MCP tools: architecture CRUD, node CRUD, relationship CRUD, validate, render, export/import
- Claude Code creates complete architectures from text descriptions
- Dual transport: stdio (CLI) and streamable HTTP (Claude Cowork)
- Zero config, zero API keys — pure function, AI client does the interpretation
- Node.js >= 22 (required by
engine-strictin the monorepo)
git clone https://github.com/finos/architecture-as-code.git
cd architecture-as-code
npm ci
npm run build --workspace=@calmstudio/calm-core
npm run build --workspace=@calmstudio/extensionsRun the studio:
npm run dev --workspace=@calmstudio/studioOpen http://localhost:5173.
Use with Claude Code:
claude mcp add --transport stdio calmstudio -- npx @calmstudio/mcpThen ask Claude: "Create a microservices architecture with an API gateway, three services, and a database"
The generated .json file opens directly in CalmStudio.
calmstudio/
├── apps/
│ └── studio/ # SvelteKit web app (Svelte 5 + Svelte Flow)
├── packages/
│ ├── calm-core/ # CALM types (CalmNode, CalmRelationship, CalmArchitecture)
│ ├── mcp-server/ # MCP server (21 tools, stdio + HTTP transport)
│ ├── calmscript/ # DSL parser and compiler (coming soon)
│ └── extensions/ # Extension pack system (coming soon)
├── CONTRIBUTING.md
├── CODE_OF_CONDUCT.md
├── SECURITY.md
├── MAINTAINERS.md
└── NOTICE
| Layer | Technology |
|---|---|
| Framework | Svelte 5 + SvelteKit |
| Canvas | @xyflow/svelte (Svelte Flow) |
| Code editor | CodeMirror 6 |
| Layout | ELK.js (hierarchical, orthogonal routing) |
| MCP | @modelcontextprotocol/sdk |
| Styling | Tailwind CSS |
| Testing | Vitest + Playwright |
| Desktop | Tauri 2 (coming soon) |
| Data format | CALM JSON (FINOS standard) |
CalmStudio ships in phases. Each delivers a standalone, verifiable capability.
| Phase | Status | What it delivers |
|---|---|---|
| 1. Foundation & Governance | Done | Apache 2.0, FINOS files, CI/CD |
| 2. CALM Canvas Core | Done | Typed nodes, edges, containment, UX |
| 3. Properties & Sync | Done | Code panel, properties, bidirectional sync |
| 4. Import/Export/Layout | Done | CALM JSON import, ELK layout, file export |
| 5. MCP Server | Done | 21 AI tools, dual transport, zero config |
| 6. CALM Validation | Next | Real-time schema validation with inline indicators |
| 7. Extension Packs | Planned | AWS, GCP, Azure, Kubernetes, AI/Agentic node types |
| 8. calmscript DSL | Planned | Mermaid-like text format for CALM |
| 9. Desktop App | Planned | Tauri 2 native app (macOS, Windows, Linux) |
| 10. Patterns & Docs | Planned | Architecture templates, Docusaurus site |
| 11. Testing Suite | Planned | London School TDD, E2E, component tests |
| 12. Ecosystem | Planned | VS Code extension, GitHub Action, web component |
CalmStudio uses a comprehensive test suite across all packages:
| Package | Threshold | Command |
|---|---|---|
| calm-core | 90% | npm run test:coverage --workspace=@calmstudio/calm-core |
| extensions | 80% | npm run test:coverage --workspace=@calmstudio/extensions |
| mcp-server | 80% | npm run test:coverage --workspace=@calmstudio/mcp |
| studio | 60% | npm run test:coverage --workspace=@calmstudio/studio |
Run all tests:
npm run test --workspaces --if-presentRun with coverage (enforces thresholds):
npm run test:coverage --workspaces --if-presentRun E2E tests (requires dev server running on port 5173):
npm run test:e2e --workspace=@calmstudio/studioCoverage reports are uploaded as CI artifacts on every build. E2E tests run automatically on merge to main.
We welcome contributions! Please read our Contributing Guide for details on:
- Fork and pull request workflow
- DCO sign-off requirements (required on every commit)
- Conventional commit format
- Local development setup
npm run build --workspaces --if-present # Build all packages
npm run test --workspaces --if-present # Run all tests
npm run typecheck --workspaces --if-present # TypeScript type check
npm run lint --workspaces --if-present # Lint all packagesThis project uses Conventional Commits with scoped prefixes:
feat(studio): add dark mode toggle
fix(mcp-server): use .json extension for compatibility
docs(calm-core): update type documentation
All commits require a DCO sign-off:
Signed-off-by: Your Name <your.email@example.com>
- Code of Conduct — Contributor Covenant v2.1
- Security Policy — Vulnerability disclosure via GitHub Security Advisories
- Maintainers — Project governance and maintainer list
- NOTICE — Third-party attribution
Copyright 2024-2025 CalmStudio contributors — see NOTICE.
Distributed under the Apache License, Version 2.0.
See SPDX headers in each file for per-file licensing.
