# thrinay296/interviewai architecture

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

- Interactive diagram: https://gitdiagram.com/thrinay296/interviewai
- Repository: https://github.com/thrinay296/interviewai

## Overview

InterviewAI is a browser-based, AI-proctored mock-interview product. A candidate provides a resume and job description; the app extracts and matches their content, then conducts an adaptive spoken interview with coding tasks when appropriate. Answers and proctoring signals feed scoring and a final explanatory report. The graph preserves documented capabilities even where implementation excerpts were unavailable; relationships among those areas are cited to the README, and unsampled wiring is not asserted beyond that documentation.

Main entry points: [`frontend/app.js`](https://github.com/thrinay296/interviewai/blob/main/frontend/app.js) (Interview UI), [`backend/app/main.py`](https://github.com/thrinay296/interviewai/blob/main/backend/app/main.py) (Interview API), [`backend/app/engine.py`](https://github.com/thrinay296/interviewai/blob/main/backend/app/engine.py) (Adaptive engine), [`backend/app/report.py`](https://github.com/thrinay296/interviewai/blob/main/backend/app/report.py) (Interview report)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intake["Preparation"]
  node_resume_upload["Resume parsing<br/>[parsers.py]"]
  node_matching["ATS matching<br/>[matcher.py]"]
  node_project_extract["Project extraction<br/>[resume_projects.py]"]
  node_skills["Skill analysis<br/>[skills.py]"]
end

subgraph group_interview["Interview engine"]
  node_browser["Interview UI<br/>[app.js]"]
  node_api["Interview API<br/>[main.py]"]
  node_engine["Adaptive engine<br/>[engine.py]"]
  node_questions["Question bank<br/>[question_bank.py]"]
  node_scenarios["Scenario bank<br/>[scenario_bank.py]"]
  node_coding_bank["Coding bank<br/>[coding_bank.py]"]
  node_voice["Speech capture<br/>[voice.js]"]
end

subgraph group_answer["Answer assessment"]
  node_transcription["Audio transcription<br/>[speech.py]"]
  node_evaluator["Answer evaluation<br/>[evaluator.py]"]
  node_llm["Model gateway<br/>[llm.py]"]
  node_config["Model configuration<br/>[config.py]"]
  node_runner["Code execution<br/>[runner.py]"]
  node_runner_service["Runner service<br/>[runner_service.py]"]
end

subgraph group_proctor["Candidate monitoring"]
  node_face["Camera analysis<br/>[face.js]"]
  node_lockdown["Secure controls<br/>[lockdown.js]"]
  node_proctoring["Proctoring analysis<br/>[proctoring.py]"]
end

subgraph group_results["Results and state"]
  node_consistency["Consistency analysis<br/>[consistency.py]"]
  node_report["Interview report<br/>[report.py]"]
  node_storage[("Session storage<br/>[storage.py]")]
end

node_candidate(("Candidate"))
node_model_provider["LLM provider"]

node_candidate -->|"submits materials"| node_browser
node_browser -->|"starts interview"| node_api
node_api -->|"extracts text"| node_resume_upload
node_api -->|"matches resume"| node_matching
node_matching -->|"identifies gaps"| node_skills
node_engine -->|"extracts projects"| node_project_extract
node_engine -->|"uses topics"| node_questions
node_engine -->|"selects scenarios"| node_scenarios
node_engine -->|"selects coding tasks"| node_coding_bank
node_api -->|"conducts interview"| node_engine
node_browser -->|"captures speech"| node_voice
node_voice -->|"sends recorded audio"| node_transcription
node_browser -->|"submits answers"| node_evaluator
node_evaluator -->|"requests grading"| node_llm
node_llm -->|"reads settings"| node_config
node_llm -->|"calls model"| node_model_provider
node_browser -->|"runs code"| node_runner
node_runner -.->|"uses isolated runner"| node_runner_service
node_browser -->|"analyzes camera"| node_face
node_browser -->|"enables secure mode"| node_lockdown
node_browser -->|"sends monitor events"| node_api
node_api -->|"analyzes events"| node_proctoring
node_report -->|"computes consistency"| node_consistency
node_report -->|"uses event analysis"| node_proctoring
node_api -->|"builds report"| node_report
node_api -.->|"stores sessions"| node_storage
node_browser -->|"displays results"| node_report

click node_browser "https://github.com/thrinay296/interviewai/blob/main/frontend/app.js"
click node_resume_upload "https://github.com/thrinay296/interviewai/blob/main/backend/app/parsers.py"
click node_matching "https://github.com/thrinay296/interviewai/blob/main/backend/app/matcher.py"
click node_project_extract "https://github.com/thrinay296/interviewai/blob/main/backend/app/resume_projects.py"
click node_skills "https://github.com/thrinay296/interviewai/blob/main/backend/app/skills.py"
click node_api "https://github.com/thrinay296/interviewai/blob/main/backend/app/main.py"
click node_engine "https://github.com/thrinay296/interviewai/blob/main/backend/app/engine.py"
click node_questions "https://github.com/thrinay296/interviewai/blob/main/backend/app/question_bank.py"
click node_scenarios "https://github.com/thrinay296/interviewai/blob/main/backend/app/scenario_bank.py"
click node_coding_bank "https://github.com/thrinay296/interviewai/blob/main/backend/app/coding_bank.py"
click node_voice "https://github.com/thrinay296/interviewai/blob/main/frontend/voice.js"
click node_transcription "https://github.com/thrinay296/interviewai/blob/main/backend/app/speech.py"
click node_evaluator "https://github.com/thrinay296/interviewai/blob/main/backend/app/evaluator.py"
click node_llm "https://github.com/thrinay296/interviewai/blob/main/backend/app/llm.py"
click node_config "https://github.com/thrinay296/interviewai/blob/main/backend/app/config.py"
click node_runner "https://github.com/thrinay296/interviewai/blob/main/backend/app/runner.py"
click node_runner_service "https://github.com/thrinay296/interviewai/blob/main/backend/app/runner_service.py"
click node_face "https://github.com/thrinay296/interviewai/blob/main/frontend/face.js"
click node_lockdown "https://github.com/thrinay296/interviewai/blob/main/frontend/lockdown.js"
click node_proctoring "https://github.com/thrinay296/interviewai/blob/main/backend/app/proctoring.py"
click node_consistency "https://github.com/thrinay296/interviewai/blob/main/backend/app/consistency.py"
click node_report "https://github.com/thrinay296/interviewai/blob/main/backend/app/report.py"
click node_storage "https://github.com/thrinay296/interviewai/blob/main/backend/app/storage.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_resume_upload,node_matching,node_project_extract,node_skills toneBlue
class node_browser,node_api,node_engine,node_questions,node_scenarios,node_coding_bank,node_voice toneAmber
class node_transcription,node_evaluator,node_llm,node_config,node_runner,node_runner_service toneMint
class node_face,node_lockdown,node_proctoring toneRose
class node_consistency,node_report,node_storage,node_candidate,node_model_provider toneIndigo
```

## Components

### Preparation

- [Resume parsing](https://github.com/thrinay296/interviewai/blob/main/backend/app/parsers.py): `backend/app/parsers.py`
- [ATS matching](https://github.com/thrinay296/interviewai/blob/main/backend/app/matcher.py): `backend/app/matcher.py`
- [Project extraction](https://github.com/thrinay296/interviewai/blob/main/backend/app/resume_projects.py): `backend/app/resume_projects.py`
- [Skill analysis](https://github.com/thrinay296/interviewai/blob/main/backend/app/skills.py): `backend/app/skills.py`

### Interview engine

- [Interview UI](https://github.com/thrinay296/interviewai/blob/main/frontend/app.js): `frontend/app.js`
- [Interview API](https://github.com/thrinay296/interviewai/blob/main/backend/app/main.py): `backend/app/main.py`
- [Adaptive engine](https://github.com/thrinay296/interviewai/blob/main/backend/app/engine.py): `backend/app/engine.py`
- [Question bank](https://github.com/thrinay296/interviewai/blob/main/backend/app/question_bank.py): `backend/app/question_bank.py`
- [Scenario bank](https://github.com/thrinay296/interviewai/blob/main/backend/app/scenario_bank.py): `backend/app/scenario_bank.py`
- [Coding bank](https://github.com/thrinay296/interviewai/blob/main/backend/app/coding_bank.py): `backend/app/coding_bank.py`
- [Speech capture](https://github.com/thrinay296/interviewai/blob/main/frontend/voice.js): `frontend/voice.js`

### Answer assessment

- [Audio transcription](https://github.com/thrinay296/interviewai/blob/main/backend/app/speech.py): `backend/app/speech.py`
- [Answer evaluation](https://github.com/thrinay296/interviewai/blob/main/backend/app/evaluator.py): `backend/app/evaluator.py`
- [Model gateway](https://github.com/thrinay296/interviewai/blob/main/backend/app/llm.py): `backend/app/llm.py`
- [Model configuration](https://github.com/thrinay296/interviewai/blob/main/backend/app/config.py): `backend/app/config.py`
- [Code execution](https://github.com/thrinay296/interviewai/blob/main/backend/app/runner.py): `backend/app/runner.py`
- [Runner service](https://github.com/thrinay296/interviewai/blob/main/backend/app/runner_service.py): `backend/app/runner_service.py`

### Candidate monitoring

- [Camera analysis](https://github.com/thrinay296/interviewai/blob/main/frontend/face.js): `frontend/face.js`
- [Secure controls](https://github.com/thrinay296/interviewai/blob/main/frontend/lockdown.js): `frontend/lockdown.js`
- [Proctoring analysis](https://github.com/thrinay296/interviewai/blob/main/backend/app/proctoring.py): `backend/app/proctoring.py`

### Results and state

- [Consistency analysis](https://github.com/thrinay296/interviewai/blob/main/backend/app/consistency.py): `backend/app/consistency.py`
- [Interview report](https://github.com/thrinay296/interviewai/blob/main/backend/app/report.py): `backend/app/report.py`
- [Session storage](https://github.com/thrinay296/interviewai/blob/main/backend/app/storage.py): `backend/app/storage.py`

### Other components

- **Candidate**
- **LLM provider**

## Connections

- Candidate → Interview UI: submits materials (evidence: `README.md`)
- Interview UI → Interview API: starts interview (evidence: `README.md`)
- Interview API → Resume parsing: extracts text (evidence: `README.md`)
- Interview API → ATS matching: matches resume (evidence: `README.md`)
- ATS matching → Skill analysis: identifies gaps (evidence: `README.md`)
- Adaptive engine → Project extraction: extracts projects (evidence: `backend/app/engine.py`)
- Adaptive engine → Question bank: uses topics (evidence: `backend/app/engine.py`)
- Adaptive engine → Scenario bank: selects scenarios (evidence: `backend/app/engine.py`)
- Adaptive engine → Coding bank: selects coding tasks (evidence: `backend/app/engine.py`)
- Interview API → Adaptive engine: conducts interview (evidence: `README.md`)
- Interview UI → Speech capture: captures speech (evidence: `README.md`)
- Speech capture → Audio transcription: sends recorded audio (evidence: `README.md`)
- Interview UI → Answer evaluation: submits answers (evidence: `README.md`)
- Answer evaluation → Model gateway: requests grading (evidence: `backend/app/evaluator.py`)
- Model gateway → Model configuration: reads settings (evidence: `backend/app/llm.py`)
- Model gateway → LLM provider: calls model (evidence: `README.md`)
- Interview UI → Code execution: runs code (evidence: `README.md`)
- Code execution → Runner service: uses isolated runner (evidence: `README.md`)
- Interview UI → Camera analysis: analyzes camera (evidence: `README.md`)
- Interview UI → Secure controls: enables secure mode (evidence: `README.md`)
- Interview UI → Interview API: sends monitor events (evidence: `README.md`)
- Interview API → Proctoring analysis: analyzes events (evidence: `README.md`)
- Interview report → Consistency analysis: computes consistency (evidence: `backend/app/report.py`)
- Interview report → Proctoring analysis: uses event analysis (evidence: `backend/app/report.py`)
- Interview API → Interview report: builds report (evidence: `README.md`)
- Interview API → Session storage: stores sessions
- Interview UI → Interview report: displays results (evidence: `README.md`)
