How hasan007-sudo/mock-interview-agent works
Mock Interview Agent is a Next.js mock technical-interview product. Candidates configure an interview and optionally upload a resume; the app parses it and creates a LiveKit session, where the voice agent’s events expose a coding editor or whiteboard. Candidates submit work for LLM evaluation. Resume-based sessions, interview profiles and questions, transcripts, and resume artifacts are distinct supporting capabilities. The graph reflects documented flows and indexed imports; unsampled implementation details are omitted rather than inferred.
Main entry points: session-layout.tsx Session layout · route.ts Session creation API · interview-session.tsx Interview coordinator · interview-setup.tsx Interview setup
Components 26
Interview setup
- Interview setup
src/components/interview-setup.tsx
Live interview
- Session entry
src/app/session/page.tsx - Interview coordinator
src/components/session/interview-session.tsx - Session layout
src/components/session/session-layout.tsx - Interviewer tile
src/components/session/agent-tile.tsx - Candidate tile
src/components/session/candidate-tile.tsx - Transcript sidebar
src/components/session/transcript-sidebar.tsx - Code editor
src/components/session/code-editor-panel.tsx - Whiteboard panel
src/components/session/whiteboard-panel.tsx
Session services
- Resume parsing API
src/app/api/parse-resume/route.ts - Resume parser
src/lib/resume-parser.ts - Resume document
src/lib/resume-document.ts - Opening plan
src/lib/opening.ts - Session creation API
src/app/api/connection-details/route.ts - LiveKit services
src/lib/livekit.ts - Resume sessions API
src/app/api/resume-sessions/route.ts - Resume artifact storage
src/lib/resume-storage.ts
Candidate work
- Code execution API
src/app/api/code/run/route.ts - Code execution
src/lib/code-execution.ts - Whiteboard upload API
src/app/api/whiteboard-upload/route.ts - Whiteboard submission
src/lib/whiteboard-submission.ts - Work evaluation API
src/app/api/evaluate/route.ts
Other components
- Candidate
- LiveKit voice agent
- OpenRouter models
- S3 object storage
Connections 32
- Candidate → Interview setup: configures
- Interview setup → Resume parsing API: uploads resume
- Resume parsing API → Resume parser: parses resume
src/app/api/parse-resume/route.ts - Resume parser → OpenRouter models: requests extraction
src/lib/resume-parser.ts - Resume parser → Resume document: validates document
src/lib/resume-parser.ts - Interview setup → Session creation API: starts interview
- Session creation API → Opening plan: builds plan
src/app/api/connection-details/route.ts - Session creation API → LiveKit services: creates room
src/app/api/connection-details/route.ts - Session creation API → LiveKit voice agent: dispatches agent
src/app/api/connection-details/route.ts - Candidate → Session entry: joins session
- Session entry → Interview coordinator: renders
src/app/session/page.tsx - Interview coordinator → Session layout: renders
src/components/session/interview-session.tsx - Session layout → Interviewer tile: renders
src/components/session/session-layout.tsx - Session layout → Candidate tile: renders
src/components/session/session-layout.tsx - Session layout → Code editor: shows editor
src/components/session/session-layout.tsx - Session layout → Whiteboard panel: shows board
src/components/session/session-layout.tsx - LiveKit voice agent → Interview coordinator: sends data events
- Interview coordinator → Transcript sidebar: provides transcript
- Candidate → Code editor: writes code
- Code editor → Code execution API: runs code
- Code execution API → Code execution: executes
src/app/api/code/run/route.ts - Candidate → Whiteboard panel: draws answer
- Whiteboard panel → Whiteboard upload API: uploads image
- Whiteboard upload API → Whiteboard submission: prepares upload
src/app/api/whiteboard-upload/route.ts - Whiteboard submission → S3 object storage: stores image
- Candidate → Work evaluation API: submits work
- Work evaluation API → Whiteboard submission: reads upload
src/app/api/evaluate/route.ts - Work evaluation API → OpenRouter models: evaluates answer
- Candidate → Resume sessions API: starts resume session
- Resume sessions API → Resume document: validates resume
src/app/api/resume-sessions/route.ts - Resume sessions API → Resume artifact storage: uploads artifacts
src/app/api/resume-sessions/route.ts - Resume artifact storage → S3 object storage: stores artifacts