How hjscodefield/cspreppro works
CS PrepPro is a web app for computer-science interview preparation. Users can explore the home page, study topic modules and take quizzes, or run a protected interview simulation with speech transcription and focus monitoring; the app also presents a dashboard. Authentication is client-side, using local storage. A submission API calculates simulated scores and feedback, but the sampled simulator excerpt does not show it being called. Supabase is mentioned only as a possible future persistence layer in the API. Edges below reflect sampled imports and calls; unsampled wiring is omitted.
Main entry points: ProtectedRoute.tsx Route Guard · AuthProvider.tsx Auth State · page.tsx Interview Simulator · AuthModal.tsx Sign-in Modal
Components 12
Preparation Product
- Home Page
src/app/page.tsx - Study Hub
src/app/learning/page.tsx - Progress Dashboard
src/app/dashboard/page.tsx
Access and Identity
- Auth State
src/components/AuthProvider.tsx - Sign-in Modal
src/components/AuthModal.tsx - Navigation Header
src/components/Header.tsx - Route Guard
src/components/ProtectedRoute.tsx
Interview Simulation
- Interview Simulator
src/app/simulator/page.tsx - Focus and Media Tracking
src/hooks/useProctoring.ts - Speech Transcription
src/hooks/useSpeechRecognition.ts
Submission Evaluation
- Submission Scoring API
src/app/api/interview/submit/route.ts
Other components
- Visitor
Connections 11
- Navigation Header → Auth State: reads auth state
src/components/Header.tsx - Navigation Header → Sign-in Modal: renders
src/components/Header.tsx - Sign-in Modal → Auth State: logs in
src/components/AuthModal.tsx - Route Guard → Auth State: checks session
src/components/ProtectedRoute.tsx - Route Guard → Sign-in Modal: renders
src/components/ProtectedRoute.tsx - Progress Dashboard → Route Guard: guards page
src/app/dashboard/page.tsx - Progress Dashboard → Auth State: reads user
src/app/dashboard/page.tsx - Study Hub → Route Guard: guards page
src/app/learning/page.tsx - Interview Simulator → Route Guard: guards page
src/app/simulator/page.tsx - Interview Simulator → Focus and Media Tracking: tracks focus
src/app/simulator/page.tsx - Interview Simulator → Speech Transcription: uses transcription
src/app/simulator/page.tsx