Live app: studio.radical.tools | Architecture Hub: hub.radical.tools | Manual: radical.tools/manual.html
An open-source software architecture design studio — diagram, document, and evolve architecture using C4, domain models, governance concepts, and AI assistance. Electron + React desktop app (also runs in the browser).
- C4 model — Person, Software System, Container, Component, Database, Web App, Queue, Relation
- Domain & Governance elements — Domain, ADR, Fitness Function, Requirement, Blueprint
- Smart Layout — SA-based auto-layout with crossing minimisation, edge-length optimisation, aspect-ratio penalty, and compound parent fitting
- Multiple layout engines — ELK (hierarchical/layered/force), webcola (live physics), custom Smart Layout pipeline
- AI assistant — chat with OpenAI / Anthropic / Gemini / Ollama to generate and modify diagrams
- Architecture Hub — browse and import 70+ curated architecture concepts (patterns, fitness functions, ADRs, requirements) from hub.radical.tools
- Multiple views — Canvas, Matrix, Sequence, Treemap, Table, Wiki per diagram
- Presentation mode — fullscreen slides with navigation bar
- Metamodel editor — customise node types, relation types, and constraints
- Time travel — milestone-based snapshots with named undo/redo
- Document manager — multiple diagrams, localStorage + file-system backed
- Export — PNG/SVG export, JSON save/load, Electron file dialogs
| Layer | Technology |
|---|---|
| Shell | Electron 29 |
| Bundler | electron-vite + Vite 5 |
| UI | React 18 + ReactFlow 11 |
| State | Zustand + Immer |
| Layout | ELK.js, webcola, custom SA pipeline |
| Language | TypeScript 5 |
Prerequisites: Node.js ≥ 20, npm ≥ 9
# Install dependencies
npm install
# Start in development mode (Electron, hot-reload)
npm run dev
# Type-check
npm run typecheck
# Run tests
npm test
# Production build (outputs to out/)
npm run build
# Run built Electron app
npm start
# Build web-only renderer (for deployment to studio.radical.tools)
npm run build:websrc/
main/ Electron main process (IPC handlers, file dialogs)
preload/ contextBridge API surface exposed to renderer
renderer/src/
components/ React UI (Canvas, Toolbar, Panels, Modals, …)
layout/ Layout algorithms (smartLayout, elkLayout, colaLayout, …)
store/ Zustand stores (diagramStore, documentStore, hubStore)
ai/ AI integration (providers: OpenAI, Anthropic, Gemini, Ollama)
types/ C4 + metamodel TypeScript types
hub/ Architecture Concept Hub static site (hub.radical.tools)
website/ Marketing site (radical.tools)
infra/ Terraform — AWS S3 + CloudFront + Route53 + IAM (OIDC)
tools/
vscode-radical/ VS Code extension for .radical file syntax highlighting
tests/ Vitest unit/integration tests + layout benchmarks
docs/ Architecture notes and improvement log
# All tests (vitest)
npm test
# Watch mode
npm run test:watchMIT