# chinmaynaik-1/nextround-x-hacktoberfest architecture

> Architecture diagram of the GitHub repository chinmaynaik-1/nextround-x-hacktoberfest, 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/chinmaynaik-1/nextround-x-hacktoberfest
- Repository: https://github.com/chinmaynaik-1/nextround-x-hacktoberfest

## Overview

NextRound is a desktop AI mock-interview platform. The user configures a candidate, role, resume, provider and selected rounds; the app then runs coding and voice interview stages, collects transcripts/submissions, and requests a final scorecard. The graph preserves setup, DSA, technical and HR stages, results, proctoring, persistence and AI capabilities documented in the README. Edges reflect excerpts or explicit README architecture; unsampled round/backend connections are omitted where their runtime callers are not shown.

Main entry points: [`backend/main.py`](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/backend/main.py) (FastAPI Endpoints), [`frontend/src/App.tsx`](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/App.tsx) (Workflow Router), [`frontend/src/services/api.ts`](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/services/api.ts) (Backend API Client), [`frontend/src/screens/DSARoundScreen.tsx`](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/screens/DSARoundScreen.tsx) (DSA Coding Round)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Desktop Client"]
  node_app["Workflow Router<br/>[App.tsx]"]
  node_setup["Interview Setup<br/>[SetupScreen.tsx]"]
  node_permissions["Permissions Check"]
  node_landing["Landing &amp; History<br/>[LandingScreen.tsx]"]
  node_results["Scorecard &amp; Results<br/>[ResultsScreen.tsx]"]
  node_api["Backend API Client<br/>[api.ts]"]
  node_electron["Electron Shell<br/>[main.cjs]"]
end

subgraph group_interview["Interview Rounds"]
  node_dsa["DSA Coding Round<br/>[DSARoundScreen.tsx]"]
  node_technical["Technical Round"]
  node_hr["HR Round<br/>[HRRoundScreen.tsx]"]
  node_camera["Camera &amp; Mic Feed<br/>[CameraFeed.tsx]"]
  node_voice["Voice Orb<br/>[VoiceOrb.tsx]"]
  node_proctoring["Fullscreen Guard"]
end

subgraph group_backend["Interview Services"]
  node_server["FastAPI Endpoints<br/>[main.py]"]
  node_question["Company Question Bank<br/>[question_bank.py]"]
  node_runner["Code Execution<br/>[code_runner.py]"]
  node_agent["AI Interview Agent<br/>[ai_agent.py]"]
  node_resume["Resume Extraction<br/>[resume_parser.py]"]
end

subgraph group_state["Persistence"]
  node_database[("SQLite Persistence<br/>[db.py]")]
end

node_candidate(("Candidate"))
node_llm{{"LLM Provider"}}

node_candidate -->|"starts setup"| node_landing
node_landing -->|"begins flow"| node_app
node_app -->|"renders"| node_setup
node_setup -->|"parses resume"| node_api
node_api -->|"sends requests"| node_server
node_server -->|"parses resume"| node_resume
node_setup -->|"opens check"| node_permissions
node_app -->|"starts session"| node_server
node_server -->|"reads and writes"| node_database
node_app -->|"routes round"| node_dsa
node_app -->|"routes round"| node_technical
node_app -->|"routes round"| node_hr
node_dsa -->|"runs and analyzes"| node_api
node_api -->|"requests questions"| node_server
node_server -->|"fetches questions"| node_question
node_server -->|"executes code"| node_runner
node_server -->|"requests analysis"| node_agent
node_dsa -->|"renders feed"| node_camera
node_dsa -->|"renders orb"| node_voice
node_technical -->|"renders feed"| node_camera
node_technical -->|"renders orb"| node_voice
node_hr -->|"renders feed"| node_camera
node_hr -->|"renders orb"| node_voice
node_app -->|"enforces warnings"| node_proctoring
node_electron -->|"detects window blur"| node_proctoring
node_technical -->|"sends interview turns"| node_api
node_hr -->|"sends interview turns"| node_api
node_api -->|"sends chat and finish"| node_server
node_server -->|"chats and reports"| node_agent
node_agent -.->|"requests generation"| node_llm
node_app -->|"shows report"| node_results
node_results -->|"presents assessment"| node_candidate
node_landing -->|"loads history"| node_api
node_server -->|"stores key and history"| node_database

click node_app "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/App.tsx"
click node_setup "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/screens/SetupScreen.tsx"
click node_permissions "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/screens/PermissionsCheckModal.tsx"
click node_landing "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/screens/LandingScreen.tsx"
click node_dsa "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/screens/DSARoundScreen.tsx"
click node_technical "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/screens/TechnicalRoundScreen.tsx"
click node_hr "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/screens/HRRoundScreen.tsx"
click node_camera "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/components/CameraFeed.tsx"
click node_voice "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/components/VoiceOrb.tsx"
click node_proctoring "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/components/FullscreenGuard.tsx"
click node_results "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/screens/ResultsScreen.tsx"
click node_api "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/services/api.ts"
click node_server "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/backend/main.py"
click node_question "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/backend/services/question_bank.py"
click node_runner "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/backend/services/code_runner.py"
click node_agent "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/backend/services/ai_agent.py"
click node_resume "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/backend/services/resume_parser.py"
click node_database "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/backend/services/db.py"
click node_electron "https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/electron/main.cjs"

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_permissions,node_landing,node_results,node_api,node_electron toneBlue
class node_dsa,node_technical,node_hr,node_camera,node_voice,node_proctoring toneAmber
class node_server,node_question,node_runner,node_agent,node_resume toneMint
class node_database toneRose
class node_candidate,node_llm toneIndigo
```

## Components

### Desktop Client

- [Workflow Router](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Interview Setup](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/screens/SetupScreen.tsx): `frontend/src/screens/SetupScreen.tsx`
- [Permissions Check](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/screens/PermissionsCheckModal.tsx): `frontend/src/screens/PermissionsCheckModal.tsx`
- [Landing & History](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/screens/LandingScreen.tsx): `frontend/src/screens/LandingScreen.tsx`
- [Scorecard & Results](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/screens/ResultsScreen.tsx): `frontend/src/screens/ResultsScreen.tsx`
- [Backend API Client](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/services/api.ts): `frontend/src/services/api.ts`
- [Electron Shell](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/electron/main.cjs): `frontend/electron/main.cjs`

### Interview Rounds

- [DSA Coding Round](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/screens/DSARoundScreen.tsx): `frontend/src/screens/DSARoundScreen.tsx`
- [Technical Round](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/screens/TechnicalRoundScreen.tsx): `frontend/src/screens/TechnicalRoundScreen.tsx`
- [HR Round](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/screens/HRRoundScreen.tsx): `frontend/src/screens/HRRoundScreen.tsx`
- [Camera & Mic Feed](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/components/CameraFeed.tsx): `frontend/src/components/CameraFeed.tsx`
- [Voice Orb](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/components/VoiceOrb.tsx): `frontend/src/components/VoiceOrb.tsx`
- [Fullscreen Guard](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/frontend/src/components/FullscreenGuard.tsx): `frontend/src/components/FullscreenGuard.tsx`

### Interview Services

- [FastAPI Endpoints](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/backend/main.py): `backend/main.py`
- [Company Question Bank](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/backend/services/question_bank.py): `backend/services/question_bank.py`
- [Code Execution](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/backend/services/code_runner.py): `backend/services/code_runner.py`
- [AI Interview Agent](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/backend/services/ai_agent.py): `backend/services/ai_agent.py`
- [Resume Extraction](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/backend/services/resume_parser.py): `backend/services/resume_parser.py`

### Persistence

- [SQLite Persistence](https://github.com/chinmaynaik-1/nextround-x-hacktoberfest/blob/main/backend/services/db.py): `backend/services/db.py`

### Other components

- **Candidate**
- **LLM Provider**

## Connections

- Candidate → Landing & History: starts setup (evidence: `README.md`)
- Landing & History → Workflow Router: begins flow (evidence: `frontend/src/App.tsx`)
- Workflow Router → Interview Setup: renders (evidence: `frontend/src/App.tsx`)
- Interview Setup → Backend API Client: parses resume (evidence: `frontend/src/screens/SetupScreen.tsx`)
- Backend API Client → FastAPI Endpoints: sends requests (evidence: `frontend/src/services/api.ts`)
- FastAPI Endpoints → Resume Extraction: parses resume (evidence: `backend/main.py`)
- Interview Setup → Permissions Check: opens check (evidence: `README.md`)
- Workflow Router → FastAPI Endpoints: starts session (evidence: `frontend/src/App.tsx`)
- FastAPI Endpoints → SQLite Persistence: reads and writes (evidence: `backend/main.py`)
- Workflow Router → DSA Coding Round: routes round (evidence: `frontend/src/App.tsx`)
- Workflow Router → Technical Round: routes round (evidence: `frontend/src/App.tsx`)
- Workflow Router → HR Round: routes round (evidence: `frontend/src/App.tsx`)
- DSA Coding Round → Backend API Client: runs and analyzes (evidence: `frontend/src/screens/DSARoundScreen.tsx`)
- Backend API Client → FastAPI Endpoints: requests questions (evidence: `frontend/src/services/api.ts`)
- FastAPI Endpoints → Company Question Bank: fetches questions (evidence: `backend/main.py`)
- FastAPI Endpoints → Code Execution: executes code (evidence: `backend/main.py`)
- FastAPI Endpoints → AI Interview Agent: requests analysis (evidence: `backend/main.py`)
- DSA Coding Round → Camera & Mic Feed: renders feed (evidence: `frontend/src/screens/DSARoundScreen.tsx`)
- DSA Coding Round → Voice Orb: renders orb (evidence: `frontend/src/screens/DSARoundScreen.tsx`)
- Technical Round → Camera & Mic Feed: renders feed (evidence: `README.md`)
- Technical Round → Voice Orb: renders orb (evidence: `README.md`)
- HR Round → Camera & Mic Feed: renders feed (evidence: `README.md`)
- HR Round → Voice Orb: renders orb (evidence: `README.md`)
- Workflow Router → Fullscreen Guard: enforces warnings (evidence: `README.md`)
- Electron Shell → Fullscreen Guard: detects window blur (evidence: `README.md`)
- Technical Round → Backend API Client: sends interview turns (evidence: `README.md`)
- HR Round → Backend API Client: sends interview turns (evidence: `README.md`)
- Backend API Client → FastAPI Endpoints: sends chat and finish (evidence: `frontend/src/services/api.ts`)
- FastAPI Endpoints → AI Interview Agent: chats and reports (evidence: `backend/main.py`)
- AI Interview Agent → LLM Provider: requests generation (evidence: `README.md`)
- Workflow Router → Scorecard & Results: shows report (evidence: `README.md`)
- Scorecard & Results → Candidate: presents assessment (evidence: `README.md`)
- Landing & History → Backend API Client: loads history (evidence: `README.md`)
- FastAPI Endpoints → SQLite Persistence: stores key and history (evidence: `README.md`)
