How sudiptomaity2005/offerprep works
OfferPrep supports role-based interview practice: users create a session, answer questions by speech or text, receive AI evaluation, and review results and historical analytics. The graph follows the documented frontend-to-API workflow and the sampled route-to-AI/database calls. Audio transcription and dashboard capabilities are represented from README and frontend components; unsampled backend details and database implementation are not inferred.
Main entry points: api-client.ts Typed API Client · interviews.ts Interview Routes · page.tsx Interview Session · index.ts Express API
Components 21
Practice Experience
- Landing and Sign-in
frontend/src/app/page.tsx - Session Creation
frontend/src/components/CreateInterviewForm.tsx - Interview Session
frontend/src/app/interview/[sessionId]/page.tsx - Speech Input
frontend/src/components/TechnicalAnswerInput.tsx - Audio Visualization
frontend/src/components/AudioVisualizer.tsx - Evaluation Review
frontend/src/app/evaluation/[sessionId]/page.tsx - History and Analytics
frontend/src/app/dashboard/page.tsx - Previous Interviews
frontend/src/components/PreviousInterviews.tsx - Score Trends
frontend/src/components/AnalyticsOverview.tsx
Interview API
- Typed API Client
frontend/src/lib/api-client.ts - API URL Config
frontend/src/lib/config.ts - Express API
backend/src/index.ts - Interview Routes
backend/src/routes/interviews.ts - Request Validation
backend/src/middleware/validate.ts - Rate Limits
backend/src/middleware/rateLimiter.ts
AI Assessment
- Question and Evaluation AI
backend/src/services/ai.ts
Identity and Data
- Prisma Data Store
database/index.js - Clerk User Sync
backend/src/routes/webhooks.ts
Other components
- Candidate
- Clerk Identity
- Gemini AI
Connections 25
- Candidate → Landing and Sign-in: opens
frontend/src/app/page.tsx - Candidate → Session Creation: configures
- Candidate → Interview Session: answers
- Landing and Sign-in → Clerk Identity: signs in
frontend/src/app/page.tsx - Session Creation → Typed API Client: creates session
- Interview Session → Speech Input: accepts speech
- Interview Session → Audio Visualization: renders
frontend/src/app/interview/[sessionId]/page.tsx - Interview Session → Typed API Client: submits answers
- Evaluation Review → Typed API Client: fetches evaluation
- History and Analytics → Previous Interviews: shows sessions
- History and Analytics → Score Trends: shows trends
- Previous Interviews → Typed API Client: fetches sessions
- Score Trends → Typed API Client: fetches metrics
- Typed API Client → API URL Config: builds URLs
frontend/src/lib/api-client.ts - Typed API Client → Express API: sends HTTP requests
- Express API → Interview Routes: mounts routes
backend/src/index.ts - Express API → Clerk User Sync: mounts webhooks
backend/src/index.ts - Express API → Rate Limits: limits API traffic
backend/src/index.ts - Interview Routes → Request Validation: validates requests
backend/src/routes/interviews.ts - Interview Routes → Rate Limits: limits AI routes
backend/src/routes/interviews.ts - Interview Routes → Question and Evaluation AI: generates and evaluates
backend/src/routes/interviews.ts - Question and Evaluation AI → Gemini AI: generates content
backend/src/services/ai.ts - Interview Routes → Prisma Data Store: reads and writes
backend/src/routes/interviews.ts - Clerk User Sync → Prisma Data Store: syncs users
backend/src/routes/webhooks.ts - Clerk Identity → Clerk User Sync: sends events