Frontend System Design

Design the client side of large web apps: rendering, state, data, performance, real-time, offline, accessibility, and security. Built for senior and staff frontend interviews.

Start here

Read How to Approach a Frontend System Design Interview first. Then the foundations, then pick any classic design.

Each guide has concepts, budgets with numbers, an architecture diagram, deep dives, failure modes, trade-offs, a worked example, a code lab, a quiz, and a 45-minute interview plan.

Sections

01·Foundations7 guidesHow to approach the interview, and the core building blocks every frontend design uses. 02·Classic Designs10 guidesFull walkthroughs of the frontend designs interviewers ask most. 03·Patterns at Scale6 guidesArchitecture, quality, and release patterns for large frontend teams.

Find a guide

All guides

01·How to Approach a Frontend System Design InterviewA repeatable plan, called RADIO, for running a 45-minute frontend system design interview from first question to final trade-off. 02·Rendering Strategies: CSR, SSR, SSG, ISR, Streaming, Islands, Server ComponentsHow each rendering strategy, from CSR to Server Components, changes what the browser receives, when pixels appear, and what it costs to make a page interactive. 03·State Management and Data FetchingHow to classify client state, keep server data in a cache with clear keys and invalidation, and fetch it safely with optimistic updates, pagination, dedupe, and cancellation. 04·Frontend Performance and Core Web VitalsHow to measure, budget, and improve LCP, INP, and CLS using the critical path, images, fonts, main-thread scheduling, virtualization, and caching. 05·Networking and Real-Time Communication for the FrontendHow a frontend talks to servers safely and fast, from REST and HTTP caching to retries, WebSockets, and offline queues. 06·Frontend SecurityHow browsers get attacked and how a frontend defends itself with safe rendering, CSP, cookies, CORS, and script integrity. 07·Accessibility and InternationalizationHow to build interfaces that work for keyboard and screen reader users and for every language, script, and locale. 08·Design a News Feed (Facebook / Twitter style)How to design a fast, accessible, infinite news feed with cursor pages, virtualization, optimistic actions, and impression logging. 09·Design an Autocomplete / TypeaheadHow to design a fast, correct, accessible typeahead with debouncing, request cancellation, caching, and the combobox pattern. 10·Design a Chat App (Messenger / Slack style)How to design a real-time chat client with WebSockets, ordered messages, optimistic send, an offline outbox, receipts, and multi-tab sync. 11·Design a Photo Sharing App (Instagram style)How to design an Instagram style photo client with responsive images, a client upload pipeline, shift free grids, stories, and mobile memory limits. 12·Design a Video Player (YouTube / Netflix style)How to design a YouTube or Netflix style web video player, from Media Source Extensions and adaptive bitrate to captions, DRM, accessible controls, and QoE analytics. 13·Design a Collaborative Editor (Google Docs style)How to design a Google Docs style collaborative editor in the browser, from the document model and contentEditable to OT versus CRDT, presence, offline merge, and comments. 14·Design an E-commerce Product Page and CheckoutHow to design a fast, SEO friendly e-commerce product page and a safe checkout, from SSR and variant state to cart sync, payment iframes, and idempotent order submit. 15·Design a Data Grid / SpreadsheetHow to design a data grid or spreadsheet that scrolls a million rows smoothly, from row and column virtualization and the keyboard model to formulas, workers, canvas rendering, and the ARIA grid pattern. 16·Design a Maps App (Google Maps style)How to design the client of a Google Maps style app, from the tile pyramid and WebGL rendering to smooth gestures, caching, markers, routing, and offline areas. 17·Design an Email Client (Gmail style)How to design a Gmail style web client that feels instant, works offline, syncs with history ids, and renders untrusted HTML email safely. 18·Building a Design System and Component LibraryHow to build a design system and component library that many teams can adopt, from tokens and theming to accessible APIs, versioning, testing, and bundle size. 19·Micro-Frontends and Large Frontend ArchitectureWhen and how to split a large frontend into micro-frontends, including composition styles, Module Federation, shared dependencies, routing, communication, ownership, and the performance cost. 20·Offline-First and Progressive Web AppsHow service workers, caches, IndexedDB, and background sync let a web app load and accept writes with no network. 21·Frontend ObservabilityHow to measure what real users experience in the browser, catch and decode errors, and link frontend events to backend traces. 22·Frontend Testing StrategyHow to choose and combine unit, component, contract, end-to-end, visual, accessibility, and performance tests for a frontend that stays fast and trustworthy. 23·Feature Flags, Experiments, and Safe Frontend ReleasesHow to ship frontend changes safely with feature flags, experiments, versioned assets, canaries, and fast rollback.