{"id":31845643,"url":"https://github.com/spaciousejar/prep-mock","last_synced_at":"2025-10-12T08:17:42.164Z","repository":{"id":318460078,"uuid":"1071338035","full_name":"spaciousejar/prep-mock","owner":"spaciousejar","description":"AI-powered platform for practicing job interviews with real-time voice and instant feedback. (For Myself)","archived":false,"fork":false,"pushed_at":"2025-10-07T09:18:45.000Z","size":931,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-07T11:25:20.196Z","etag":null,"topics":["interview","mock","platform"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spaciousejar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-07T08:01:11.000Z","updated_at":"2025-10-07T09:43:29.000Z","dependencies_parsed_at":"2025-10-07T11:25:48.428Z","dependency_job_id":"2eeb59eb-54f7-49fa-b41e-c97cf3802d16","html_url":"https://github.com/spaciousejar/prep-mock","commit_stats":null,"previous_names":["spaciousejar/prep-mock"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/spaciousejar/prep-mock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaciousejar%2Fprep-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaciousejar%2Fprep-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaciousejar%2Fprep-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaciousejar%2Fprep-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spaciousejar","download_url":"https://codeload.github.com/spaciousejar/prep-mock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaciousejar%2Fprep-mock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010799,"owners_count":26084807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["interview","mock","platform"],"created_at":"2025-10-12T08:17:39.097Z","updated_at":"2025-10-12T08:17:42.157Z","avatar_url":"https://github.com/spaciousejar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### perpmock — AI Mock Interviews\n\nAI-powered platform for practicing job interviews with real-time voice and instant feedback.\n\n- **Stack**: Next.js 15, React 19, TypeScript, Tailwind CSS v4, Firebase, Google Gemini AI SDK, Vapi Web SDK, Zod, Sonner.\n- **Auth \u0026 Data**: Firebase Auth (session cookie) + Firestore.\n- **Realtime voice**: Vapi assistant/workflow.\n- **AI feedback**: Structured feedback via AI SDK + Zod.\n\n### Features\n- Email/password sign up \u0026 sign in\n- Generate interview questions (role, level, type, tech stack)\n- AI voice interviews\n- Auto-save interview records with covers, tech icons, dates, scores\n- Feedback page with scores, strengths, improvements\n\n### Requirements\n- Node.js 18+\n- Firebase project (Admin + Web SDK credentials)\n- Vapi account (Web token, workflow/assistant)\n- Google AI SDK access\n\n\n### Quick Start\n```\nnpm run dev \n\n```\n\n### Key Paths\n- Auth/session:\n  - `firebase/admin.ts` initializes Admin SDK and Firestore.\n  - `lib/actions/auth.action.ts` handles session cookie, sign-up, sign-in, and current user retrieval.\n  - `app/(auth)/layout.tsx` and `app/(root)/layout.tsx` gate routes by auth status.\n- Interview generation:\n  - `app/api/vapi/generate/route.ts` uses AI SDK Google model to produce questions and stores an `interviews` document.\n  - `app/(root)/interview/page.tsx` renders the “generate” flow with `Agent`.\n- Taking interviews:\n  - `app/(root)/interview/[id]/page.tsx` renders an interview session with `Agent`.\n  - `components/Agent.tsx` handles voice session via Vapi, and on finish posts transcript to `createFeedback`.\n- Feedback:\n  - `lib/actions/general.action.ts` `createFeedback` uses AI SDK + Zod schema to create structured feedback and saves it to Firestore.\n  - `app/(root)/interview/[id]/feedback/page.tsx` displays feedback breakdown, strengths, improvements.\n- UI:\n  - `components/InterviewCard.tsx` shows interview cards with dates, scores, and CTAs.\n  - `components/DisplayTechIcons.tsx` maps tech stack to logos.\n  - `app/globals.css` contains Tailwind v4 themes/utilities.\n\n### Firestore Collections\n- `users/{uid}`: { name, email }\n- `interviews/{id}`: { role, level, type, techstack[], questions[], userId, finalized, coverImage, createdAt }\n- `feedback/{id}`: { interviewId, userId, totalScore, categoryScores[], strengths[], areasForImprovement[], finalAssessment, createdAt }\n\n### Vapi Setup\n- Create a Web Token and set `NEXT_PUBLIC_VAPI_WEB_TOKEN`.\n- Create a workflow ID used for “generate” flow and set `NEXT_PUBLIC_VAPI_WORKFLOW_ID`.\n- The live interview flow uses the `interviewer` assistant defined in `constants/index.ts` with provider settings (e.g., Deepgram, 11labs, OpenAI). Adjust to your providers.\n\n\n### Troubleshooting\n- Auth returns null: verify `session` cookie creation in `setSessionCookie` and Admin credentials.\n- No interviews listed: ensure `GET /api/vapi/generate` and POST body fields match; verify Firestore rules.\n- Voice call doesn’t start: confirm `NEXT_PUBLIC_VAPI_WEB_TOKEN` and workflow/assistant availability.\n- AI feedback fails: check `GOOGLE_GENERATIVE_AI_API_KEY` and model availability; see console logs.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaciousejar%2Fprep-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspaciousejar%2Fprep-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaciousejar%2Fprep-mock/lists"}