A structured, in-depth knowledge base covering frontend system design concepts -- from architectural patterns and performance optimization to security and API design. Each topic includes clear explanations, real-world code examples across React/Vue/Angular, best practices, and a dedicated Q&A section addressing common beginner doubts.
Read online -- browse all topics with search, dark mode, and syntax-highlighted code.
| Topic | Description |
|---|---|
| Component-Driven Development | Bottom-up UI development with isolated, reusable components |
| Smart vs Dumb Components | Separating logic-heavy containers from presentational components |
| Container vs Presentational Pattern | Data-fetching containers paired with pure rendering components |
| Atomic Design | Hierarchical UI composition: atoms, molecules, organisms, templates, pages |
| State Management Strategies | Global state (Redux/Context), local state (useState/useReducer), server state (React Query/SWR) |
| Code Splitting & Lazy Loading | On-demand loading to reduce initial bundle size |
| Modular CSS | Scoped styling approaches: CSS Modules, CSS-in-JS, BEM, utility-first |
| Topic | Description |
|---|---|
| Critical Rendering Path | How the browser turns HTML/CSS/JS into pixels, and how to optimize each step |
| Tree Shaking | Dead code elimination with Webpack, Rollup, and Vite |
| Web Vitals | Core Web Vitals (LCP, FID, CLS) -- measuring and improving real-world performance |
| Topic | Description |
|---|---|
| Cross-Site Scripting (XSS) | XSS attack vectors, prevention techniques, and CSP |
| Cross-Site Request Forgery (CSRF) | CSRF attack flows, token-based defenses, and SameSite cookies |
| Topic | Description |
|---|---|
| REST vs GraphQL | Comparison of REST and GraphQL: architecture, implementation, and migration strategies |
| WebSockets for Real-Time Apps | WebSocket protocol, connection management, reconnection patterns, and real-time architecture |
| Pagination, Filtering, and Sorting | Offset vs cursor pagination, client/server filtering and sorting, URL-synced state, infinite scroll |
| File Upload Patterns | Upload strategies, chunked/resumable uploads, presigned URLs, progress tracking, and client-side file handling |
| API Retries, Timeouts, and Backoff Strategies | Retry mechanisms, timeout configuration, exponential backoff with jitter, and circuit breaker patterns |
Every topic follows a consistent structure:
- Title & Introduction -- What the concept is and why it matters
- Core Concepts -- Numbered/bulleted breakdown of key principles
- Detailed Sections -- How it works, benefits, drawbacks, use cases, best practices
- Code Examples -- Practical snippets in JavaScript/TypeScript/JSX/CSS with good-vs-bad patterns
- Common Beginner Doubts -- Q&A section addressing frequent misconceptions
This repository includes a SKILL.md file that defines a content generation skill for AI coding agents. The skill ensures new topics are generated in the same format and quality as existing content. See CLAUDE.md and AGENTS.md for agent configuration.
This repository is intended for learning purposes. Feel free to use it as a reference for your own frontend system design studies.