# deeparajasabeson/claude-code architecture

> Architecture diagram of the GitHub repository deeparajasabeson/claude-code, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/deeparajasabeson/claude-code
- Repository: https://github.com/deeparajasabeson/claude-code

## Overview

The Interview Companion is a book-style interview-practice app: users browse chapters, attempt a question, reveal and compare a model answer, then track their rating or search the index. The React client fetches question content from an ASP.NET Core API, whose question-bank implementation reads the bundled JSON. Browser-local storage keeps practice progress and study mode. The README documents API routes, deployment, and observability; sampled source supports the client/API and question-bank flow, but does not show telemetry wiring.

Main entry points: [`src/interview-prep-web/src/App.tsx`](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/App.tsx) (React app and routes), [`src/interview-prep-web/src/pages/QuestionPage.tsx`](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/pages/QuestionPage.tsx) (Question practice), [`src/interview-prep-web/src/api.ts`](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/api.ts) (API client and cache), [`src/interview-prep-web/src/pages/ContentsPage.tsx`](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/pages/ContentsPage.tsx) (Contents and progress)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Practice interface"]
  node_app["React app and routes<br/>[App.tsx]"]
  node_chapter["Chapter browsing<br/>[ChapterPage.tsx]"]
  node_contents["Contents and progress<br/>[ContentsPage.tsx]"]
  node_question["Question practice<br/>[QuestionPage.tsx]"]
  node_search["Index search<br/>[SearchPage.tsx]"]
  node_bookview["Book presentation<br/>[Book.tsx]"]
  node_practicebits["Timer and status UI<br/>[Bits.tsx]"]
  node_topbar["Navigation controls<br/>[TopBar.tsx]"]
  node_clientapi["API client and cache<br/>[api.ts]"]
end

subgraph group_api["Question API"]
  node_endpoints["Minimal API routes"]
  node_startup["API configuration<br/>[Program.cs]"]
end

subgraph group_content["Question content"]
  node_bankinterface["Question-bank contract<br/>[IQuestionBank.cs]"]
  node_jsonbank["JSON question bank"]
  node_questions["Questions and answers<br/>[questions.json]"]
end

subgraph group_state["Practice state"]
  node_progress["Progress and study mode<br/>[store.ts]"]
end

node_learner(("Learner"))
node_browser(("Browser"))
node_localstorage[("Browser localStorage")]

node_learner -->|"uses"| node_browser
node_browser -->|"opens"| node_app
node_app -->|"routes to"| node_chapter
node_app -->|"routes to"| node_contents
node_app -->|"routes to"| node_question
node_app -->|"routes to"| node_search
node_chapter -->|"fetches chapter"| node_clientapi
node_contents -->|"fetches categories"| node_clientapi
node_question -->|"fetches questions"| node_clientapi
node_search -->|"searches questions"| node_clientapi
node_chapter -->|"renders spread"| node_bookview
node_contents -->|"renders spread"| node_bookview
node_question -->|"renders spread"| node_bookview
node_search -->|"renders spread"| node_bookview
node_question -->|"renders timer"| node_practicebits
node_question -->|"reads and marks"| node_progress
node_contents -->|"reads progress"| node_progress
node_topbar -->|"controls study mode"| node_progress
node_progress -->|"persists state"| node_localstorage
node_clientapi -->|"requests API"| node_endpoints
node_startup -->|"maps routes"| node_endpoints
node_startup -->|"registers implementation"| node_jsonbank
node_endpoints -->|"queries bank"| node_bankinterface
node_jsonbank -->|"implements"| node_bankinterface
node_jsonbank -->|"reads content"| node_questions

click node_app "https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/App.tsx"
click node_chapter "https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/pages/ChapterPage.tsx"
click node_contents "https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/pages/ContentsPage.tsx"
click node_question "https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/pages/QuestionPage.tsx"
click node_search "https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/pages/SearchPage.tsx"
click node_bookview "https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/components/Book.tsx"
click node_practicebits "https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/components/Bits.tsx"
click node_topbar "https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/components/TopBar.tsx"
click node_clientapi "https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/api.ts"
click node_endpoints "https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/InterviewPrep.Api/Endpoints/QuestionEndpoints.cs"
click node_startup "https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/InterviewPrep.Api/Program.cs"
click node_bankinterface "https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/InterviewPrep.Api/Services/IQuestionBank.cs"
click node_jsonbank "https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/InterviewPrep.Api/Services/JsonQuestionBank.cs"
click node_questions "https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/InterviewPrep.Api/Data/questions.json"
click node_progress "https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/store.ts"

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_app,node_chapter,node_contents,node_question,node_search,node_bookview,node_practicebits,node_topbar,node_clientapi,node_browser toneBlue
class node_endpoints,node_startup,node_localstorage toneAmber
class node_bankinterface,node_jsonbank,node_questions toneMint
class node_progress toneRose
class node_learner toneIndigo
```

## Components

### Practice interface

- [React app and routes](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/App.tsx): `src/interview-prep-web/src/App.tsx`
- [Chapter browsing](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/pages/ChapterPage.tsx): `src/interview-prep-web/src/pages/ChapterPage.tsx`
- [Contents and progress](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/pages/ContentsPage.tsx): `src/interview-prep-web/src/pages/ContentsPage.tsx`
- [Question practice](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/pages/QuestionPage.tsx): `src/interview-prep-web/src/pages/QuestionPage.tsx`
- [Index search](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/pages/SearchPage.tsx): `src/interview-prep-web/src/pages/SearchPage.tsx`
- [Book presentation](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/components/Book.tsx): `src/interview-prep-web/src/components/Book.tsx`
- [Timer and status UI](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/components/Bits.tsx): `src/interview-prep-web/src/components/Bits.tsx`
- [Navigation controls](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/components/TopBar.tsx): `src/interview-prep-web/src/components/TopBar.tsx`
- [API client and cache](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/api.ts): `src/interview-prep-web/src/api.ts`

### Question API

- [Minimal API routes](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/InterviewPrep.Api/Endpoints/QuestionEndpoints.cs): `src/InterviewPrep.Api/Endpoints/QuestionEndpoints.cs`
- [API configuration](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/InterviewPrep.Api/Program.cs): `src/InterviewPrep.Api/Program.cs`

### Question content

- [Question-bank contract](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/InterviewPrep.Api/Services/IQuestionBank.cs): `src/InterviewPrep.Api/Services/IQuestionBank.cs`
- [JSON question bank](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/InterviewPrep.Api/Services/JsonQuestionBank.cs): `src/InterviewPrep.Api/Services/JsonQuestionBank.cs`
- [Questions and answers](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/InterviewPrep.Api/Data/questions.json): `src/InterviewPrep.Api/Data/questions.json`

### Practice state

- [Progress and study mode](https://github.com/deeparajasabeson/claude-code/blob/claude/busy-davinci-pl93tk/src/interview-prep-web/src/store.ts): `src/interview-prep-web/src/store.ts`

### Other components

- **Learner**
- **Browser**
- **Browser localStorage**

## Connections

- Learner → Browser: uses (evidence: `README.md`)
- Browser → React app and routes: opens (evidence: `README.md`)
- React app and routes → Chapter browsing: routes to (evidence: `src/interview-prep-web/src/App.tsx`)
- React app and routes → Contents and progress: routes to (evidence: `src/interview-prep-web/src/App.tsx`)
- React app and routes → Question practice: routes to (evidence: `src/interview-prep-web/src/App.tsx`)
- React app and routes → Index search: routes to (evidence: `src/interview-prep-web/src/App.tsx`)
- Chapter browsing → API client and cache: fetches chapter (evidence: `src/interview-prep-web/src/pages/ChapterPage.tsx`)
- Contents and progress → API client and cache: fetches categories (evidence: `src/interview-prep-web/src/pages/ContentsPage.tsx`)
- Question practice → API client and cache: fetches questions (evidence: `src/interview-prep-web/src/pages/QuestionPage.tsx`)
- Index search → API client and cache: searches questions (evidence: `src/interview-prep-web/src/pages/SearchPage.tsx`)
- Chapter browsing → Book presentation: renders spread (evidence: `src/interview-prep-web/src/pages/ChapterPage.tsx`)
- Contents and progress → Book presentation: renders spread (evidence: `src/interview-prep-web/src/pages/ContentsPage.tsx`)
- Question practice → Book presentation: renders spread (evidence: `src/interview-prep-web/src/pages/QuestionPage.tsx`)
- Index search → Book presentation: renders spread (evidence: `src/interview-prep-web/src/pages/SearchPage.tsx`)
- Question practice → Timer and status UI: renders timer (evidence: `src/interview-prep-web/src/pages/QuestionPage.tsx`)
- Question practice → Progress and study mode: reads and marks (evidence: `src/interview-prep-web/src/pages/QuestionPage.tsx`)
- Contents and progress → Progress and study mode: reads progress (evidence: `src/interview-prep-web/src/pages/ContentsPage.tsx`)
- Navigation controls → Progress and study mode: controls study mode (evidence: `src/interview-prep-web/src/components/TopBar.tsx`)
- Progress and study mode → Browser localStorage: persists state (evidence: `src/interview-prep-web/src/store.ts`)
- API client and cache → Minimal API routes: requests API (evidence: `README.md`)
- API configuration → Minimal API routes: maps routes (evidence: `README.md`)
- API configuration → JSON question bank: registers implementation (evidence: `src/InterviewPrep.Api/Program.cs`)
- Minimal API routes → Question-bank contract: queries bank (evidence: `src/InterviewPrep.Api/Endpoints/QuestionEndpoints.cs`)
- JSON question bank → Question-bank contract: implements (evidence: `src/InterviewPrep.Api/Services/JsonQuestionBank.cs`)
- JSON question bank → Questions and answers: reads content (evidence: `README.md`)
