How aviral-xy/interprep works
InterPrep is a voice-first mock interview platform. Candidates authenticate, choose or generate an interview, complete a simulated interview, and review structured feedback. The graph includes documented WebRTC signaling and AI-generation capabilities; those links rely on the README where implementation files were not excerpted, so unsampled internals are not inferred.
Main entry points: auth.action.ts Session actions · generate.action.ts Interview generation and records · feedback/page.tsx Feedback report · [id]/page.tsx Interview session page
Components 22
Candidate experience
- Landing page
app/(root)/page.tsx - Interview dashboard
app/(dash)/dashboard/page.tsx - Feedback report
app/(dash)/interview/[id]/feedback/page.tsx - Code review display
components/FeedbackCodeReview.tsx
Identity and access
- Auth form
components/AuthForm.tsx - Firebase client
firebass/client.ts - Google auth route
app/api/google-auth/route.ts - Session actions
lib/actions/auth.action.ts
Interview runtime
- Interview setup
components/Agent.tsx - Generation page
app/(dash)/interview/page.tsx - Interview session page
app/(dash)/interview/[id]/page.tsx - Voice interview
components/GetInterview.tsx - Video panel
components/VideoInterviewPanel.tsx - WebRTC hook
hooks/useWebRTC.ts
Data and AI services
- Firebase Admin
firebass/admin.ts - Interview generation and records
lib/actions/generate.action.ts - AI workflow
- Gemini LLM
- Vapi voice assistant
- WebSocket signaling
backend/server.ts
Other components
- Candidate
- Interview peer
Connections 30
- Candidate → Landing page: visits
app/(root)/page.tsx - Candidate → Auth form: submits credentials
components/AuthForm.tsx - Auth form → Firebase client: uses Google sign-in
components/AuthForm.tsx - Firebase client → Google auth route: posts identity
firebass/client.ts - Auth form → Session actions: calls sign-in
components/AuthForm.tsx - Google auth route → Firebase Admin: writes user record
app/api/google-auth/route.ts - Google auth route → Session actions: sets session
app/api/google-auth/route.ts - Session actions → Firebase Admin: verifies and reads
lib/actions/auth.action.ts - Candidate → Interview dashboard: opens dashboard
app/(dash)/dashboard/page.tsx - Interview dashboard → Session actions: loads current user
app/(dash)/dashboard/page.tsx - Interview dashboard → Interview generation and records: loads interview lists
app/(dash)/dashboard/page.tsx - Candidate → Generation page: starts interview
app/(dash)/interview/page.tsx - Generation page → Session actions: checks session
app/(dash)/interview/page.tsx - Generation page → Interview setup: renders setup
app/(dash)/interview/page.tsx - Interview setup → Interview generation and records: requests generation
- Interview generation and records → AI workflow: proxies generation
README.md - AI workflow → Gemini LLM: requests questions
README.md - Candidate → Interview session page: opens session
app/(dash)/interview/[id]/page.tsx - Interview session page → Session actions: loads current user
app/(dash)/interview/[id]/page.tsx - Interview session page → Interview generation and records: loads interview
app/(dash)/interview/[id]/page.tsx - Interview session page → Voice interview: renders session
app/(dash)/interview/[id]/page.tsx - Voice interview → Vapi voice assistant: runs voice assistant
README.md - Candidate → Video panel: joins video session
README.md - Video panel → WebRTC hook: uses connection hook
README.md - WebRTC hook → WebSocket signaling: exchanges signaling
README.md - WebSocket signaling → Interview peer: relays SDP and ICE
README.md - Candidate → Feedback report: reviews results
app/(dash)/interview/[id]/feedback/page.tsx - Feedback report → Session actions: loads current user
app/(dash)/interview/[id]/feedback/page.tsx - Feedback report → Interview generation and records: loads interview feedback
app/(dash)/interview/[id]/feedback/page.tsx - Feedback report → Code review display: renders code review
app/(dash)/interview/[id]/feedback/page.tsx