ozers/system-design-canvas
Sobre
Local-first, open-source canvas for system architecture. Services, queues, caches & the protocols between them; templates, presentation mode, Mermaid/PNG/SVG export. No sign-up, runs in the browser.
Ferramentas de desenvolvimentoO que você pode fazer
- 9 templates — Microservices, Monolith, Event-Driven, Client-Server, Serverless, Data Pipeline, Real-time Analytics, Serverless Fullstack, Kubernetes Platform
- 19 component types — Services, Databases, Caches, Queues, Load Balancers, CDNs, API Gateways, Serverless Functions, and more — plus groups and sticky notes
- 9 connection types — REST, gRPC, GraphQL, WebSocket, Pub/Sub, MQTT, SSE, TCP, DB Query
- Component library — Searchable, collapsible panel; drag onto the canvas or click to add
Crescimento medido de estrelas
- em 24 h
- +1
- em 7 dias
- +1
- em 15 dias
- Coletando histórico
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalSystem Design Canvas
Think through your system architecture before you build it.
A free, open-source visual tool for sketching system architectures. Drop components, wire them together, see your design take shape — all in the browser.
No sign-up. No servers. No data leaving your machine.

Why?
Most system design happens on whiteboards that get erased, or in docs that nobody reads. System Design Canvas sits in between — a focused tool where you think visually about services, databases, queues, and how they connect, without the overhead of a full diagramming suite.
It's opinionated by design. Instead of a blank canvas with infinite shapes, you get the building blocks that actually matter: component types and connection types that map directly to real infrastructure patterns.
Features
Design
- 9 templates — Microservices, Monolith, Event-Driven, Client-Server, Serverless, Data Pipeline, Real-time Analytics, Serverless Fullstack, Kubernetes Platform
- 19 component types — Services, Databases, Caches, Queues, Load Balancers, CDNs, API Gateways, Serverless Functions, and more — plus groups and sticky notes
- 9 connection types — REST, gRPC, GraphQL, WebSocket, Pub/Sub, MQTT, SSE, TCP, DB Query
- Component library — Searchable, collapsible panel; drag onto the canvas or click to add
- Node & connection editors — Name, type, tech stack with suggestions, description, capacity and instance count, latency / format / throughput, reverse direction
- Multi-select actions — Group, align, duplicate, delete; right-click menus for everything
- Design checks — Flags disconnected components, likely bottlenecks and missing tech stacks as you work
- Capacity checks — Give a component a capacity per instance and an instance count, write a throughput on the connections coming in, and the card shows load against limit (
1.2k / 1k req/s · 120%). Over 100% is a warning, 80% and up a note. It adds up the numbers you wrote; it does not simulate traffic - Path latency — Write a latency on the connections and each component shows the slowest request path that reaches it (
77 ms · Client → Load Balancer → API → Database). Asynchronous hand-offs are not counted - Auto-layout — One-click arrangement with dagre
Practice & AI
- Practice briefs — Six system design problems (URL shortener, rate limiter, chat, home timeline, upload pipeline, notification service), each with requirements, figures to design for, a checklist that updates as you draw, hints and a reference design. The checklist looks at component types and connections, so it is a guide, not a grade
- Edit with AI — Copy a prompt that holds your design into the assistant you already use, paste its answer back, see what would change, then apply it as one undo step. The app calls no model and sends nothing anywhere; the format is documented at
/llms-full.txt
Share & present
- ⌘K command menu — Add components, run actions, jump to nodes or projects
- Presentation mode — Walks the diagram one component at a time, dims everything else and shows a story card per node
- Export — PNG (1×–3×, transparent background), SVG, JSON and Mermaid, with preview and copy to clipboard
- Share links — The whole design is compressed into the URL; recipients preview it and save their own copy
- Import — Project JSON (drag a file onto the dashboard) or a
docker-compose.yml
App
- Studio design system — Warm neutral OKLCH tokens, light / dark / system theme
- Settings — Theme, snap to grid, minimap, design checks, animated edges, export / import / clear all data
- Keyboard shortcuts — Press
?to see them all - Responsive — Library becomes a bottom sheet and editors become drawers on narrow screens
- 100% client-side — localStorage persistence, static export, deploys to any static host
Screenshots
Dashboard — project list & templates
| Light | Dark |
|---|---|
![]() |
![]() |
Canvas — drag-and-drop architecture editor
| Light | Dark |
|---|---|
![]() |
![]() |
Presentation mode

Quick Start
git clone https://github.com/ozers/system-design-canvas.git
cd system-design-canvas
npm install
npm run dev
Open http://localhost:3000 and create your first project.
Keyboard Shortcuts
| Action | Keys |
|---|---|
| Command menu | ⌘ K |
| Keyboard shortcuts | ? |
| Toggle library | / |
| Fit view | F |
| Present | P |
| Duplicate | ⌘ D |
| Delete | ⌫ |
| Reverse connection | ⇧ R |
| Undo / Redo | ⌘ Z / ⇧ ⌘ Z |
| Copy / Paste | ⌘ C / ⌘ V |
| Select all | ⌘ A |
| Close panel | Esc |
On Windows and Linux use Ctrl instead of ⌘.
Templates
| Template | Architecture |
|---|---|
| Microservices | Client → LB → API Gateway → Services → DBs + Queue |
| Monolith | Client → LB → Monolith → DB + Cache |
| Event-Driven | Producers → Event Bus → Consumers → DBs |
| Client-Server | Client → CDN → API Server → DB + Cache |
| Serverless | Client → API Gateway → Lambda → DynamoDB + S3 |
| Data Pipeline | Sources → Kafka → Stream Processors → Warehouse |
| Real-time Analytics | LB → Ingest API → Kafka → Processing + Search |
| Serverless Fullstack | CDN → API Gateway → Lambda → DynamoDB + SQS |
| Kubernetes | Ingress → K8s Cluster → Services + Monitoring |
Tech Stack
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router, Turbopack, static export) + React 19 |
| Language | TypeScript |
| Canvas | React Flow v12 |
| State | Zustand |
| Styling | Tailwind CSS v4 + shadcn/ui (Radix), OKLCH design tokens |
| Fonts & icons | Geist, Geist Mono, lucide-react |
| Layout | dagre |
| Export | html-to-image |
| Sharing | lz-string |
| Import | js-yaml (docker-compose) |
| Validation | Zod |
| Hosting | Vercel, Cloudflare Workers (static assets) |
Development
npm run dev # Dev server with Turbopack
npm run build # Static export to ./out
npm run lint # ESLint
npm test # Vitest unit tests
npm run deploy:cloudflare # Build and deploy ./out to Cloudflare Workers
Deployment
The app is fully client-side and builds to static files (output: "export" → ./out), so any static host works.
| Host | How | Config |
|---|---|---|
| Vercel | Git integration — main deploys to production, PRs get previews |
vercel.json (redirects old /canvas/:id links) |
| Cloudflare Workers | npm run deploy:cloudflare (requires wrangler login) |
wrangler.jsonc (static assets, 404 page) |
Moving users to a new address
Projects are stored in localStorage, which belongs to a single origin — a new domain starts empty. To move users gradually, set on the old deployment:
NEXT_PUBLIC_MIGRATE_TO=https://your-new-domain.example
The dashboard then shows a banner. Move my projects carries projects and settings to <new domain>/import inside the URL hash (never sent to a server), where they are previewed and merged. Unset the variable to turn the banner off; nothing is deleted either way.
Analytics (off by default)
The default build loads no analytics script and makes no analytics request. To count page views with Cloudflare Web Analytics, set the site token from the Cloudflare dashboard (Web Analytics → Manage site) at build time:
NEXT_PUBLIC_CF_BEACON_TOKEN=your-site-token npm run deploy:cloudflare
The build then adds Cloudflare's manual-setup beacon to every page, and the landing page's privacy copy says page views are counted. Cloudflare states the beacon uses no client-side state such as cookies or localStorage and does not fingerprint visitors, and that Web Analytics does not collect visitors' personal data (about). The beacon reports to cloudflareinsights.com; with a Content Security Policy, allow https://static.cloudflareinsights.com/beacon.min.js in script-src and cloudflareinsights.com in connect-src. Diagrams stay in localStorage; the beacon strips the query string and fragment from the URLs it reports, so share-link payloads are not sent.
Contributing
Issues and pull requests are welcome. See CONTRIBUTING.md for setup, project layout and how to add a component type or template; changes are listed in CHANGELOG.md.
License
Explore projetos relacionados
Carregando…



