# yangshun/front-end-interview-handbook architecture

> Architecture diagram of the GitHub repository yangshun/front-end-interview-handbook, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yangshun/front-end-interview-handbook
- Repository: https://github.com/yangshun/front-end-interview-handbook

## Overview

The repository is a front-end interview-preparation handbook published as a Docusaurus website. Readers arrive at the homepage or browse the handbook, then study interview-format guidance, coding and quiz material, system design, and company-specific questions. The site renders Markdown/MDX documents with shared layout and navigation components. The README documents the major content areas; sampled source shows homepage links, sidebar organization, document rendering, and ad placement. Most content files were not sampled, so their internal relationships are represented only where the README or sampled navigation supports them.

Main entry points: [`website/sidebars.js`](https://github.com/yangshun/front-end-interview-handbook/blob/main/website/sidebars.js) (Sidebar structure), [`website/contents/front-end-system-design.md`](https://github.com/yangshun/front-end-interview-handbook/blob/main/website/contents/front-end-system-design.md) (System design), [`website/src/components/SidebarAd/index.js`](https://github.com/yangshun/front-end-interview-handbook/blob/main/website/src/components/SidebarAd/index.js) (Sidebar promotion), [`website/src/theme/DocItem/Layout/index.js`](https://github.com/yangshun/front-end-interview-handbook/blob/main/website/src/theme/DocItem/Layout/index.js) (Document layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Interview content"]
  node_intro["Interview formats<br/>[introduction.md]"]
  node_coding["Coding questions"]
  node_quiz["Quiz and trivia"]
  node_system["System design"]
  node_designui["UI components"]
  node_designapps["Design applications"]
  node_company["Company questions"]
  node_behavior["Behavioral and resume"]
  node_blog["Career articles"]
end

subgraph group_site["Website experience"]
  node_home["Homepage<br/>[index.js]"]
  node_layout["Document layout<br/>[index.js]"]
  node_doccontent["Document content<br/>[index.js]"]
end

subgraph group_navigation["Content navigation"]
  node_toc["Table of contents<br/>[index.js]"]
  node_mobile["Mobile sidebar<br/>[index.js]"]
  node_sidebarconfig["Sidebar structure<br/>[sidebars.js]"]
end

subgraph group_engagement["Engagement"]
  node_ad["Sidebar promotion<br/>[index.js]"]
end

node_reader(("Reader"))
node_gfe["GreatFrontEnd"]
node_resumeads["FAANG Tech Leads"]

node_reader -->|"opens"| node_home
node_reader -->|"reads"| node_intro
node_home -->|"links to"| node_intro
node_home -->|"links to"| node_system
node_reader -->|"studies"| node_coding
node_reader -->|"studies"| node_quiz
node_reader -->|"studies"| node_system
node_reader -->|"browses"| node_company
node_reader -.->|"reads"| node_behavior
node_reader -.->|"reads"| node_blog
node_sidebarconfig -->|"lists"| node_intro
node_sidebarconfig -->|"lists"| node_coding
node_sidebarconfig -->|"lists"| node_quiz
node_sidebarconfig -->|"lists"| node_system
node_sidebarconfig -->|"lists"| node_company
node_sidebarconfig -->|"lists"| node_behavior
node_system -->|"includes"| node_designui
node_system -->|"includes"| node_designapps
node_layout -->|"renders"| node_doccontent
node_layout -->|"renders"| node_toc
node_layout -->|"renders"| node_mobile
node_toc -->|"renders"| node_ad
node_mobile -->|"renders"| node_ad
node_ad -->|"promotes"| node_gfe
node_ad -->|"promotes on resume"| node_resumeads

click node_home "https://github.com/yangshun/front-end-interview-handbook/blob/main/website/src/pages/index.js"
click node_intro "https://github.com/yangshun/front-end-interview-handbook/blob/main/website/contents/introduction.md"
click node_coding "https://github.com/yangshun/front-end-interview-handbook/tree/main/website/contents"
click node_quiz "https://github.com/yangshun/front-end-interview-handbook/tree/main/website/contents"
click node_system "https://github.com/yangshun/front-end-interview-handbook/blob/main/website/contents/front-end-system-design.md"
click node_designui "https://github.com/yangshun/front-end-interview-handbook/blob/main/website/contents/front-end-system-design-ui-components.md"
click node_designapps "https://github.com/yangshun/front-end-interview-handbook/blob/main/website/contents/front-end-system-design-applications.md"
click node_company "https://github.com/yangshun/front-end-interview-handbook/tree/main/website/contents/companies"
click node_behavior "https://github.com/yangshun/front-end-interview-handbook/tree/main/website/contents"
click node_blog "https://github.com/yangshun/front-end-interview-handbook/tree/main/website/blog"
click node_layout "https://github.com/yangshun/front-end-interview-handbook/blob/main/website/src/theme/DocItem/Layout/index.js"
click node_doccontent "https://github.com/yangshun/front-end-interview-handbook/blob/main/website/src/theme/DocItem/Content/index.js"
click node_toc "https://github.com/yangshun/front-end-interview-handbook/blob/main/website/src/theme/TOC/index.js"
click node_mobile "https://github.com/yangshun/front-end-interview-handbook/blob/main/website/src/theme/DocSidebar/Mobile/index.js"
click node_sidebarconfig "https://github.com/yangshun/front-end-interview-handbook/blob/main/website/sidebars.js"
click node_ad "https://github.com/yangshun/front-end-interview-handbook/blob/main/website/src/components/SidebarAd/index.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_intro,node_coding,node_quiz,node_system,node_designui,node_designapps,node_company,node_behavior,node_blog,node_gfe toneBlue
class node_home,node_layout,node_doccontent toneAmber
class node_toc,node_mobile,node_sidebarconfig toneMint
class node_ad toneRose
class node_reader,node_resumeads toneIndigo
```

## Components

### Interview content

- [Interview formats](https://github.com/yangshun/front-end-interview-handbook/blob/main/website/contents/introduction.md): `website/contents/introduction.md`
- [Coding questions](https://github.com/yangshun/front-end-interview-handbook/tree/main/website/contents): `website/contents`
- [Quiz and trivia](https://github.com/yangshun/front-end-interview-handbook/tree/main/website/contents): `website/contents`
- [System design](https://github.com/yangshun/front-end-interview-handbook/blob/main/website/contents/front-end-system-design.md): `website/contents/front-end-system-design.md`
- [UI components](https://github.com/yangshun/front-end-interview-handbook/blob/main/website/contents/front-end-system-design-ui-components.md): `website/contents/front-end-system-design-ui-components.md`
- [Design applications](https://github.com/yangshun/front-end-interview-handbook/blob/main/website/contents/front-end-system-design-applications.md): `website/contents/front-end-system-design-applications.md`
- [Company questions](https://github.com/yangshun/front-end-interview-handbook/tree/main/website/contents/companies): `website/contents/companies`
- [Behavioral and resume](https://github.com/yangshun/front-end-interview-handbook/tree/main/website/contents): `website/contents`
- [Career articles](https://github.com/yangshun/front-end-interview-handbook/tree/main/website/blog): `website/blog`

### Website experience

- [Homepage](https://github.com/yangshun/front-end-interview-handbook/blob/main/website/src/pages/index.js): `website/src/pages/index.js`
- [Document layout](https://github.com/yangshun/front-end-interview-handbook/blob/main/website/src/theme/DocItem/Layout/index.js): `website/src/theme/DocItem/Layout/index.js`
- [Document content](https://github.com/yangshun/front-end-interview-handbook/blob/main/website/src/theme/DocItem/Content/index.js): `website/src/theme/DocItem/Content/index.js`

### Content navigation

- [Table of contents](https://github.com/yangshun/front-end-interview-handbook/blob/main/website/src/theme/TOC/index.js): `website/src/theme/TOC/index.js`
- [Mobile sidebar](https://github.com/yangshun/front-end-interview-handbook/blob/main/website/src/theme/DocSidebar/Mobile/index.js): `website/src/theme/DocSidebar/Mobile/index.js`
- [Sidebar structure](https://github.com/yangshun/front-end-interview-handbook/blob/main/website/sidebars.js): `website/sidebars.js`

### Engagement

- [Sidebar promotion](https://github.com/yangshun/front-end-interview-handbook/blob/main/website/src/components/SidebarAd/index.js): `website/src/components/SidebarAd/index.js`

### Other components

- **Reader**
- **GreatFrontEnd**
- **FAANG Tech Leads**

## Connections

- Reader → Homepage: opens (evidence: `README.md`)
- Reader → Interview formats: reads (evidence: `README.md`)
- Homepage → Interview formats: links to (evidence: `website/src/pages/index.js`)
- Homepage → System design: links to (evidence: `website/src/pages/index.js`)
- Reader → Coding questions: studies (evidence: `README.md`)
- Reader → Quiz and trivia: studies (evidence: `README.md`)
- Reader → System design: studies (evidence: `README.md`)
- Reader → Company questions: browses (evidence: `README.md`)
- Reader → Behavioral and resume: reads
- Reader → Career articles: reads (evidence: `README.md`)
- Sidebar structure → Interview formats: lists (evidence: `website/sidebars.js`)
- Sidebar structure → Coding questions: lists (evidence: `website/sidebars.js`)
- Sidebar structure → Quiz and trivia: lists (evidence: `website/sidebars.js`)
- Sidebar structure → System design: lists (evidence: `website/sidebars.js`)
- Sidebar structure → Company questions: lists (evidence: `website/sidebars.js`)
- Sidebar structure → Behavioral and resume: lists (evidence: `website/sidebars.js`)
- System design → UI components: includes
- System design → Design applications: includes
- Document layout → Document content: renders (evidence: `website/src/theme/DocItem/Layout/index.js`)
- Document layout → Table of contents: renders (evidence: `website/src/theme/DocItem/Layout/index.js`)
- Document layout → Mobile sidebar: renders (evidence: `website/src/theme/DocItem/Layout/index.js`)
- Table of contents → Sidebar promotion: renders (evidence: `website/src/theme/TOC/index.js`)
- Mobile sidebar → Sidebar promotion: renders (evidence: `website/src/theme/DocSidebar/Mobile/index.js`)
- Sidebar promotion → GreatFrontEnd: promotes (evidence: `website/src/components/SidebarAd/index.js`)
- Sidebar promotion → FAANG Tech Leads: promotes on resume (evidence: `website/src/components/SidebarAd/index.js`)
