# 23eg110d34-chinmai/ai-interview-preparation-assistance architecture

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

- Interactive diagram: https://gitdiagram.com/23eg110d34-chinmai/ai-interview-preparation-assistance
- Repository: https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance

## Overview

AI Interview Coach supports account access, resume and job-description analysis, adaptive mock interviews with voice/text responses and feedback, reports, preparation plans, and progress dashboards. The main flow runs from React pages through the API client to FastAPI routes, which invoke domain services and persist user and coaching records. The README documents demo-mode behavior and major capabilities; several route and page implementations were not sampled, so their connections are shown only where the API client, entry point, source index, or README supports them.

Main entry points: [`frontend/src/App.jsx`](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/App.jsx) (Route shell), [`backend/app/main.py`](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/main.py) (API application), [`frontend/src/services/api.js`](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/services/api.js) (API client), [`backend/app/database/session.py`](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/database/session.py) (Database session)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["React application"]
  node_app["Route shell<br/>[App.jsx]"]
  node_authui["Auth state<br/>[AuthContext.jsx]"]
  node_dashboardui["Progress dashboard<br/>[DashboardPage.jsx]"]
  node_resumeui["Resume analysis<br/>[ResumePage.jsx]"]
  node_jobui["Job matching"]
  node_interviewui["Mock interview"]
  node_voice["Voice recorder<br/>[VoiceRecorder.jsx]"]
  node_feedback["Answer feedback<br/>[FeedbackCard.jsx]"]
  node_reportui["Interview report"]
  node_prepui["Preparation plan"]
  node_api_client["API client<br/>[api.js]"]
end

subgraph group_api["API and domain services"]
  node_fastapi["API application<br/>[main.py]"]
  node_authroute["Authentication routes<br/>[auth.py]"]
  node_resumeroute["Resume routes<br/>[resume.py]"]
  node_jobroute["Job description routes<br/>[job_description.py]"]
  node_interviewroute["Interview routes<br/>[interview.py]"]
  node_preproute["Preparation routes<br/>[preparation.py]"]
  node_dashboardroute["Dashboard routes<br/>[dashboard.py]"]
  node_authservice["Auth service<br/>[auth_service.py]"]
  node_parser["Document parser<br/>[parser_service.py]"]
  node_ai["AI coaching engine<br/>[ai_service.py]"]
end

subgraph group_data["Persistence"]
  node_dbsession["Database session<br/>[session.py]"]
  node_records[("Coaching records")]
end

node_seeker(("Job seeker"))
node_llm{{"OpenAI service"}}

node_seeker -->|"uses"| node_app
node_app -->|"routes to"| node_dashboardui
node_app -->|"routes to"| node_resumeui
node_app -->|"routes to"| node_jobui
node_app -->|"routes to"| node_interviewui
node_app -->|"routes to"| node_reportui
node_app -->|"routes to"| node_prepui
node_authui -->|"calls"| node_api_client
node_dashboardui -->|"requests data"| node_api_client
node_resumeui -->|"requests analysis"| node_api_client
node_jobui -->|"requests matching"| node_api_client
node_interviewui -->|"requests interview"| node_api_client
node_interviewui -->|"renders"| node_voice
node_interviewui -->|"renders"| node_feedback
node_reportui -->|"requests report"| node_api_client
node_prepui -->|"requests plan"| node_api_client
node_api_client -->|"sends API requests"| node_fastapi
node_fastapi -->|"registers router"| node_authroute
node_fastapi -->|"registers router"| node_resumeroute
node_fastapi -->|"registers router"| node_jobroute
node_fastapi -->|"registers router"| node_interviewroute
node_fastapi -->|"registers router"| node_preproute
node_fastapi -->|"registers router"| node_dashboardroute
node_authroute -->|"uses"| node_authservice
node_resumeroute -->|"parses uploads"| node_parser
node_resumeroute -->|"analyzes resume"| node_ai
node_interviewroute -->|"evaluates and generates"| node_ai
node_preproute -->|"generates plan"| node_ai
node_ai -.->|"calls when configured"| node_llm
node_authroute -->|"uses session"| node_dbsession
node_resumeroute -->|"uses session"| node_dbsession
node_interviewroute -->|"uses session"| node_dbsession
node_preproute -->|"uses session"| node_dbsession
node_dashboardroute -->|"uses session"| node_dbsession
node_authservice -->|"loads user"| node_dbsession
node_dbsession -->|"persists records"| node_records
node_authroute -->|"reads and writes"| node_records
node_resumeroute -->|"reads and writes"| node_records
node_interviewroute -->|"reads and writes"| node_records
node_preproute -->|"reads and writes"| node_records
node_dashboardroute -->|"reads records"| node_records

click node_app "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/App.jsx"
click node_authui "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/context/AuthContext.jsx"
click node_dashboardui "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/pages/DashboardPage.jsx"
click node_resumeui "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/pages/ResumePage.jsx"
click node_jobui "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/pages/JobDescriptionPage.jsx"
click node_interviewui "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/pages/MockInterviewPage.jsx"
click node_voice "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/components/VoiceRecorder.jsx"
click node_feedback "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/components/FeedbackCard.jsx"
click node_reportui "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/pages/InterviewReportPage.jsx"
click node_prepui "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/pages/PreparationPlanPage.jsx"
click node_api_client "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/services/api.js"
click node_fastapi "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/main.py"
click node_authroute "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/routes/auth.py"
click node_resumeroute "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/routes/resume.py"
click node_jobroute "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/routes/job_description.py"
click node_interviewroute "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/routes/interview.py"
click node_preproute "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/routes/preparation.py"
click node_dashboardroute "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/routes/dashboard.py"
click node_authservice "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/services/auth_service.py"
click node_parser "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/services/parser_service.py"
click node_ai "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/services/ai_service.py"
click node_dbsession "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/database/session.py"
click node_records "https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/tree/main/backend/app/models"

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_authui,node_dashboardui,node_resumeui,node_jobui,node_interviewui,node_voice,node_feedback,node_reportui,node_prepui,node_api_client toneBlue
class node_fastapi,node_authroute,node_resumeroute,node_jobroute,node_interviewroute,node_preproute,node_dashboardroute,node_authservice,node_parser,node_ai toneAmber
class node_dbsession,node_records toneMint
class node_seeker,node_llm toneIndigo
```

## Components

### React application

- [Route shell](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Auth state](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [Progress dashboard](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/pages/DashboardPage.jsx): `frontend/src/pages/DashboardPage.jsx`
- [Resume analysis](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/pages/ResumePage.jsx): `frontend/src/pages/ResumePage.jsx`
- [Job matching](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/pages/JobDescriptionPage.jsx): `frontend/src/pages/JobDescriptionPage.jsx`
- [Mock interview](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/pages/MockInterviewPage.jsx): `frontend/src/pages/MockInterviewPage.jsx`
- [Voice recorder](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/components/VoiceRecorder.jsx): `frontend/src/components/VoiceRecorder.jsx`
- [Answer feedback](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/components/FeedbackCard.jsx): `frontend/src/components/FeedbackCard.jsx`
- [Interview report](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/pages/InterviewReportPage.jsx): `frontend/src/pages/InterviewReportPage.jsx`
- [Preparation plan](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/pages/PreparationPlanPage.jsx): `frontend/src/pages/PreparationPlanPage.jsx`
- [API client](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/frontend/src/services/api.js): `frontend/src/services/api.js`

### API and domain services

- [API application](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/main.py): `backend/app/main.py`
- [Authentication routes](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/routes/auth.py): `backend/app/routes/auth.py`
- [Resume routes](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/routes/resume.py): `backend/app/routes/resume.py`
- [Job description routes](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/routes/job_description.py): `backend/app/routes/job_description.py`
- [Interview routes](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/routes/interview.py): `backend/app/routes/interview.py`
- [Preparation routes](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/routes/preparation.py): `backend/app/routes/preparation.py`
- [Dashboard routes](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/routes/dashboard.py): `backend/app/routes/dashboard.py`
- [Auth service](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/services/auth_service.py): `backend/app/services/auth_service.py`
- [Document parser](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/services/parser_service.py): `backend/app/services/parser_service.py`
- [AI coaching engine](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/services/ai_service.py): `backend/app/services/ai_service.py`

### Persistence

- [Database session](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/blob/main/backend/app/database/session.py): `backend/app/database/session.py`
- [Coaching records](https://github.com/23eg110d34-chinmai/ai-interview-preparation-assistance/tree/main/backend/app/models): `backend/app/models`

### Other components

- **Job seeker**
- **OpenAI service**

## Connections

- Job seeker → Route shell: uses (evidence: `README.md`)
- Route shell → Progress dashboard: routes to (evidence: `frontend/src/App.jsx`)
- Route shell → Resume analysis: routes to (evidence: `frontend/src/App.jsx`)
- Route shell → Job matching: routes to (evidence: `frontend/src/App.jsx`)
- Route shell → Mock interview: routes to (evidence: `frontend/src/App.jsx`)
- Route shell → Interview report: routes to (evidence: `frontend/src/App.jsx`)
- Route shell → Preparation plan: routes to (evidence: `frontend/src/App.jsx`)
- Auth state → API client: calls (evidence: `frontend/src/context/AuthContext.jsx`)
- Progress dashboard → API client: requests data (evidence: `frontend/src/pages/DashboardPage.jsx`)
- Resume analysis → API client: requests analysis (evidence: `frontend/src/pages/ResumePage.jsx`)
- Job matching → API client: requests matching (evidence: `frontend/src/pages/JobDescriptionPage.jsx`)
- Mock interview → API client: requests interview (evidence: `frontend/src/pages/MockInterviewPage.jsx`)
- Mock interview → Voice recorder: renders (evidence: `frontend/src/pages/MockInterviewPage.jsx`)
- Mock interview → Answer feedback: renders (evidence: `frontend/src/pages/MockInterviewPage.jsx`)
- Interview report → API client: requests report (evidence: `frontend/src/pages/InterviewReportPage.jsx`)
- Preparation plan → API client: requests plan (evidence: `frontend/src/pages/PreparationPlanPage.jsx`)
- API client → API application: sends API requests (evidence: `frontend/src/services/api.js`)
- API application → Authentication routes: registers router (evidence: `backend/app/main.py`)
- API application → Resume routes: registers router (evidence: `backend/app/main.py`)
- API application → Job description routes: registers router (evidence: `backend/app/main.py`)
- API application → Interview routes: registers router (evidence: `backend/app/main.py`)
- API application → Preparation routes: registers router (evidence: `backend/app/main.py`)
- API application → Dashboard routes: registers router (evidence: `backend/app/main.py`)
- Authentication routes → Auth service: uses (evidence: `backend/app/routes/auth.py`)
- Resume routes → Document parser: parses uploads (evidence: `backend/app/routes/resume.py`)
- Resume routes → AI coaching engine: analyzes resume (evidence: `backend/app/routes/resume.py`)
- Interview routes → AI coaching engine: evaluates and generates (evidence: `backend/app/routes/interview.py`)
- Preparation routes → AI coaching engine: generates plan (evidence: `backend/app/routes/preparation.py`)
- AI coaching engine → OpenAI service: calls when configured (evidence: `backend/app/services/ai_service.py`)
- Authentication routes → Database session: uses session (evidence: `backend/app/routes/auth.py`)
- Resume routes → Database session: uses session (evidence: `backend/app/routes/resume.py`)
- Interview routes → Database session: uses session (evidence: `backend/app/routes/interview.py`)
- Preparation routes → Database session: uses session (evidence: `backend/app/routes/preparation.py`)
- Dashboard routes → Database session: uses session (evidence: `backend/app/routes/dashboard.py`)
- Auth service → Database session: loads user (evidence: `backend/app/services/auth_service.py`)
- Database session → Coaching records: persists records (evidence: `backend/app/database/session.py`)
- Authentication routes → Coaching records: reads and writes (evidence: `backend/app/routes/auth.py`)
- Resume routes → Coaching records: reads and writes (evidence: `backend/app/routes/resume.py`)
- Interview routes → Coaching records: reads and writes (evidence: `backend/app/routes/interview.py`)
- Preparation routes → Coaching records: reads and writes (evidence: `backend/app/routes/preparation.py`)
- Dashboard routes → Coaching records: reads records (evidence: `backend/app/routes/dashboard.py`)
