Lexiverse
Lexiverse - AI contextual reading engine for English learners. Your next article is your next review.
翻译准备中
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Real-time AI voice interviewer with live transcripts, call state, and feedback built with Next.js and Vapi.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Practice job interviews out loud with an AI interviewer, then get scored, written feedback in seconds.
The app is a single Next.js App Router project with no separate backend. The browser streams audio to Vapi, which handles speech-to-text, the interviewer LLM and text-to-speech. When the "generate" voice workflow has collected your preferences, Vapi calls a webhook in this app that asks Gemini for questions and stores them in Firestore. When an interview ends, a server action sends the transcript to Gemini with a typed zod schema and saves the structured feedback.
flowchart LR
B[Browser<br/>Next.js + Vapi Web SDK] <-- voice over WebRTC --> V[(Vapi<br/>STT · LLM · TTS)]
V -- workflow webhook --> W["/api/vapi/generate"]
B -- transcript --> SA[Server action<br/>createFeedback]
W --> C[lib/interview<br/>prompts · parsing · schemas]
SA --> C
C --> G[(Gemini 2.0 Flash)]
W --> F[(Firestore)]
SA --> F
Sequence diagrams for both voice flows, the auth model and the data model are in docs/ARCHITECTURE.md.
| Layer | Tools |
|---|---|
| Frontend | Next.js 15 (App Router), React 19, TypeScript, Tailwind CSS 4, shadcn/ui |
| Voice | Vapi (Deepgram Nova-2 STT, GPT-4 interviewer, ElevenLabs TTS) |
| LLM | Google Gemini 2.0 Flash via the Vercel AI SDK (generateText, generateObject) |
| Auth and data | Firebase Auth with httpOnly session cookies, Firestore |
| Validation | zod for request bodies and structured LLM output |
| Quality | Vitest, ESLint, GitHub Actions |
Prerequisites: Node.js 20.19+ or 22.12+, a Firebase project (Auth with email/password, Firestore), a Vapi account and a Gemini API key.
git clone https://github.com/obro79/mock_interview_ai.git
cd mock_interview_ai
npm install
cp .env.example .env.local # then fill in the values
npm run dev # http://localhost:3000
| Variable | Where it comes from |
|---|---|
NEXT_PUBLIC_FIREBASE_* | Firebase console → Project settings → Your apps |
FIREBASE_PROJECT_ID, FIREBASE_CLIENT_EMAIL, FIREBASE_PRIVATE_KEY | Firebase console → Service accounts → Generate new private key |
GOOGLE_GENERATIVE_AI_API_KEY | Google AI Studio |
NEXT_PUBLIC_VAPI_WEB_TOKEN | Vapi dashboard → API keys (public key) |
NEXT_PUBLIC_VAPI_WORKFLOW_ID | Vapi dashboard → your "generate interview" workflow |
The Vapi workflow's API request node should POST to https://<your-host>/api/vapi/generate with role, level, techstack, type, amount and userid.
npm test # Vitest unit tests
npm run typecheck # tsc --noEmit
npm run lint # ESLint (next/core-web-vitals)
The suite covers the core logic in lib/interview and lib/tech: prompt construction, parsing messy LLM output into questions, request validation and the feedback schema. CI runs all three checks plus a production build on every push and pull request.
Built by Owen. The UI and base app structure started from the JavaScript Mastery AI interview platform walkthrough. Extended design notes are on Notion.
Licensed under MIT.