# hareeshbhumireddi/intervyou-ai architecture

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

- Interactive diagram: https://gitdiagram.com/hareeshbhumireddi/intervyou-ai
- Repository: https://github.com/hareeshbhumireddi/intervyou-ai

## Overview

Intervyou AI is a mock-interview preparation, resume-intelligence, and job-discovery platform. Its principal workflow takes a candidate from interview setup through a live practice session to performance feedback and reports, with account state persisted through the app’s cloud and server services. Separate branches support resume analysis, job search and applications, scheduling, peer practice, and flashcards. The excerpts and README establish the main integrations; some page-level details are inferred only from the documented capabilities and file structure, so uncertain links are omitted.

Main entry points: [`src/App.tsx`](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/App.tsx) (App router), [`src/hooks/useAppState.tsx`](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/hooks/useAppState.tsx) (App state), [`src/utils/api.ts`](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/utils/api.ts) (API client), [`src/pages/interview.tsx`](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/interview.tsx) (Interview room)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App and accounts"]
  node_router["App router<br/>[App.tsx]"]
  node_appstate["App state<br/>[useAppState.tsx]"]
  node_keyboard["Keyboard shortcuts"]
end

subgraph group_interview["Interview practice"]
  node_setup["Interview setup<br/>[interviewSetup.tsx]"]
  node_room["Interview room<br/>[interview.tsx]"]
  node_focus["Question timer"]
  node_replay[("Audio replay store")]
  node_schedule["Schedule and calendar<br/>[WeeklyCalendar.tsx]"]
  node_peer["Peer practice<br/>[PeerPractice.tsx]"]
  node_flashcards["Flashcards<br/>[Flashcards.tsx]"]
end

subgraph group_insights["Feedback and progress"]
  node_performance["Performance report<br/>[Performance.tsx]"]
  node_tone["Tone analysis widget"]
  node_sentiment["Sentiment analysis"]
  node_overview["Progress overview"]
end

subgraph group_career["Career tools"]
  node_resume["Resume workspace<br/>[MyResume.tsx]"]
  node_jobs["Job discovery"]
  node_livejobs["Live job service<br/>[jobLiveService.ts]"]
  node_quickapply["Quick apply"]
  node_salary["Salary data<br/>[salaryDataset.ts]"]
end

subgraph group_platform["Services and persistence"]
  node_firebase["Firebase auth<br/>[firebase.ts]"]
  node_firestore[("Cloud records")]
  node_api["API client<br/>[api.ts]"]
  node_server["Express and AI API<br/>[server.ts]"]
  node_peerdata["Peer service<br/>[peerService.ts]"]
  node_accountbackup["Account backup<br/>[accountBackup.ts]"]
  node_notifications["Interview reminders"]
end

node_candidate(("Candidate"))

node_candidate -->|"uses"| node_router
node_router -->|"provides state"| node_appstate
node_router -->|"routes to"| node_setup
node_router -->|"routes to"| node_room
node_router -->|"routes to"| node_performance
node_appstate -->|"authenticates with"| node_firebase
node_appstate -->|"syncs records"| node_firestore
node_appstate -->|"reconciles backup"| node_accountbackup
node_setup -->|"requests interview"| node_api
node_room -->|"submits answers"| node_api
node_room -->|"uses timer"| node_focus
node_room -->|"stores replay"| node_replay
node_api -->|"calls API"| node_server
node_server -.->|"persists cloud data"| node_firestore
node_server -.->|"requests Gemini analysis"| node_candidate
node_performance -->|"loads report data"| node_api
node_performance -->|"renders analysis"| node_tone
node_tone -->|"analyzes answers"| node_sentiment
node_performance -->|"plays recordings"| node_replay
node_overview -->|"reads progress"| node_appstate
node_resume -.->|"requests resume analysis"| node_api
node_jobs -->|"searches openings"| node_livejobs
node_jobs -->|"opens application"| node_quickapply
node_jobs -->|"saves jobs"| node_firestore
node_quickapply -->|"reads salary data"| node_salary
node_candidate -.->|"plans sessions"| node_schedule
node_schedule -->|"triggers reminders"| node_notifications
node_candidate -->|"practices with peers"| node_peer
node_peer -->|"uses peer service"| node_peerdata
node_candidate -->|"reviews flashcards"| node_flashcards
node_router -->|"registers shortcuts"| node_keyboard

click node_router "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/App.tsx"
click node_appstate "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/hooks/useAppState.tsx"
click node_firebase "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/firebase.ts"
click node_firestore "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/services/firestoreService.ts"
click node_api "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/utils/api.ts"
click node_server "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/server.ts"
click node_setup "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/interviewSetup.tsx"
click node_room "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/interview.tsx"
click node_focus "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/components/QuestionFocusTimer.tsx"
click node_replay "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/utils/audioReplayStorage.ts"
click node_performance "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/Performance.tsx"
click node_tone "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/components/ToneSentimentWidget.tsx"
click node_sentiment "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/utils/sentimentAnalyzer.ts"
click node_overview "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/PerformanceOverview.tsx"
click node_resume "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/MyResume.tsx"
click node_jobs "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/JobNotifications.tsx"
click node_livejobs "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/services/jobLiveService.ts"
click node_quickapply "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/components/QuickApplyModal.tsx"
click node_salary "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/utils/salaryDataset.ts"
click node_schedule "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/components/WeeklyCalendar.tsx"
click node_peer "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/PeerPractice.tsx"
click node_peerdata "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/services/peerService.ts"
click node_flashcards "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/Flashcards.tsx"
click node_accountbackup "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/utils/accountBackup.ts"
click node_notifications "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/utils/notificationService.ts"
click node_keyboard "https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/utils/keyboardShortcuts.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_router,node_appstate,node_keyboard toneBlue
class node_setup,node_room,node_focus,node_replay,node_schedule,node_peer,node_flashcards toneAmber
class node_performance,node_tone,node_sentiment,node_overview toneMint
class node_resume,node_jobs,node_livejobs,node_quickapply,node_salary toneRose
class node_firebase,node_firestore,node_api,node_server,node_peerdata,node_accountbackup,node_notifications,node_candidate toneIndigo
```

## Components

### App and accounts

- [App router](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/App.tsx): `src/App.tsx`
- [App state](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/hooks/useAppState.tsx): `src/hooks/useAppState.tsx`
- [Keyboard shortcuts](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/utils/keyboardShortcuts.ts): `src/utils/keyboardShortcuts.ts`

### Interview practice

- [Interview setup](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/interviewSetup.tsx): `src/pages/interviewSetup.tsx`
- [Interview room](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/interview.tsx): `src/pages/interview.tsx`
- [Question timer](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/components/QuestionFocusTimer.tsx): `src/components/QuestionFocusTimer.tsx`
- [Audio replay store](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/utils/audioReplayStorage.ts): `src/utils/audioReplayStorage.ts`
- [Schedule and calendar](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/components/WeeklyCalendar.tsx): `src/components/WeeklyCalendar.tsx`
- [Peer practice](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/PeerPractice.tsx): `src/pages/PeerPractice.tsx`
- [Flashcards](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/Flashcards.tsx): `src/pages/Flashcards.tsx`

### Feedback and progress

- [Performance report](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/Performance.tsx): `src/pages/Performance.tsx`
- [Tone analysis widget](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/components/ToneSentimentWidget.tsx): `src/components/ToneSentimentWidget.tsx`
- [Sentiment analysis](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/utils/sentimentAnalyzer.ts): `src/utils/sentimentAnalyzer.ts`
- [Progress overview](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/PerformanceOverview.tsx): `src/pages/PerformanceOverview.tsx`

### Career tools

- [Resume workspace](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/MyResume.tsx): `src/pages/MyResume.tsx`
- [Job discovery](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/pages/JobNotifications.tsx): `src/pages/JobNotifications.tsx`
- [Live job service](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/services/jobLiveService.ts): `src/services/jobLiveService.ts`
- [Quick apply](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/components/QuickApplyModal.tsx): `src/components/QuickApplyModal.tsx`
- [Salary data](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/utils/salaryDataset.ts): `src/utils/salaryDataset.ts`

### Services and persistence

- [Firebase auth](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/firebase.ts): `src/firebase.ts`
- [Cloud records](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/services/firestoreService.ts): `src/services/firestoreService.ts`
- [API client](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/utils/api.ts): `src/utils/api.ts`
- [Express and AI API](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/server.ts): `server.ts`
- [Peer service](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/services/peerService.ts): `src/services/peerService.ts`
- [Account backup](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/utils/accountBackup.ts): `src/utils/accountBackup.ts`
- [Interview reminders](https://github.com/hareeshbhumireddi/intervyou-ai/blob/main/src/utils/notificationService.ts): `src/utils/notificationService.ts`

### Other components

- **Candidate**

## Connections

- Candidate → App router: uses (evidence: `README.md`)
- App router → App state: provides state (evidence: `src/App.tsx`)
- App router → Interview setup: routes to (evidence: `src/App.tsx`)
- App router → Interview room: routes to (evidence: `src/App.tsx`)
- App router → Performance report: routes to (evidence: `src/App.tsx`)
- App state → Firebase auth: authenticates with (evidence: `src/hooks/useAppState.tsx`)
- App state → Cloud records: syncs records (evidence: `src/hooks/useAppState.tsx`)
- App state → Account backup: reconciles backup (evidence: `src/hooks/useAppState.tsx`)
- Interview setup → API client: requests interview (evidence: `src/pages/interviewSetup.tsx`)
- Interview room → API client: submits answers (evidence: `src/pages/interview.tsx`)
- Interview room → Question timer: uses timer (evidence: `src/pages/interview.tsx`)
- Interview room → Audio replay store: stores replay (evidence: `src/pages/interview.tsx`)
- API client → Express and AI API: calls API (evidence: `README.md`)
- Express and AI API → Cloud records: persists cloud data (evidence: `README.md`)
- Express and AI API → Candidate: requests Gemini analysis (evidence: `README.md`)
- Performance report → API client: loads report data (evidence: `src/pages/Performance.tsx`)
- Performance report → Tone analysis widget: renders analysis (evidence: `src/pages/Performance.tsx`)
- Tone analysis widget → Sentiment analysis: analyzes answers (evidence: `src/components/ToneSentimentWidget.tsx`)
- Performance report → Audio replay store: plays recordings
- Progress overview → App state: reads progress
- Resume workspace → API client: requests resume analysis (evidence: `README.md`)
- Job discovery → Live job service: searches openings (evidence: `src/pages/JobNotifications.tsx`)
- Job discovery → Quick apply: opens application (evidence: `src/pages/JobNotifications.tsx`)
- Job discovery → Cloud records: saves jobs (evidence: `src/pages/JobNotifications.tsx`)
- Quick apply → Salary data: reads salary data (evidence: `src/components/QuickApplyModal.tsx`)
- Candidate → Schedule and calendar: plans sessions (evidence: `README.md`)
- Schedule and calendar → Interview reminders: triggers reminders (evidence: `src/components/WeeklyCalendar.tsx`)
- Candidate → Peer practice: practices with peers (evidence: `README.md`)
- Peer practice → Peer service: uses peer service (evidence: `src/pages/PeerPractice.tsx`)
- Candidate → Flashcards: reviews flashcards (evidence: `README.md`)
- App router → Keyboard shortcuts: registers shortcuts (evidence: `src/App.tsx`)
