How shivamyash742/mockmentor works
MockMentor is a Next.js mock-interview product for signed-in candidates and guests. Candidates prepare a resume and job profile, choose a mentor, complete a timed voice interview with optional in-browser facial analysis, then receive a generated performance report. The graph preserves the documented preparation, interview, analysis, and reporting stages, plus persistence and AI services. Some links reflect README-documented behavior; unsampled implementation details are not inferred beyond those statements.
Main entry points: interview.tsx Interview Interface · generate-report/route.ts Report Generation · page.tsx Interview Setup · ai-chat/route.ts AI Interview Chat
Components 24
Preparation
- Interview Setup
app/interview/new/page.tsx - Resume Upload
app/api/upload-resume/route.ts - Resume Profile
lib/resumeProfile.ts - Job Summary
app/api/process-job/route.ts - Interview Creation
app/api/create-interview/route.ts
Interview
- Interview Page
app/interview/[id]/page.tsx - Interview Interface
components/interview.tsx - Voice Controller
components/logic/useVoiceInterview.ts - Speech Recognition
hooks/useSpeechToText.ts - Speech Synthesis
hooks/useTextToSpeech.ts - AI Interview Chat
app/api/ai-chat/route.ts
Live Analysis
- Face Tracker
hooks/useFaceTracker.ts - Face Analysis
lib/faceAnalysis.ts - Emotion Model
lib/emotionModel.ts - Live Analysis HUD
components/interview/StressHUD.tsx
Reporting
- Report Generation
app/api/generate-report/route.ts - Report View
components/interview-report.tsx
Platform Services
- Appwrite Storage
- Interview Record
lib/models/Interview.ts - Groq AI
- Interview Session
lib/models/InterviewSession.ts - Interview Report
lib/models/InterviewReport.ts - MongoDB
Other components
- Candidate
Connections 28
- Candidate → Interview Setup: sets up
- Interview Setup → Resume Upload: uploads resume
- Resume Upload → Resume Profile: summarizes
app/api/upload-resume/route.ts - Resume Upload → Appwrite Storage: stores file
app/api/upload-resume/route.ts - Interview Setup → Job Summary: submits job
- Job Summary → Groq AI: summarizes role
- Interview Setup → Interview Creation: creates interview
- Interview Creation → Interview Record: saves interview
app/api/create-interview/route.ts - Interview Page → Interview Interface: renders
app/interview/[id]/page.tsx - Interview Interface → Voice Controller: controls voice
- Voice Controller → Speech Recognition: uses recognition
components/logic/useVoiceInterview.ts - Voice Controller → Speech Synthesis: uses synthesis
components/logic/useVoiceInterview.ts - Interview Interface → AI Interview Chat: sends answers
- AI Interview Chat → Groq AI: generates replies
app/api/ai-chat/route.ts - AI Interview Chat → Interview Session: stores transcript
app/api/ai-chat/route.ts - Interview Interface → Face Tracker: tracks camera
- Face Tracker → Face Analysis: analyzes signals
hooks/useFaceTracker.ts - Face Tracker → Emotion Model: loads model
hooks/useFaceTracker.ts - Interview Interface → Live Analysis HUD: shows metrics
- Interview Interface → Report Generation: requests report
- Report Generation → Interview Session: reads session
app/api/generate-report/route.ts - Report Generation → Groq AI: generates report
app/api/generate-report/route.ts - Report Generation → Interview Report: saves report
app/api/generate-report/route.ts - Report Generation → Interview Record: updates status
app/api/generate-report/route.ts - Report View → Interview Report: displays report
- Interview Creation → MongoDB: persists records
- AI Interview Chat → MongoDB: persists session
- Report Generation → MongoDB: persists report