# debcodadi/interview-bot-vercel architecture

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

- Interactive diagram: https://gitdiagram.com/debcodadi/interview-bot-vercel
- Repository: https://github.com/debcodadi/interview-bot-vercel

## Overview

This is an AI technical-interview studio: a candidate submits a resume, completes a voice interview and coding challenge, then receives an evidence-based evaluation. The backend supports resume analysis and question generation, interview orchestration and transcript handling, isolated code testing, and report generation; the React studio presents setup, interview, coding, and report screens. Supabase persistence and Groq/Judge0 integrations are visible in sampled source. Some frontend API wiring and voice-provider setup are unsampled, so those connections are omitted or marked unverified.

Main entry points: [`routers/interview.py`](https://github.com/debcodadi/interview-bot-vercel/blob/main/routers/interview.py) (Interview endpoints), [`frontend/src/App.jsx`](https://github.com/debcodadi/interview-bot-vercel/blob/main/frontend/src/App.jsx) (Studio app), [`routers/coding.py`](https://github.com/debcodadi/interview-bot-vercel/blob/main/routers/coding.py) (Coding endpoints), [`main.py`](https://github.com/debcodadi/interview-bot-vercel/blob/main/main.py) (FastAPI application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Candidate studio"]
  node_app["Studio app<br/>[App.jsx]"]
  node_setup["Resume setup<br/>[SetupScreen.jsx]"]
  node_interview_screen["Interview screen"]
  node_coding_screen["Coding workspace<br/>[CodingScreen.jsx]"]
  node_transcript["Transcript view<br/>[Transcript.jsx]"]
  node_test_results["Test results<br/>[TestResults.jsx]"]
  node_evaluation_screen["Evaluation report"]
end

subgraph group_api["Interview API"]
  node_server["FastAPI application<br/>[main.py]"]
  node_resume_api["Resume endpoints<br/>[resume.py]"]
  node_interview_api["Interview endpoints<br/>[interview.py]"]
  node_coding_api["Coding endpoints<br/>[coding.py]"]
  node_request_schema["Interview request models<br/>[interview.py]"]
end

subgraph group_domain["Interview services"]
  node_resume_processing["Resume analysis<br/>[resume_service.py]"]
  node_question_bank["Question bank<br/>[question_loader.py]"]
  node_prompt_builder["Interview prompts<br/>[prompt_builder.py]"]
  node_code_runner["Code test runner<br/>[judge0_service.py]"]
  node_evaluation["Evidence evaluation"]
end

subgraph group_state["Session and results"]
  node_session_store[("Session persistence<br/>[session_store.py]")]
end

node_candidate(("Candidate"))
node_supabase[("Supabase")]
node_groq["Groq LLM"]
node_judge0["Judge0"]
node_vapi["VAPI voice service"]

node_candidate -->|"uses"| node_app
node_app -->|"renders"| node_setup
node_app -->|"renders"| node_interview_screen
node_app -->|"renders"| node_coding_screen
node_app -->|"renders"| node_evaluation_screen
node_coding_screen -->|"renders"| node_transcript
node_coding_screen -->|"renders"| node_test_results
node_interview_screen -->|"renders"| node_transcript
node_app -.->|"uses voice SDK"| node_vapi
node_server -->|"registers"| node_resume_api
node_server -->|"registers"| node_interview_api
node_server -->|"registers"| node_coding_api
node_resume_api -->|"analyzes resumes"| node_resume_processing
node_resume_api -->|"saves sessions"| node_session_store
node_resume_processing -->|"generates analysis"| node_groq
node_interview_api -->|"validates requests"| node_request_schema
node_interview_api -->|"reads and updates"| node_session_store
node_interview_api -->|"loads questions"| node_question_bank
node_interview_api -->|"builds prompts"| node_prompt_builder
node_interview_api -->|"generates questions"| node_resume_processing
node_interview_api -->|"runs code tests"| node_code_runner
node_interview_api -->|"evaluates interview"| node_evaluation
node_interview_api -->|"receives call reports"| node_vapi
node_coding_api -->|"loads questions"| node_question_bank
node_coding_api -->|"runs tests"| node_code_runner
node_coding_api -->|"evaluates session"| node_evaluation
node_code_runner -->|"submits code"| node_judge0
node_evaluation -->|"generates report"| node_groq
node_session_store -->|"reads and writes"| node_supabase

click node_app "https://github.com/debcodadi/interview-bot-vercel/blob/main/frontend/src/App.jsx"
click node_setup "https://github.com/debcodadi/interview-bot-vercel/blob/main/frontend/src/components/SetupScreen.jsx"
click node_interview_screen "https://github.com/debcodadi/interview-bot-vercel/blob/main/frontend/src/components/InterviewScreen.jsx"
click node_coding_screen "https://github.com/debcodadi/interview-bot-vercel/blob/main/frontend/src/components/CodingScreen.jsx"
click node_transcript "https://github.com/debcodadi/interview-bot-vercel/blob/main/frontend/src/components/Transcript.jsx"
click node_test_results "https://github.com/debcodadi/interview-bot-vercel/blob/main/frontend/src/components/TestResults.jsx"
click node_evaluation_screen "https://github.com/debcodadi/interview-bot-vercel/blob/main/frontend/src/components/EvaluationScreen.jsx"
click node_server "https://github.com/debcodadi/interview-bot-vercel/blob/main/main.py"
click node_resume_api "https://github.com/debcodadi/interview-bot-vercel/blob/main/routers/resume.py"
click node_interview_api "https://github.com/debcodadi/interview-bot-vercel/blob/main/routers/interview.py"
click node_coding_api "https://github.com/debcodadi/interview-bot-vercel/blob/main/routers/coding.py"
click node_request_schema "https://github.com/debcodadi/interview-bot-vercel/blob/main/schemas/interview.py"
click node_resume_processing "https://github.com/debcodadi/interview-bot-vercel/blob/main/services/resume_service.py"
click node_question_bank "https://github.com/debcodadi/interview-bot-vercel/blob/main/services/question_loader.py"
click node_prompt_builder "https://github.com/debcodadi/interview-bot-vercel/blob/main/services/prompt_builder.py"
click node_code_runner "https://github.com/debcodadi/interview-bot-vercel/blob/main/services/judge0_service.py"
click node_evaluation "https://github.com/debcodadi/interview-bot-vercel/blob/main/services/evaluation_service.py"
click node_session_store "https://github.com/debcodadi/interview-bot-vercel/blob/main/services/session_store.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_setup,node_interview_screen,node_coding_screen,node_transcript,node_test_results,node_evaluation_screen toneBlue
class node_server,node_resume_api,node_interview_api,node_coding_api,node_request_schema,node_supabase toneAmber
class node_resume_processing,node_question_bank,node_prompt_builder,node_code_runner,node_evaluation,node_vapi toneMint
class node_session_store toneRose
class node_candidate,node_groq,node_judge0 toneIndigo
```

## Components

### Candidate studio

- [Studio app](https://github.com/debcodadi/interview-bot-vercel/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Resume setup](https://github.com/debcodadi/interview-bot-vercel/blob/main/frontend/src/components/SetupScreen.jsx): `frontend/src/components/SetupScreen.jsx`
- [Interview screen](https://github.com/debcodadi/interview-bot-vercel/blob/main/frontend/src/components/InterviewScreen.jsx): `frontend/src/components/InterviewScreen.jsx`
- [Coding workspace](https://github.com/debcodadi/interview-bot-vercel/blob/main/frontend/src/components/CodingScreen.jsx): `frontend/src/components/CodingScreen.jsx`
- [Transcript view](https://github.com/debcodadi/interview-bot-vercel/blob/main/frontend/src/components/Transcript.jsx): `frontend/src/components/Transcript.jsx`
- [Test results](https://github.com/debcodadi/interview-bot-vercel/blob/main/frontend/src/components/TestResults.jsx): `frontend/src/components/TestResults.jsx`
- [Evaluation report](https://github.com/debcodadi/interview-bot-vercel/blob/main/frontend/src/components/EvaluationScreen.jsx): `frontend/src/components/EvaluationScreen.jsx`

### Interview API

- [FastAPI application](https://github.com/debcodadi/interview-bot-vercel/blob/main/main.py): `main.py`
- [Resume endpoints](https://github.com/debcodadi/interview-bot-vercel/blob/main/routers/resume.py): `routers/resume.py`
- [Interview endpoints](https://github.com/debcodadi/interview-bot-vercel/blob/main/routers/interview.py): `routers/interview.py`
- [Coding endpoints](https://github.com/debcodadi/interview-bot-vercel/blob/main/routers/coding.py): `routers/coding.py`
- [Interview request models](https://github.com/debcodadi/interview-bot-vercel/blob/main/schemas/interview.py): `schemas/interview.py`

### Interview services

- [Resume analysis](https://github.com/debcodadi/interview-bot-vercel/blob/main/services/resume_service.py): `services/resume_service.py`
- [Question bank](https://github.com/debcodadi/interview-bot-vercel/blob/main/services/question_loader.py): `services/question_loader.py`
- [Interview prompts](https://github.com/debcodadi/interview-bot-vercel/blob/main/services/prompt_builder.py): `services/prompt_builder.py`
- [Code test runner](https://github.com/debcodadi/interview-bot-vercel/blob/main/services/judge0_service.py): `services/judge0_service.py`
- [Evidence evaluation](https://github.com/debcodadi/interview-bot-vercel/blob/main/services/evaluation_service.py): `services/evaluation_service.py`

### Session and results

- [Session persistence](https://github.com/debcodadi/interview-bot-vercel/blob/main/services/session_store.py): `services/session_store.py`

### Other components

- **Candidate**
- **Supabase**
- **Groq LLM**
- **Judge0**
- **VAPI voice service**

## Connections

- Candidate → Studio app: uses
- Studio app → Resume setup: renders (evidence: `frontend/src/App.jsx`)
- Studio app → Interview screen: renders (evidence: `frontend/src/App.jsx`)
- Studio app → Coding workspace: renders (evidence: `frontend/src/App.jsx`)
- Studio app → Evaluation report: renders (evidence: `frontend/src/App.jsx`)
- Coding workspace → Transcript view: renders (evidence: `frontend/src/components/CodingScreen.jsx`)
- Coding workspace → Test results: renders (evidence: `frontend/src/components/CodingScreen.jsx`)
- Interview screen → Transcript view: renders (evidence: `frontend/src/components/InterviewScreen.jsx`)
- Studio app → VAPI voice service: uses voice SDK
- FastAPI application → Resume endpoints: registers (evidence: `main.py`)
- FastAPI application → Interview endpoints: registers (evidence: `main.py`)
- FastAPI application → Coding endpoints: registers (evidence: `main.py`)
- Resume endpoints → Resume analysis: analyzes resumes (evidence: `routers/resume.py`)
- Resume endpoints → Session persistence: saves sessions (evidence: `routers/resume.py`)
- Resume analysis → Groq LLM: generates analysis (evidence: `services/resume_service.py`)
- Interview endpoints → Interview request models: validates requests (evidence: `routers/interview.py`)
- Interview endpoints → Session persistence: reads and updates (evidence: `routers/interview.py`)
- Interview endpoints → Question bank: loads questions (evidence: `routers/interview.py`)
- Interview endpoints → Interview prompts: builds prompts (evidence: `routers/interview.py`)
- Interview endpoints → Resume analysis: generates questions (evidence: `routers/interview.py`)
- Interview endpoints → Code test runner: runs code tests (evidence: `routers/interview.py`)
- Interview endpoints → Evidence evaluation: evaluates interview (evidence: `routers/interview.py`)
- Interview endpoints → VAPI voice service: receives call reports (evidence: `routers/interview.py`)
- Coding endpoints → Question bank: loads questions (evidence: `routers/coding.py`)
- Coding endpoints → Code test runner: runs tests (evidence: `routers/coding.py`)
- Coding endpoints → Evidence evaluation: evaluates session (evidence: `routers/coding.py`)
- Code test runner → Judge0: submits code (evidence: `services/judge0_service.py`)
- Evidence evaluation → Groq LLM: generates report (evidence: `services/evaluation_service.py`)
- Session persistence → Supabase: reads and writes (evidence: `services/session_store.py`)
