Infralab is a premium, interactive SaaS platform designed to help engineers practice, simulate, and receive AI-driven feedback on system design architectures.
Built with React, TypeScript, Node.js, Express, and MongoDB, it features a drag-and-drop design canvas, real-time request routing simulations, and automated design reviews.
- Interactive Design Canvas: Built on top of React Flow, featuring custom grid guides, custom compute, networking, security, storage, and message-queue nodes.
- Request Flow Traffic Visualizer: Simulate network request flows through your designed components. Watch data split dynamically across Load Balancers in a round-robin visual animation.
- AI-Assisted Architecture Grading: Get real-time grading reports (Score, Strengths, Risks, and Optimization Suggestions) generated dynamically by a Large Language Model (LLM).
- Problem Bank: Complete practice challenges ranging from Easy to Hard (e.g., Design a URL Shortener, Design a Distributed Logger, Design Zoom).
- Undo/Redo & Canvas Actions: Fully integrated keyboard shortcuts (
Ctrl + Z/Ctrl + Y) and panel controls using a custom state-history stack. - Clean Dark Theme: Sleek UI designed from scratch with Tailwind CSS.
Note
Add your workspace screenshots and demo GIFs here to show off the user interface!
| 🖥️ Custom Design Canvas | :---: | :---: |
| 🤖 AI Evaluation Report | | :---: | :---: |
Infralab separates concerns across an interactive React client, a secure Express API gateway, and a document store for designs and problem specifications.
graph TD
Client[React SPA Client] <--> |REST API / JSON| Server[Express API Gateway]
Server <--> |Mongoose ODM| DB[(MongoDB Atlas)]
Server <--> |Google AI SDK| Gemini[Gemini LLM Engine]
- The user builds their system and clicks Submit for Evaluation.
- The frontend extracts the graph schema (nodes with configurations, coordinates, and directed edges) and POSTs it to
/api/evaluation. - The server retrieves the corresponding challenge details, formats a dense prompt context mapping requirements to components, and sends it to the Gemini API.
- The Gemini LLM parses the layout, evaluates it against requirements, and returns a JSON payload matching the evaluation schema.
- The frontend displays the results interactively, updating checklist requirements, score circles, and specific warning panels.
- Core: React 19, TypeScript, Vite
- Canvas Engine:
@xyflow/react(React Flow v12) for node/edge graph visualization - State Management:
zustand(lightweight state slices) - State History:
zundo(time-travel undo/redo middleware) - Styling:
tailwindcss(premium UI color system)
- Runtime: Node.js, TypeScript, Express.js
- Database: MongoDB, Mongoose ODM
- Validation:
zodfor HTTP request schemas - Security:
bcrypt(password hashing),jsonwebtoken(session handling),helmet(security headers), andexpress-rate-limit
infralab/
├── system-design-lab/ # FRONTEND (React App)
│ ├── src/
│ │ ├── components/ # Reusable UI controls (Buttons, Cards, Modals)
│ │ ├── features/workspace/ # React Flow canvas, palette, configs, traffic simulation
│ │ ├── store/ # Zustand global store with Zundo undo/redo middleware
│ │ ├── pages/ # Landing, Canvas Workspace, Dashboard, Leaderboards
│ │ └── api/ # Axios API request clients
│ └── package.json
│
└── system-design-lab-backend/ # BACKEND (Express API)
├── src/
│ ├── controllers/ # Express route request controllers
│ ├── services/ # AI evaluation, auth, and database transactions
│ ├── models/ # Mongoose schemas (User, Problem, Design)
│ ├── validators/ # Zod API request schemas
│ └── scripts/ # Database seeding and testing tools
└── package.json
Follow these steps to run a local instance of Infralab.
- Node.js (v18+)
- MongoDB running locally or a MongoDB Atlas URI
- Navigate to the backend directory:
cd system-design-lab-backend - Install dependencies:
npm install
- Create a
.envfile in the root of the backend folder and add:(Note: If noPORT=5000 MONGODB_URI=mongodb://localhost:27017/infralab JWT_SECRET=your_secret_jwt_key_here GEMINI_API_KEY=your_gemini_api_key_here CORS_ORIGIN=http://localhost:5173
GEMINI_API_KEYis provided, the backend automatically falls back to static mock evaluations so the app remains fully functional). - Seed the database with mock users and the 10 practice problems:
npm run seed
- Start the development server:
The server will start on
npm run dev
http://localhost:5000. You can access interactive Swagger documentation athttp://localhost:5000/api-docs.
- Navigate to the frontend directory:
cd system-design-lab - Install dependencies:
npm install
- Create a
.envfile in the root of the frontend folder and add:VITE_API_BASE_URL=http://localhost:5000/api VITE_GOOGLE_CLIENT_ID=your_google_client_id_here
- Start the Vite development server:
The frontend will launch at
npm run dev
http://localhost:5173.

