[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110808":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":14,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},110808,"system-design-explainer","amananandrai\u002Fsystem-design-explainer","amananandrai","Interactive system design explainer: how YouTube, Uber, Amazon and 30+ systems are built, with architectures switchable between AWS, GCP, Azure and open source.","https:\u002F\u002Fsystem-design-explainer.vercel.app",null,"TypeScript",136,32,1,0,13,74,7,57.46,false,"master",true,[],"2026-11-12 15:35:02","2026-11-23 07:23:25","# System Design Explainer\n\n[![Live site](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flive_site-vercel.app-000000?logo=vercel&logoColor=white)](https:\u002F\u002Fsystem-design-explainer.vercel.app)\n[![MIT License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue)](LICENSE)\n[![Next.js](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FNext.js-16.3-000000?logo=nextdotjs&logoColor=white)](https:\u002F\u002Fnextjs.org\u002F)\n[![React](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FReact-19-149ECA?logo=react&logoColor=white)](https:\u002F\u002Freact.dev\u002F)\n[![TypeScript](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTypeScript-5-3178C6?logo=typescript&logoColor=white)](https:\u002F\u002Fwww.typescriptlang.org\u002F)\n[![Tailwind CSS](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTailwind_CSS-4-06B6D4?logo=tailwindcss&logoColor=white)](https:\u002F\u002Ftailwindcss.com\u002F)\n\nAn interactive site for learning how large systems are built. The catalogue has 36 designs —\nYouTube, Instagram, Uber, Amazon and the rest — each presented as a workspace: an architecture\ndiagram beside the requirements, APIs, capacity estimates, data model and request flows.\n\nBuilt with Next.js (static export), React Flow + ELK for auto-laid-out diagrams, Tailwind CSS and Zod.\nThe live site is [system-design-explainer.vercel.app](https:\u002F\u002Fsystem-design-explainer.vercel.app).\n\n## The project\n\nSystems, components and concepts are three linked catalogues.\n\n- **Systems** are complete designs, from a URL shortener to YouTube. Each one has a difficulty\n  (beginner, intermediate or advanced) and sits in one of five categories: Media & Social,\n  Mobility & Logistics, Commerce & Fintech, Bookings & Marketplaces, and Building Blocks.\n- **Components** are the 36 reusable building blocks a diagram is made of — clients, edge and\n  networking, compute, storage, databases, caching, messaging, analytics, machine learning,\n  security, operations and external services. A cache is written once and reused everywhere a\n  design needs one.\n- **Concepts** are the 27 patterns behind those choices, such as caching, sharding, fan-out,\n  sagas and idempotency. They are grouped into data, scale, messaging, reliability and security.\n\nContent is TypeScript, checked with Zod before every build. A missing component kind, a broken\ndiagram edge, a flow step that names an edge which does not exist, or a concept link that points\nnowhere fails the build.\n\n## Features\n\n**Find a design.** The home page filters the catalogue by category, difficulty, concept or name.\nFour learning paths build on each other, and opening a system marks it done in this browser.\nSearch (`⌘K`, `Ctrl+K`, or `\u002F`) covers systems, components, service names and concepts. The\ninterface has a light theme and a dark theme.\n\n**Read a system.** On a wide screen the diagram fills the left side and the write-up sits in tabs\non the right. A tab is shown only when that design has the content:\n\n- **Overview** — description, the concepts this design uses, functional and non-functional\n  requirements, and extensions\n- **APIs** — method, path and what the call is for\n- **Capacity** — estimates, with the arithmetic that produced each number\n- **Data** — entity, store, key, fields, and why that store\n- **Flows** — named walkthroughs, such as uploading a video or booking a seat\n- **Reliability** — bottlenecks with a fix, and how the design scales\n\nOn a phone the default view is a tier list. The pan-and-zoom canvas is still available.\n\n**Use the diagram.** Layout is automatic. The cloud control rewrites every node:\n\n- **Generic** keeps each node's own label.\n- **AWS, Google Cloud, Azure and open source** swap in that provider's service. The diagram\n  shows the first option for the component kind, unless the system overrides it.\n\nSelecting a node opens its role in this system and the other services that could fill the same\nkind. Playing a flow highlights the current hop and advances on its own; pause, step and restart\nare on the diagram, and a flow can also be started from the Flows tab. Cloud, selected node,\nflow, step and open tab stay in the URL, so a link opens the same view.\n\n**Components.** Each kind has a page: what it is, when to use it, pitfalls, options on each\ncloud, third-party services that work with any cloud, related concepts, and every system node\nthat uses it.\n\n**Concepts.** Each pattern explains the idea, how it works and the trade-offs, then links to the\nsystems and components that use it and to related concepts. Every concept has a small diagram\nyou can step through. Consistent hashing, rate limiting, the double-entry ledger, geospatial\nindexing, unique IDs, bloom filters and prefix search also have an interactive illustration.\n\n## Catalogue\n\n**Media & Social.** YouTube, Netflix, Instagram, Twitter \u002F X, WhatsApp \u002F Messenger, LinkedIn,\nQuora, Live sports scores.\n\n**Mobility & Logistics.** Uber, Google Maps, Zomato \u002F food delivery, Porter \u002F goods delivery,\nCar rental, Driver booking & fleet management.\n\n**Commerce & Fintech.** Amazon, Payment gateway, Buy now, pay later, Stock brokerage.\n\n**Bookings & Marketplaces.** BookMyShow, MakeMyTrip, Airline reservations, Airbnb, NoBroker,\nUrban Company, Practo \u002F teleconsultation, AstroTalk, Meeting scheduler.\n\n**Building Blocks.** URL shortener, Pastebin, API rate limiter, Search autocomplete, Web crawler,\nDropbox, WebSockets at scale, Video calling (WebRTC), Redis Cluster.\n\n### Learning paths\n\n| Path | Level | Systems |\n| --- | --- | --- |\n| Foundations | Start here | URL shortener, Pastebin, API rate limiter, Search autocomplete |\n| Real-time systems | Intermediate | WhatsApp \u002F Messenger, WebSockets at scale, Live sports scores, Uber |\n| Media at scale | Advanced | Instagram, Twitter \u002F X, YouTube, Netflix |\n| Money & bookings | Advanced | BookMyShow, Amazon, Payment gateway, Buy now, pay later |\n\n## Develop\n\n```bash\nnpm install\nnpm run dev\n```\n\nOpen http:\u002F\u002Flocalhost:3000.\n\n## Build and preview\n\n```bash\nnpm run build     # validates content, then writes the static site to .\u002Fout\nnpm run preview   # serves .\u002Fout at http:\u002F\u002Flocalhost:4173\n```\n\n## Test\n\n```bash\nnpm run validate  # schema and cross-reference checks for all content\nnpm run lint\nnpm run test:e2e  # builds, then runs Playwright smoke tests (desktop + phone)\n```\n\nPlaywright needs a browser: either `npx playwright install chromium`, or use one that's already\ninstalled with `PLAYWRIGHT_CHANNEL=msedge` (or `chrome`).\n\n## Deploy\n\n`.\u002Fout` is plain static files — upload it to any static host (GitHub Pages, Netlify, Vercel,\nCloudflare Pages, S3 + CloudFront). On Vercel the production domain is used automatically; elsewhere,\nset `NEXT_PUBLIC_SITE_URL` to the public origin before building so social preview images get\nabsolute URLs:\n\n```bash\nNEXT_PUBLIC_SITE_URL=https:\u002F\u002Fexample.com npm run build\n```\n\nPreview images are written as extensionless `opengraph-image` files; if your host doesn't detect\ntheir type, serve `**\u002Fopengraph-image` with `Content-Type: image\u002Fpng`.\n\n## Adding content\n\n- `src\u002Fcontent\u002Fsystems\u002F*.ts` — one file per system (register it in `systems\u002Findex.ts`)\n- `src\u002Fcontent\u002Fcomponents.ts` — component kinds and their AWS \u002F GCP \u002F Azure \u002F open-source options\n- `src\u002Fcontent\u002Fconcepts.ts` — concept explainers\n- `src\u002Ftypes\u002Fschema.ts` — the schema every content file must satisfy\n\n`npm run validate` (also run before every build) catches unknown component kinds, broken edges,\nflows or concept links.\n\n## Project layout\n\n- `src\u002Fapp\u002F` – routes: `\u002F`, `\u002Fsystems\u002F[slug]`, `\u002Fcomponents\u002F[id]`, `\u002Fconcepts\u002F[slug]`\n- `src\u002Fcomponents\u002F` – diagram, system page, navigation and search UI\n- `src\u002Flib\u002F` – layout (ELK), provider resolution, search, validation, OG images\n- `e2e\u002F` – Playwright smoke tests\n- `docs\u002FNOTES.md` – content notes distilled from the source PDFs\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","这是一个交互式系统设计学习工具，通过可视化架构图与配套文档解析YouTube、Uber、Amazon等36个主流系统的实现原理。核心支持多云架构切换（AWS\u002FGCP\u002FAzure\u002F开源栈），每个系统包含需求分析、API定义、容量估算、数据模型和请求流，并按组件（如缓存、消息队列）与设计模式（如分片、Saga、幂等性）结构化组织。采用TypeScript+Zod保障内容一致性，React Flow实现自动布局图表，适合系统设计面试准备、分布式系统教学及工程师技术方案参考。",2,"2026-11-24 04:39:37","CREATED_QUERY"]