# vaishnavk09/multimodal-ai-interviewer architecture

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

- Interactive diagram: https://gitdiagram.com/vaishnavk09/multimodal-ai-interviewer
- Repository: https://github.com/vaishnavk09/multimodal-ai-interviewer

## Overview

Multimodal AI Interviewer is a web platform for practicing tailored mock interviews and reviewing performance. The main workflow is: a candidate signs in, configures or supplies background, completes a device check, answers staged questions, and receives multimodal scores and session guidance; completed sessions feed history and analytics. The backend coordinates session state, question generation, persistence, and calls to the Python AI service for resume parsing, transcription, and answer analysis. README capabilities include resume parsing, adaptive follow-ups, facial and prosody analysis, and analytics. Some frontend and AI implementation details were not excerpted, so those links rely on documented capabilities.

Main entry points: [`backend/src/controllers/interview.controller.js`](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/controllers/interview.controller.js) (Session orchestration), [`frontend/src/App.jsx`](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/App.jsx) (App routing), [`frontend/src/api.js`](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/api.js) (API client), [`frontend/src/pages/History.jsx`](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/pages/History.jsx) (History analytics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Candidate application"]
  node_app["App routing<br/>[App.jsx]"]
  node_dashboard["Practice dashboard<br/>[Dashboard.jsx]"]
  node_interview_ui["Interview room<br/>[Interview.jsx]"]
  node_history_ui["History analytics<br/>[History.jsx]"]
  node_api_client["API client<br/>[api.js]"]
  node_login["Login<br/>[Login.jsx]"]
  node_signup["Signup<br/>[Signup.jsx]"]
end

subgraph group_identity["Identity and access"]
  node_auth_routes["Auth routes<br/>[auth.routes.js]"]
  node_auth_controller["Auth controller<br/>[auth.controller.js]"]
  node_auth_middleware["JWT guard<br/>[auth.middleware.js]"]
end

subgraph group_interview["Interview orchestration"]
  node_interview_routes["Interview routes"]
  node_interview_controller["Session orchestration"]
  node_stage_plan["Stage planning<br/>[interviewPlan.js]"]
  node_question_service["Question generation<br/>[llmService.js]"]
  node_backend["Express API<br/>[server.js]"]
end

subgraph group_analysis["AI analysis"]
  node_ai_service["AI analysis service<br/>[main.py]"]
  node_gemini{{"Gemini API"}}
end

subgraph group_storage["Persisted sessions"]
  node_user_model[("User profile<br/>[User.js]")]
  node_session_model[("Interview sessions<br/>[Session.js]")]
  node_mongo[("MongoDB")]
end

node_candidate(("Candidate"))

node_candidate -->|"uses"| node_app
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_signup
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_interview_ui
node_app -->|"routes to"| node_history_ui
node_login -.->|"authenticates via"| node_api_client
node_signup -->|"registers via"| node_api_client
node_dashboard -.->|"starts practice"| node_api_client
node_interview_ui -->|"requests sessions"| node_api_client
node_history_ui -->|"loads history"| node_api_client
node_api_client -->|"sends API requests"| node_backend
node_backend -->|"mounts"| node_auth_routes
node_backend -->|"mounts"| node_interview_routes
node_auth_routes -->|"routes to"| node_auth_controller
node_auth_routes -->|"guards profile"| node_auth_middleware
node_interview_routes -->|"guards endpoints"| node_auth_middleware
node_interview_routes -->|"routes to"| node_interview_controller
node_auth_controller -->|"reads and writes"| node_user_model
node_interview_controller -->|"loads profile"| node_user_model
node_interview_controller -->|"builds stages"| node_stage_plan
node_interview_controller -->|"requests questions"| node_question_service
node_question_service -->|"uses stage descriptions"| node_stage_plan
node_question_service -.->|"generates questions"| node_gemini
node_interview_controller -->|"creates and updates"| node_session_model
node_interview_controller -->|"parses, transcribes, analyzes"| node_ai_service
node_interview_controller -->|"reads history"| node_session_model
node_user_model -.->|"persists profiles"| node_mongo
node_session_model -.->|"persists sessions"| node_mongo
node_ai_service -.->|"scores answers"| node_candidate
node_history_ui -.->|"shows progress"| node_candidate

click node_app "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/App.jsx"
click node_dashboard "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/pages/Dashboard.jsx"
click node_interview_ui "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/pages/Interview.jsx"
click node_history_ui "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/pages/History.jsx"
click node_api_client "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/api.js"
click node_login "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/pages/Login.jsx"
click node_signup "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/pages/Signup.jsx"
click node_auth_routes "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/routes/auth.routes.js"
click node_auth_controller "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/controllers/auth.controller.js"
click node_auth_middleware "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/middleware/auth.middleware.js"
click node_user_model "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/models/User.js"
click node_interview_routes "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/routes/interview.routes.js"
click node_interview_controller "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/controllers/interview.controller.js"
click node_stage_plan "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/services/interviewPlan.js"
click node_question_service "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/services/llmService.js"
click node_session_model "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/models/Session.js"
click node_ai_service "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/ai-services/main.py"
click node_backend "https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/server.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_app,node_dashboard,node_interview_ui,node_history_ui,node_api_client,node_login,node_signup toneBlue
class node_auth_routes,node_auth_controller,node_auth_middleware toneAmber
class node_interview_routes,node_interview_controller,node_stage_plan,node_question_service,node_backend toneMint
class node_ai_service,node_gemini toneRose
class node_user_model,node_session_model,node_mongo,node_candidate toneIndigo
```

## Components

### Candidate application

- [App routing](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Practice dashboard](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/pages/Dashboard.jsx): `frontend/src/pages/Dashboard.jsx`
- [Interview room](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/pages/Interview.jsx): `frontend/src/pages/Interview.jsx`
- [History analytics](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/pages/History.jsx): `frontend/src/pages/History.jsx`
- [API client](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/api.js): `frontend/src/api.js`
- [Login](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/pages/Login.jsx): `frontend/src/pages/Login.jsx`
- [Signup](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/frontend/src/pages/Signup.jsx): `frontend/src/pages/Signup.jsx`

### Identity and access

- [Auth routes](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/routes/auth.routes.js): `backend/src/routes/auth.routes.js`
- [Auth controller](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/controllers/auth.controller.js): `backend/src/controllers/auth.controller.js`
- [JWT guard](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/middleware/auth.middleware.js): `backend/src/middleware/auth.middleware.js`

### Interview orchestration

- [Interview routes](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/routes/interview.routes.js): `backend/src/routes/interview.routes.js`
- [Session orchestration](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/controllers/interview.controller.js): `backend/src/controllers/interview.controller.js`
- [Stage planning](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/services/interviewPlan.js): `backend/src/services/interviewPlan.js`
- [Question generation](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/services/llmService.js): `backend/src/services/llmService.js`
- [Express API](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/server.js): `backend/src/server.js`

### AI analysis

- [AI analysis service](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/ai-services/main.py): `ai-services/main.py`
- **Gemini API**

### Persisted sessions

- [User profile](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/models/User.js): `backend/src/models/User.js`
- [Interview sessions](https://github.com/vaishnavk09/multimodal-ai-interviewer/blob/master/backend/src/models/Session.js): `backend/src/models/Session.js`
- **MongoDB**

### Other components

- **Candidate**

## Connections

- Candidate → App routing: uses (evidence: `frontend/src/App.jsx`)
- App routing → Login: routes to (evidence: `frontend/src/App.jsx`)
- App routing → Signup: routes to (evidence: `frontend/src/App.jsx`)
- App routing → Practice dashboard: routes to (evidence: `frontend/src/App.jsx`)
- App routing → Interview room: routes to (evidence: `frontend/src/App.jsx`)
- App routing → History analytics: routes to (evidence: `frontend/src/App.jsx`)
- Login → API client: authenticates via
- Signup → API client: registers via (evidence: `frontend/src/pages/Signup.jsx`)
- Practice dashboard → API client: starts practice
- Interview room → API client: requests sessions (evidence: `frontend/src/pages/Interview.jsx`)
- History analytics → API client: loads history (evidence: `frontend/src/pages/History.jsx`)
- API client → Express API: sends API requests (evidence: `frontend/src/api.js`)
- Express API → Auth routes: mounts (evidence: `backend/src/server.js`)
- Express API → Interview routes: mounts (evidence: `backend/src/server.js`)
- Auth routes → Auth controller: routes to (evidence: `backend/src/routes/auth.routes.js`)
- Auth routes → JWT guard: guards profile (evidence: `backend/src/routes/auth.routes.js`)
- Interview routes → JWT guard: guards endpoints (evidence: `backend/src/routes/interview.routes.js`)
- Interview routes → Session orchestration: routes to (evidence: `backend/src/routes/interview.routes.js`)
- Auth controller → User profile: reads and writes (evidence: `backend/src/controllers/auth.controller.js`)
- Session orchestration → User profile: loads profile (evidence: `backend/src/controllers/interview.controller.js`)
- Session orchestration → Stage planning: builds stages (evidence: `backend/src/controllers/interview.controller.js`)
- Session orchestration → Question generation: requests questions (evidence: `backend/src/controllers/interview.controller.js`)
- Question generation → Stage planning: uses stage descriptions (evidence: `backend/src/services/llmService.js`)
- Question generation → Gemini API: generates questions
- Session orchestration → Interview sessions: creates and updates (evidence: `backend/src/controllers/interview.controller.js`)
- Session orchestration → AI analysis service: parses, transcribes, analyzes (evidence: `backend/src/controllers/interview.controller.js`)
- Session orchestration → Interview sessions: reads history (evidence: `backend/src/controllers/interview.controller.js`)
- User profile → MongoDB: persists profiles
- Interview sessions → MongoDB: persists sessions
- AI analysis service → Candidate: scores answers (evidence: `README.md`)
- History analytics → Candidate: shows progress (evidence: `README.md`)
