How yashy6583/the-interview-agent works
Horizon is an AI technical-interview and candidate-evaluation platform. Recruiters review cohort readiness, configure an interview, and candidates converse with an AI interviewer; the platform tracks topics and learning signals, flags hallucinations, and produces feedback and a hiring verdict. Candidate and curriculum views support the broader learning-readiness workflow. The frontend communicates through a shared API client; backend routes dispatch to interview logic, AI providers, and persistence. README documents voice interaction and hybrid storage, but the excerpts do not show their implementation details, so those links are documented rather than inferred from source.
Main entry points: LiveInterviewPage.tsx Live Interview Room · App.tsx Web App Routes · api.ts Frontend API Client · InterviewController.ts Interview Controller
Components 28
Candidate Insights
- Web App Routes
frontend/src/App.tsx - Recruiter Dashboard
frontend/src/pages/DashboardPage.tsx - Candidate Profile
frontend/src/pages/ProfilePage.tsx - Skill Matrix
frontend/src/pages/CurriculumPage.tsx
Interview Experience
- Interview Setup
frontend/src/pages/StartInterviewPage.tsx - Live Interview Room
frontend/src/pages/LiveInterviewPage.tsx - Interview State Hook
frontend/src/hooks/useInterview.ts - Frontend API Client
frontend/src/services/api.ts - Interview Feedback Views
frontend/src/components/FeedbackReport.tsx - Knowledge Graph View
frontend/src/components/KnowledgeGraph.tsx - Hallucination Indicator
frontend/src/components/HallucinationBadge.tsx
Interview Services
- Interview API Route
backend/src/routes/interview.ts - Interview Controller
backend/src/controllers/InterviewController.ts - AI Provider Selector
backend/src/services/AIService.ts - Mock Interview Agent
backend/src/services/MockAIProvider.ts - OpenAI Interview Agent
backend/src/services/OpenAIProvider.ts - Hallucination Checker
backend/src/services/HallucinationChecker.ts - Topic Graph
backend/src/services/TopicGraph.ts - Interview Prompt
backend/src/prompts/systemPrompt.ts
Data and Persistence
- Session Store
backend/src/services/InterviewSessionStore.ts - Candidate and Curriculum Routes
backend/src/routes/data.ts - Curriculum and Candidate Logic
backend/src/utils/curriculumLoader.ts - Persistence Adapter
backend/src/services/SupabaseService.ts - SQLite and Memory Store
backend/src/db/database.ts
Other components
- Recruiter
- Candidate
- Supabase PostgreSQL
- Web Speech API
Connections 32
- Recruiter → Web App Routes: uses
README.md - Candidate → Interview Setup: configures interview
README.md - Web App Routes → Recruiter Dashboard: routes to
frontend/src/App.tsx - Web App Routes → Candidate Profile: routes to
frontend/src/App.tsx - Web App Routes → Skill Matrix: routes to
frontend/src/App.tsx - Web App Routes → Interview Setup: routes to
frontend/src/App.tsx - Web App Routes → Live Interview Room: routes to
frontend/src/App.tsx - Recruiter Dashboard → Frontend API Client: fetches candidates
frontend/src/pages/DashboardPage.tsx - Candidate Profile → Frontend API Client: fetches candidate
frontend/src/pages/ProfilePage.tsx - Skill Matrix → Frontend API Client: fetches curriculum
frontend/src/pages/CurriculumPage.tsx - Interview Setup → Live Interview Room: starts interview
- Candidate → Live Interview Room: speaks with
README.md - Live Interview Room → Interview State Hook: uses state
frontend/src/pages/LiveInterviewPage.tsx - Live Interview Room → Interview Feedback Views: renders feedback
frontend/src/pages/LiveInterviewPage.tsx - Live Interview Room → Knowledge Graph View: renders topics
frontend/src/pages/LiveInterviewPage.tsx - Live Interview Room → Hallucination Indicator: renders flags
frontend/src/pages/LiveInterviewPage.tsx - Interview State Hook → Frontend API Client: starts and sends
frontend/src/hooks/useInterview.ts - Frontend API Client → Interview API Route: posts interview
frontend/src/services/api.ts - Interview API Route → Interview Controller: dispatches to
backend/src/routes/interview.ts - Interview Controller → AI Provider Selector: requests responses
backend/src/controllers/InterviewController.ts - Interview Controller → Session Store: reads and updates
backend/src/controllers/InterviewController.ts - Interview Controller → Persistence Adapter: saves interview
backend/src/controllers/InterviewController.ts - AI Provider Selector → Mock Interview Agent: selects fallback
backend/src/services/AIService.ts - AI Provider Selector → OpenAI Interview Agent: selects configured
backend/src/services/AIService.ts - Mock Interview Agent → Hallucination Checker: checks claims
backend/src/services/MockAIProvider.ts - Mock Interview Agent → Topic Graph: uses topic graph
backend/src/services/MockAIProvider.ts - OpenAI Interview Agent → Interview Prompt: uses prompt
backend/src/services/OpenAIProvider.ts - Candidate and Curriculum Routes → Curriculum and Candidate Logic: loads curriculum
backend/src/routes/data.ts - Candidate and Curriculum Routes → Persistence Adapter: queries candidates
backend/src/routes/data.ts - Persistence Adapter → SQLite and Memory Store: falls back and writes
backend/src/services/SupabaseService.ts - Persistence Adapter → Supabase PostgreSQL: reads and writes
backend/src/services/SupabaseService.ts - Live Interview Room → Web Speech API: uses speech
README.md