A visual architecture design platform with enterprise-grade security, AI-assisted diagramming, and a high-performance canvas engine.
Meshwork Studio lets you design system architecture diagrams by dragging infrastructure components onto an infinite canvas and connecting them. Think of it as Figma for backend engineers — you can visually map out your servers, databases, VPCs, Kubernetes clusters, and more.
- 🎨 60+ Infrastructure Components — Drag-and-drop servers, databases, load balancers, Lambda functions, Kubernetes pods, and more onto a visual canvas
- 🧠 AI-Assisted Design — Bring your own OpenAI/Anthropic API key to generate architecture suggestions (keys are AES-256 encrypted, never stored in plaintext)
- 📦 Spatial Containment — Drop an EC2 instance into a VPC and it automatically nests inside, just like real infrastructure
- ⚡ Smart Sync — Canvas documents are validated and persisted in DynamoDB, with browser recovery for interrupted edits
- 🔐 Security Hardened — IDOR protection, brute-force lockouts, CSRF tokens, rate limiting, and PII-safe logging
- 📁 Workspaces & Collections — Organize diagrams into projects with nested folder structures
- 🎭 Dark/Light Themes — Full theme support
- 🐳 Docker-Ready — One command to launch the full stack with NGINX, Postgres, and the app
┌────────────────────┐ ┌────────────────────┐ ┌────────────────────┐
│ CLIENT LAYER │ │ NGINX GATEWAY │ │ API SERVER │
│ (React + Vite) │◄───►│ (Host :5000) │◄───►│ (Express) │
│ │ │ │ │ │
│ • React 18 │ │ • Reverse Proxy │ │ • Go Auth Service │
│ • React Flow │ │ • Static Assets │ │ • Drizzle ORM │
│ • TanStack Query │ │ • Gzip + Caching │ │ • Zod Validation │
│ • Tailwind + Radix │ │ • SPA Fallback │ │ • AES-256 BYOK │
└────────────────────┘ └────────────────────┘ └────────┬───────────┘
│
┌────────────────────┼────────────┐
│ DATA LAYER │ │
│ ▼ │
│ ┌──────────────┐ ┌────────┐ │
│ │ PostgreSQL │ │ Postgres│ │
│ │ Auth DB │ │ Work DB │ │
│ │ :5433 │ │ :5434 │ │
│ └──────────────┘ └────────┘ │
└─────────────────────────────────┘
- Docker Desktop for the supported local stack
- Node.js 20.19+ and npm 10+ for repository commands
git clone https://github.com/Andiewitz/Meshwork-Studio.git
cd Meshwork-Studio
npm ci
npm run setup
docker compose up --build
# Visit http://localhost:5000npm run setup generates local-only credentials and configuration in ignored
.env. Docker starts the Node app, Go identity service, PostgreSQL, Redis,
DynamoDB Local, and NGINX together. No AWS account or AI provider key is needed
for this local flow.
Use this when changing server code with hot reload. Docker still supplies the data services; the Go identity service is required for login.
npm ci
npm run setup
docker compose up -d meshwork-postgres meshwork-dynamodb-local meshwork-redis
make -C server/services/auth run
# In another terminal:
npm run dev| Technology | Purpose |
|---|---|
| React 18 | UI framework |
| TypeScript | Type safety across the full stack |
| React Flow | Node-based visual diagram editor |
| TanStack Query | Server state management with caching |
| Tailwind CSS | Utility-first styling |
| Radix UI | Accessible component primitives |
| Framer Motion | Page transitions |
| Wouter | Lightweight client-side routing (2KB) |
| Technology | Purpose |
|---|---|
| Express 5 | Monolith API server |
| Go 1.26 | Auth service: sessions, MFA, OAuth, audit |
| Argon2id | Password hashing (transparent bcrypt upgrade) |
| Drizzle ORM | Type-safe PostgreSQL queries |
| Zod | Runtime schema validation |
| Redis | Session cache, rate limits, pub/sub revocation |
| AES-256-GCM | API key encryption for BYOK AI + MFA secrets |
| Technology | Purpose |
|---|---|
| Docker Compose | Multi-container orchestration |
| NGINX | Reverse proxy, static serving, gzip |
| Vitest | Unit and integration testing |
| Playwright | End-to-end browser testing |
| Drizzle Kit | Database schema migrations |
# Development
npm run dev # Monolith + frontend on :5000
make -C server/services/auth run # Auth service on :8081 (required — auth
# endpoints are served by Go, not Express)
npm run check # TypeScript type checking
# Testing
npm run test:run # Run all tests
npm run test:system # DynamoDB/WebSocket tests; requires DynamoDB Local
npm run test:coverage # Generate HTML coverage report
# Production
npm run build # Bundle client + server
npm run start # Start production server
# Database
npm run db:backup # verified Postgres + canvas archive; requires BACKUP_S3_URI
npm run diagnose # Verify required config is present and valid
# Docker
docker compose up --build # Start full stack
docker compose logs -f # Tail all container logs
docker compose down # Stop containers and retain data volumesUse docker compose down -v only when you deliberately want to erase local
PostgreSQL, Redis, and DynamoDB data.
Every major system has its own deep-dive guide:
| Document | What You'll Learn |
|---|---|
| Security Architecture | Auth flows, IDOR protection, brute-force lockouts, AES-256 encryption, CSRF, rate limiting, PII redaction |
| Auth Architecture | The Go identity service: sessions, MFA, OAuth, threat model, cutover/rollback |
| Canvas Engine | How drag-and-drop works, spatial containment logic, and validated canvas synchronization |
| Canvas Schema | ReactFlow node/edge structures and canvas data model |
| Canvas Persistence | Browser recovery cache plus DynamoDB document persistence |
| Workspace & Collections API | REST API reference for workspaces and collections, IDOR pattern, client hooks |
| AI Engine Guide | Bring-your-own-key AI integration, encryption flow, and API endpoints |
| Design System | Canonical visual language, semantic tokens, component rules, and accessibility baseline |
| Theming implementation | Token implementation and requirements for a future supported theme |
| Settings & Privacy | User profile management, security settings, account controls |
| Testing Strategy | The testing pyramid, how to run tests, how to write new ones |
| Infrastructure Topology | Current single-EC2 topology, private dependencies, and measured growth triggers |
| Deployment Runbook | Production deploy paths, verification checklist, and rollback |
| CI/CD Operations | Required CI gates, promotion, releases, and failure triage |
| Secrets Inventory | Every secret: generation, consumers, rotation & blast radius |
| Observability | Health, metrics, logs, alert policy, and first response |
| Recovery | Off-host archive, restore drills, and production recovery safeguards |
| Credential Response | Private rotation and verification procedure for an exposed secret |
| Issue & Post-Mortem Log | Capacity, incidents, root causes, and fixes |
Historical documents (tickets, investigations, older audits) live in
docs/archive/.
Meshwork Studio deploys to a single EC2 instance:
- Deploy paths: GitHub Actions on push to
main, or local./scripts/deploy.sh(dist-swap + Go auth binary). Full runbook:docs/operations/DEPLOYMENT.md. - Topology: NGINX (TLS, static frontend) → Go auth service :8081 + Node monolith :5000 → Dockerized Postgres ×2 + Redis.
- Future ECS path: an archived Terraform stack lives in
docs/archive/terraform/if horizontal-scale migration ever becomes a priority.
Security controls are covered by focused unit, integration, and Go-service tests:
| Feature | Implementation |
|---|---|
| IDOR Protection | Every data endpoint verifies resource ownership — tested with cross-user attack simulations |
| Brute-Force Lockout | Progressive delays (1min → 5min → 15min → 30min → 60min) after failed login attempts |
| CSRF Protection | Double-submit cookie pattern on all 15 state-changing endpoints |
| Rate Limiting | 100 req/min globally, 10 req/15min on auth routes |
| API Key Encryption | AES-256-GCM with unique IVs — keys never stored in plaintext |
| PII-Safe Logging | Production logs automatically redact emails, passwords, tokens, and API keys |
| Input Validation | 4-layer defense: Client → Zod → Drizzle ORM → React output encoding |
| Type Safety | TypeScript contracts and runtime validation at API boundaries |
Read the full Security Architecture for details.
meshwork-studio/
├── client/ # React frontend
│ └── src/
│ ├── features/workspace/ # Canvas components and utilities
│ ├── hooks/ # React Query hooks
│ ├── lib/ # secureFetch, CSRF, query client
│ └── pages/ # Route-level page components
├── server/ # Everything server-side
│ ├── services/
│ │ ├── auth/ # Go identity service (sessions, MFA,
│ │ │ # OAuth; api/openapi.yaml inside)
│ │ ├── canvas/ workspace/ # TS domain services
│ │ └── team/ ai/ metrics/
│ ├── auth/ # Assertion verifier + CSRF (tiny)
│ ├── middleware/ # Rate limiting
│ └── types/
├── client/src/ # React frontend
├── deploy/ # Infra artifacts: nginx.conf, user-data, RDS notes
├── docs/operations/ # deployment, EC2, and secrets runbooks
├── scripts/ # deploy.sh, build.ts, backup-db.ts, guards
├── docs/ # Deep-dive documentation (+ docs/archive/)
├── docker-compose.yml # Full stack local orchestration
└── vitest.config.ts # Test runner configuration
Run npm run setup to generate a complete local .env, or copy
.env.example when integrating an existing development
environment. Production configuration is separate: use a secret manager and the
secrets inventory, never the generated file.
- Contributing Guide — Setting up local dev, testing standards, and pull request workflow
- Code of Conduct — Our community standards and expectations
- Security Policy — Responsible vulnerability reporting and security SLAs
All product names, logos, brands, and registered trademarks (including AWS, Google Cloud, Docker, Oracle, Kubernetes, Redis, GitHub, and others) displayed or referenced in this project are the property of their respective owners. Their inclusion in diagramming nodes, templates, and documentation is strictly for technical architecture visualization and educational purposes and does not imply endorsement, affiliation, or sponsorship.
Meshwork Studio is open-source software licensed under the MIT License.
Built with TypeScript, secured by design.