← All Learning Paths

Frontend Architect

Architect large frontends: micro-frontends, hydration and SSR, module boundaries, monorepos, code splitting, and bundle performance.

roleadvanced9 nodes14.17h total

Path overview

架构大型前端:微前端、水合与 SSR、模块边界、Monorepo、代码分割与打包性能。

Architect large frontends: micro-frontends, hydration and SSR, module boundaries, monorepos, code splitting, and bundle performance.

  1. Compare "Theming: Light, Dark, and Brand" with "Components: Composable, Accessible, Token-Driven" in "Building a Design System from Scratch" and state which trade-off you would accept in frontend architect code.

    Completion criteria: Attach a decision log for "Building a Design System from Scratch": the "Theming: Light, Dark, and Brand" section, one rejected alternative, and the diff of the file you changed.

    Next step: React SSR Streaming With Suspense Boundaries

    ⏱ 1h

  2. Execute "React SSR Streaming With Suspense Boundaries", change one constant, and describe how the output diverges from "Render React server-side to a node stream with Suspense boundaries so fast content flushes".

    Prerequisites: Building a Design System from Scratch

    Completion criteria: Change one constant in "React SSR Streaming With Suspense Boundaries", rerun, and attach both stdout captures plus a one-line diff explaining what moved.

    Next step: pnpm Monorepo Workspaces

    ⏱ 0.75h

  3. Scaffold "pnpm Monorepo Workspaces" with "A pnpm monorepo with TypeScript project references, shared packages, and Turborepo for", replace one generated module, and keep Best for multi-package repositories needing pnpm workspaces, TypeScript project references, working.

    Prerequisites: React SSR Streaming With Suspense Boundaries

    Completion criteria: Attach the scaffold command for "pnpm Monorepo Workspaces", the diff of the module you replaced, and the output showing "Best for multi-package repositories needing pnpm workspaces, TypeScript project references," still works.

    Next step: Next.js App Router Starter

    ⏱ 1.5h

  4. Stand up "Next.js + TypeScript + Tailwind Starter" from its CLI, then modify "npx create-next-app@latest my-app --typescript --tailwind --app" and show the documented behavior still holds.

    Prerequisites: pnpm Monorepo Workspaces

    Completion criteria: Run "Next.js + TypeScript + Tailwind Starter" once before and once after your modification and paste both outputs with the entry point unchanged.

    Next step: Lazy-Load Route Chunks in Vite

    ⏱ 1.5h

  5. Execute "Lazy-Load Route Chunks in Vite" end to end, then repeat the last step with one parameter changed and compare "Convert static route imports to dynamic imports to split the bundle by route.".

    Prerequisites: Next.js App Router Starter

    Completion criteria: Run "Lazy-Load Route Chunks in Vite" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Frontend Bundle Slimming Cycle Workflow

    ⏱ 0.5h

  6. Follow "Frontend Bundle Slimming Cycle Workflow" and record "Reduce and then hold frontend payload size through per-route budgets, offender analysis, and" at the step where it should appear, using "A budget table exists per route with current size and target." as the check.

    Prerequisites: Lazy-Load Route Chunks in Vite

    Completion criteria: Deliver a transcript of "Frontend Bundle Slimming Cycle Workflow" with each step's command and observed state, ending at "Reduce and then hold frontend payload size through per-route budgets, offender analysis, and".

    Next step: Notion React Editor Architecture

    ⏱ 0.5h

  7. Read "Notion React Editor Architecture" as an architecture drill: for each Block-based document model component, state what it owns and what it delegates.

    Prerequisites: Frontend Bundle Slimming Cycle Workflow

    Completion criteria: Draw the responsibility table for "Notion React Editor Architecture" and mark one place where your frontend architect stack would choose differently.

    Next step: Audit Keyboard Focus Order

    ⏱ 1.5h

  8. In the "Frontend Architect" path, implement "Audit Keyboard Focus Order" so JSON object: { elements: [{ tag, tabindex?, focusable, role? }] } yields {focusOrder:[0,2],violations:[1:positive-tabindex]}, including the second sample's edge case.

    Prerequisites: Notion React Editor Architecture

    Completion criteria: Show the test run for "Audit Keyboard Focus Order" with two passing samples and one deliberately failing input, with the expected error.

    Next step: Capstone: Frontend Architect

    ⏱ 0.42h

  9. Deliver the "Build a Local-First Notes Sync Server" blueprint with "Incremental pull" working and "Push with base version" recorded as evidence.

    Prerequisites: Notion React Editor Architecture, Audit Keyboard Focus Order

    Completion criteria: Run the project's test command for "Build a Local-First Notes Sync Server", paste the passing output, and attach the acceptance note for "Incremental pull" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h