InterPrep
Voice mock interviews. Pick a role, level and focus, talk to an AI interviewer, and get scored feedback when you hang up.
- Year
- 2025
- Role
- Fork of another developer's starter. Deploy, security and scoring rework
- Stack
- Next.js, Vapi, Gemini, Firebase
The problem
Practice answers only help if you say them out loud.
Reading question lists is not an interview. InterPrep runs a spoken one: the AI asks, listens, follows up, and then grades the transcript.
It started from another developer's codebase (the first 22 commits are theirs). I deployed it in 2025, then audited it in 2026 and found the voice setup ignored what you asked for, one endpoint leaked every user's interviews, and any client could overwrite another user's feedback.
What I built
Setup form, voice call, scored report.
A Next.js app on Firebase. Gemini writes the questions from your setup, Vapi runs the call, and Gemini scores the transcript against a fixed schema. All data goes through the server; Firestore rules deny every direct client read and write.
- setupRole, level (Junior, Mid, Senior), focus (Technical, Behavioral, Mixed), tech stack and 1 to 10 questions, validated with Zod.
- questionsGemini 2.5 Flash returns them as structured output, written to be read aloud with no symbols that trip the voice.
- callA Vapi assistant: Deepgram for speech to text, an ElevenLabs voice, GPT-4o running the conversation from your questions.
- feedbackFive scored categories, strengths, areas to improve and a final assessment, saved per interview.
What the transcript is scored on
Each category gets a score from 0 to 100 and a comment. The total is the average of the five, computed in code, not by the model.
| Category | What it measures |
|---|---|
| Communication Skills | Clarity, articulation, structured responses |
| Technical Knowledge | Understanding of key concepts for the role |
| Problem Solving | Analysing problems and proposing solutions |
| Cultural Fit | Alignment with company values and the job role |
| Confidence and Clarity | Confidence, engagement and clarity in responses |
Hard decisions
The calls that shaped it.
Identity comes from the session
Server actions are public endpoints, and the old code trusted user ids sent by the client. Now sign-up verifies the Firebase ID token, every read checks ownership, sign-out revokes all sessions, and the endpoint that listed everyone's interviews is gone.
Ask with a form, not the voice
The voice setup call ignored what you said and always built the same Software Engineer, mid-level, React interview. A plain form with a schema replaced it, and questions come back as structured output instead of parsed model text.
Let the code do the maths
Model scores are clamped to 0 to 100 and the total is derived from the categories, so they always agree. Calls where the candidate said nothing are not scored, and transcripts are capped at 400 messages and 60,000 characters so one call cannot run up the bill.
One result per interview
A retake replaces the old feedback. The document id is derived from user and interview, so two submits at once cannot create duplicates, and the end-of-call work runs exactly once.
Where it is now
Live, and being rebuilt.
- Liveinterprep.mithunchavan.me
- 37 commitsMIT licensed
- Security passSession-only identity, ownership checks, locked Firestore rules
- Next: CandorA rebuild with practice sessions, retakes, progress tracking and a new UI, in progress