# kajjayamadithya/ai-interview-analyzer architecture

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

- Interactive diagram: https://gitdiagram.com/kajjayamadithya/ai-interview-analyzer
- Repository: https://github.com/kajjayamadithya/ai-interview-analyzer

## Overview

InterviewAI lets users choose a question category, practice an interview by text or speech, and receive per-answer and session-level AI feedback. Its frontend handles authentication, interview flow, and results; the FastAPI backend serves questions and delegates scoring to the NLP analyzer. Supabase supports authentication and saved interview history. The README documents audio transcription and scoring capabilities; some implementation details are unsampled, so their internal connections are not expanded here.

Main entry points: [`frontend/src/App.tsx`](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/App.tsx) (App routes), [`frontend/src/pages/InterviewPage.tsx`](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/InterviewPage.tsx) (Interview session), [`frontend/src/pages/ResultsPage.tsx`](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/ResultsPage.tsx) (Session results), [`frontend/src/services/supabase.ts`](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/services/supabase.ts) (Supabase client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Interview frontend"]
  node_app["App routes<br/>[App.tsx]"]
  node_home["Home and categories<br/>[HomePage.tsx]"]
  node_login["Login<br/>[LoginPage.tsx]"]
  node_signup["Sign up<br/>[SignupPage.tsx]"]
  node_dashboard["Session dashboard<br/>[DashboardPage.tsx]"]
  node_interview["Interview session<br/>[InterviewPage.tsx]"]
  node_answer["Answer input<br/>[AnswerInput.tsx]"]
  node_results["Session results<br/>[ResultsPage.tsx]"]
  node_profile["Profile and history<br/>[ProfilePage.tsx]"]
  node_gauge["Score gauge<br/>[ScoreGauge.tsx]"]
end

subgraph group_identity["Identity and history"]
  node_auth["Auth state<br/>[useAuth.tsx]"]
  node_supabase_client["Supabase client<br/>[supabase.ts]"]
end

subgraph group_backend["Interview API"]
  node_api_client["API client<br/>[api.ts]"]
  node_api["FastAPI routes<br/>[app.py]"]
  node_questions["Question bank<br/>[question_bank.json]"]
end

subgraph group_analysis["Answer analysis"]
  node_analyzer["NLP scoring<br/>[analyzer.py]"]
end

node_candidate(("Candidate"))
node_supabase[("Supabase")]
node_speech_service["Google Speech Recognition"]

node_candidate -->|"browses"| node_home
node_candidate -->|"signs in"| node_login
node_candidate -->|"signs up"| node_signup
node_candidate -->|"reviews sessions"| node_dashboard
node_candidate -->|"practices"| node_interview
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_signup
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_interview
node_app -->|"routes to"| node_results
node_app -->|"routes to"| node_profile
node_app -->|"provides auth"| node_auth
node_interview -->|"fetches questions"| node_api_client
node_interview -->|"renders input"| node_answer
node_interview -->|"navigates with answers"| node_results
node_results -->|"submits session"| node_api_client
node_api_client -->|"sends requests"| node_api
node_api -->|"analyzes answers"| node_analyzer
node_api -->|"serves questions"| node_questions
node_analyzer -.->|"transcribes audio"| node_speech_service
node_auth -->|"uses client"| node_supabase_client
node_supabase_client -->|"authenticates"| node_supabase
node_results -->|"saves results"| node_supabase_client
node_profile -->|"reads history"| node_supabase_client
node_results -->|"renders scores"| node_gauge
node_profile -->|"renders scores"| node_gauge
node_dashboard -.->|"starts interview"| node_interview

click node_app "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/App.tsx"
click node_home "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/HomePage.tsx"
click node_login "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/LoginPage.tsx"
click node_signup "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/SignupPage.tsx"
click node_dashboard "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/DashboardPage.tsx"
click node_interview "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/InterviewPage.tsx"
click node_answer "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/components/AnswerInput.tsx"
click node_results "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/ResultsPage.tsx"
click node_profile "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/ProfilePage.tsx"
click node_gauge "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/components/ScoreGauge.tsx"
click node_auth "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/hooks/useAuth.tsx"
click node_supabase_client "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/services/supabase.ts"
click node_api_client "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/services/api.ts"
click node_api "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/backend/app.py"
click node_questions "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/question_bank.json"
click node_analyzer "https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/analyzer.py"

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_home,node_login,node_signup,node_dashboard,node_interview,node_answer,node_results,node_profile,node_gauge toneBlue
class node_auth,node_supabase_client,node_supabase toneAmber
class node_api_client,node_api,node_questions toneMint
class node_analyzer toneRose
class node_candidate,node_speech_service toneIndigo
```

## Components

### Interview frontend

- [App routes](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Home and categories](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/HomePage.tsx): `frontend/src/pages/HomePage.tsx`
- [Login](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/LoginPage.tsx): `frontend/src/pages/LoginPage.tsx`
- [Sign up](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/SignupPage.tsx): `frontend/src/pages/SignupPage.tsx`
- [Session dashboard](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/DashboardPage.tsx): `frontend/src/pages/DashboardPage.tsx`
- [Interview session](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/InterviewPage.tsx): `frontend/src/pages/InterviewPage.tsx`
- [Answer input](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/components/AnswerInput.tsx): `frontend/src/components/AnswerInput.tsx`
- [Session results](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/ResultsPage.tsx): `frontend/src/pages/ResultsPage.tsx`
- [Profile and history](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/pages/ProfilePage.tsx): `frontend/src/pages/ProfilePage.tsx`
- [Score gauge](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/components/ScoreGauge.tsx): `frontend/src/components/ScoreGauge.tsx`

### Identity and history

- [Auth state](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/hooks/useAuth.tsx): `frontend/src/hooks/useAuth.tsx`
- [Supabase client](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/services/supabase.ts): `frontend/src/services/supabase.ts`

### Interview API

- [API client](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/frontend/src/services/api.ts): `frontend/src/services/api.ts`
- [FastAPI routes](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/backend/app.py): `backend/app.py`
- [Question bank](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/question_bank.json): `question_bank.json`

### Answer analysis

- [NLP scoring](https://github.com/kajjayamadithya/ai-interview-analyzer/blob/main/analyzer.py): `analyzer.py`

### Other components

- **Candidate**
- **Supabase**
- **Google Speech Recognition**

## Connections

- Candidate → Home and categories: browses (evidence: `README.md`)
- Candidate → Login: signs in (evidence: `README.md`)
- Candidate → Sign up: signs up (evidence: `README.md`)
- Candidate → Session dashboard: reviews sessions (evidence: `README.md`)
- Candidate → Interview session: practices (evidence: `README.md`)
- App routes → Home and categories: routes to (evidence: `frontend/src/App.tsx`)
- App routes → Login: routes to (evidence: `frontend/src/App.tsx`)
- App routes → Sign up: routes to (evidence: `frontend/src/App.tsx`)
- App routes → Session dashboard: routes to (evidence: `frontend/src/App.tsx`)
- App routes → Interview session: routes to (evidence: `frontend/src/App.tsx`)
- App routes → Session results: routes to (evidence: `frontend/src/App.tsx`)
- App routes → Profile and history: routes to (evidence: `frontend/src/App.tsx`)
- App routes → Auth state: provides auth (evidence: `frontend/src/App.tsx`)
- Interview session → API client: fetches questions (evidence: `frontend/src/pages/InterviewPage.tsx`)
- Interview session → Answer input: renders input (evidence: `frontend/src/pages/InterviewPage.tsx`)
- Interview session → Session results: navigates with answers (evidence: `frontend/src/pages/InterviewPage.tsx`)
- Session results → API client: submits session (evidence: `frontend/src/pages/ResultsPage.tsx`)
- API client → FastAPI routes: sends requests (evidence: `frontend/src/services/api.ts`)
- FastAPI routes → NLP scoring: analyzes answers (evidence: `backend/app.py`)
- FastAPI routes → Question bank: serves questions (evidence: `README.md`)
- NLP scoring → Google Speech Recognition: transcribes audio (evidence: `README.md`)
- Auth state → Supabase client: uses client (evidence: `frontend/src/hooks/useAuth.tsx`)
- Supabase client → Supabase: authenticates (evidence: `frontend/src/services/supabase.ts`)
- Session results → Supabase client: saves results (evidence: `frontend/src/pages/ResultsPage.tsx`)
- Profile and history → Supabase client: reads history (evidence: `frontend/src/pages/ProfilePage.tsx`)
- Session results → Score gauge: renders scores (evidence: `frontend/src/pages/ResultsPage.tsx`)
- Profile and history → Score gauge: renders scores (evidence: `frontend/src/pages/ProfilePage.tsx`)
- Session dashboard → Interview session: starts interview
