Scope requirements, design high-level architecture and data models, then apply it to real systems: a news feed, autocomplete, a collaborative editor, a local-first sync engine like Linear's, a video grid, a collaborative whiteboard, an analytics SDK, and a ChatGPT-style app.
Follow the suggested order, or jump to any tutorial.
Requirements, Scoping, and Trade-offsStart here
The first 10 minutes of any frontend design: turn a vague prompt into functional and quantified non-functional requirements, define scope, and make trade-offs explicit.
High-Level Architecture and Components
Go from requirements to a frontend architecture: layers and their responsibilities, component hierarchy, data flow, where state lives, and how to draw and present it.
APIs, Data Models, and Scaling
Design the contract between frontend and backend: client-side data models, REST vs. GraphQL vs. BFF, pagination, real-time transports, and how the frontend helps the system scale.
Frontend System Design: News Feed
Design an infinite, real-time news feed like Facebook or LinkedIn: requirements, component architecture, cursor pagination, normalized cache, virtualization, new-post handling, and optimistic interactions.
Frontend System Design: Autocomplete / Typeahead
Design a search autocomplete like Google's or Amazon's: debouncing, race conditions, client caching, keyboard and screen-reader support, highlighting, and performance budgets per keystroke.
Frontend System Design: Collaborative Editor
Design real-time collaboration like Google Docs or Figma: syncing concurrent edits with OT or CRDTs, presence and cursors, offline editing, the transport layer, and undo in a multi-user world.
How Linear Feels Instant: Build a Local-First Sync Engine
Why apps like Linear never show a spinner, and how to build the engine behind it: a local store every read comes from, optimistic transactions, a server that orders every change, deltas and catch-up, an offline outbox with safe retries, field-level conflicts, fractional ordering, and a live two-client demo you can break.
Frontend System Design: Multi-Stream Video Grid
Design a video-call gallery or multi-camera wall that renders dozens of live streams: a stream gateway, a client stream manager, a viewport scheduler that decides which tiles get full quality, and React tiles that stay cheap.
Frontend System Design: Excalidraw (Collaborative Whiteboard)
Design a collaborative whiteboard like Excalidraw: a JSON scene model, canvas rendering with a shape cache and viewport culling, hit testing, zoom and pan math, end-to-end encrypted collaboration, version-based reconciliation, and undo that works with other people editing.
Frontend System Design: Analytics SDK
Design a client-side analytics SDK like Google Analytics or Segment: a tiny async loader, an event pipeline with consent, sampling, and PII scrubbing, batching, delivery that survives page unload, and an SDK that never breaks or slows the host page.
Frontend System Design: ChatGPT-Style Chat App
Design the frontend of an AI chat app like ChatGPT or Claude: conversations and a message tree for edits and regenerations, streaming that doesn't jank, scroll behavior that respects the reader, stop and retry, and accessibility for text that arrives word by word.