system-design icon indicating copy to clipboard operation
system-design copied to clipboard

Provide a comprehensive collection of system design concepts and examples using `Mermaid diagrams` and `draw.io`.

DeepWiki

System Design Repository

A comprehensive collection of system design concepts and examples using Mermaid diagrams and draw.io, featuring real-world architectures, flowcharts, and sequence diagrams.

📋 Table of Contents

  • System Design Repository
    • Overview
    • Technologies
      • 🧩 Mermaid
      • 📐 draw.io
    • Project Structure
    • AI Agent
      • Claude Code Dynamic Workflows
      • Loop Engineering
      • Claude Code Custom Status Line
    • Architecture Diagrams
      • Popular Product System Designs
      • 🏗️ CI/CD & DevOps
      • 🤖 AI Integration
      • 🛒 E-Commerce Systems
    • Flowcharts
      • 🤖 AI & Automation
      • 🎮 Gaming & Betting Systems
      • 💰 Reward & Token Systems
      • 🔄 Dynamic Loading Patterns
    • Sequence Diagrams
      • 📊 Data Flow Sequences
    • SDLC
      • 🌿 Git Flow
    • Getting Started
      • Viewing Mermaid Diagrams
      • Viewing draw.io Diagrams
      • Quick Links
    • Contributing
    • License

Overview

This repository serves as a practical reference for system design patterns and architectural solutions. It includes various diagram types that illustrate software architectures, data flows, and system interactions across different domains including e-commerce, CI/CD pipelines, gaming systems, and AI applications.

Technologies

🧩 Mermaid

Mermaid is a JavaScript-based diagramming and charting tool that renders Markdown-inspired text definitions to create and modify diagrams dynamically. It supports:

  • Flowcharts
  • Sequence diagrams
  • Class diagrams
  • State diagrams
  • Entity Relationship diagrams
  • Gantt charts
  • And more...

📐 draw.io

draw.io (diagrams.net) is a free, open-source diagramming application that allows you to create professional diagrams. Features include:

  • Wide variety of diagram types (UML, ER, Network diagrams, etc.)
  • Multiple export formats (PNG, JPEG, SVG, PDF)
  • Integration with cloud storage services
  • Offline and online editing capabilities

Project Structure

system-design/
├── ai-agent/              # AI agent designs and runnable artifacts
│   ├── claude-code-workflows/ # Claude Code dynamic-workflows write-up + workflow scripts
│   ├── loop-engineering/  # Bounded gate-and-loop-back in a gated SDLC workflow
│   └── claude-code-statusline/ # Claude Code custom status-line setup guide + script
├── architecture/          # System architecture diagrams
│   ├── ai-integration/   # AI integration and LLM proxy designs
│   ├── eCommerceWebSite/ # E-commerce system designs
│   ├── jenkins/          # CI/CD pipeline architectures
│   ├── netflix/          # Netflix streaming design pack
│   ├── syncStatusWith3rdParty/ # Third-party integration patterns
│   └── uber/             # Uber ride-hailing design pack
├── flowchart/            # Process flow diagrams
│   └── dynamicLoading/   # Frontend component loading patterns
├── sdlc/                 # Software development lifecycle diagrams
│   └── git-flow-in-real-world/ # Git branch promotion and hotfix flows
├── sequenceDiagram/      # Interaction sequence diagrams
└── LICENSE              # MIT License

AI Agent

Designs and runnable artifacts for building AI agents. See ai-agent/ for the full index.

Claude Code Dynamic Workflows

  • Claude Code Dynamic Workflows - A practical guide to dynamic workflows on Claude Code (the orchestration layer that fans out tens to hundreds of sub-agents in one session and verifies its own work), the six reusable patterns, and two runnable workflow scripts — code-review-fanout.js and sdlc-workflow.js. Includes a 繁體中文版.

Loop Engineering

  • Loop Engineering - How a gated SDLC workflow loops a failed review gate back to its producer, bounded so it always terminates — the agentic loop / evaluator-optimizer pattern with a line-linked walkthrough of sdlc-workflow.js and a deep-research-verified references section (Anthropic, OpenAI/LangChain, ReAct/Self-Refine/Reflexion).

Claude Code Custom Status Line

  • Claude Code Custom Status Line - A guide to reproduce a rich single-line status bar (directory + branch, model, context-window remaining, 5h/7d rate limits, session cost) with a zero-dependency. e.g.
    my-project | feat/my-branch │ Fable 5 │  ━━━━━━┄┄┄┄ 63% │  5h:88% │  7d:15% │  $1.23
    

Architecture Diagrams

Popular Product System Designs

  • Design Uber - Ride request, trip lifecycle, and live location update diagrams with source-backed fulfillment and push-delivery boundaries
  • Netflix Video Processing Pipeline Rebuild - Cosmos pipeline decomposition, media service boundaries, and VES workflow diagrams

🏗️ CI/CD & DevOps

  • Jenkins CI/CD Architecture - C4 context diagram showing Jenkins and Git repositories integration
  • Sync Status with 3rd Party - Architecture for synchronizing data with external systems

🤖 AI Integration

  • Built-in AI on Chrome - Multi-LLM orchestration platform design for XPrompt, including browser extension, backend, response synthesis, and Chrome built-in AI prompt enhancement flows
  • LLM Proxy on OpenClaw - OpenClaw sidecar proxy design for LLM credential isolation, quota enforcement, webhook relay, and orchestrator admin APIs. (try use an AI tool, text to diagram : Napkin https://www.napkin.ai/)

🛒 E-Commerce Systems

  • E-Commerce Website System Design - Complete system design using C4 Model

Flowcharts

🤖 AI & Automation

  • AI Patent Infringement Check App - Dockerized AI application flow with OpenAI integration
  • MCP Server with Playwright - Browser automation server architecture

🎮 Gaming & Betting Systems

  • Auto Campaign Events Flow - Automated campaign management system
  • Bet Slip States - State management for betting applications
  • Shopping Cart States - Frontend component state management

💰 Reward & Token Systems

  • Calculate Available Reward Tokens - Token calculation triggers and flow

🔄 Dynamic Loading Patterns

  • Dynamic Loading Mechanism - Frontend component lazy loading strategies
    • Left-to-right loading pattern
    • Top-to-bottom loading pattern

Sequence Diagrams

📊 Data Flow Sequences

  • Remain Campaign Count Flow - API interaction sequence for campaign counting
  • Token States in Bet Placement - Token state management during bet placement

SDLC

🌿 Git Flow

  • Git Flow in Real World - Mermaid git graph showing branch promotion from dev to qat, uat, and prod, plus production hotfix sync-back flow

Getting Started

Viewing Mermaid Diagrams

  1. GitHub: Mermaid diagrams render automatically in .md files on GitHub
  2. Local: Use any Markdown editor with Mermaid support (VS Code with Mermaid extension, Typora, etc.)
  3. Online: Use the Mermaid Live Editor

Viewing draw.io Diagrams

  1. Online: Open .drawio files directly at app.diagrams.net
  2. Offline: Download the draw.io desktop app
  3. HTML Preview: Open the provided .html files in any web browser

Quick Links

  • 🤖 AI Agent
  • 📁 Architecture Diagrams
  • 📊 Flowcharts
  • 🔄 Sequence Diagrams
  • 🌿 SDLC

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. When contributing:

  1. Use clear, descriptive names for your diagrams
  2. Include a brief description of what the diagram represents
  3. Follow the existing folder structure
  4. Update relevant README files

License

This project is licensed under the MIT License - see the LICENSE file for details.


Created and maintained by Max © 2026