How sarfaraz-r/ai_mock_technical works
Scribo is a Next.js interview-preparation app. Users sign in, create a mock interview, complete a recorded question flow, and review generated feedback; separate dashboard branches provide timed MCQ assessments, question-bank creation, and subject revision decks. The graph also shows authentication, persistence, and email support. Some feature modules were not excerpted, so their connections are included only where documented in the README or indicated by the source index; unsampled implementation details are not inferred.
Main entry points: db.js Neon database · dashboard/page.jsx Workspace · start/page.jsx Live interview · route.js Google OAuth callback
Components 31
Dashboard and practice
- Workspace
app/dashboard/page.jsx - Interview history
app/dashboard/_components/InterviewList.jsx
Mock interviews
- Interview setup
app/dashboard/_components/AddNewInterview.jsx - Gemini generation
utils/GeminiAIModal.js - Interview briefing
app/dashboard/interview/[interviewId]/page.jsx - Live interview
app/dashboard/interview/[interviewId]/start/page.jsx - Question flow
app/dashboard/interview/[interviewId]/start/_components/QuestionSection.jsx - Response recording
app/dashboard/interview/[interviewId]/start/_components/RecordAnswerSection.jsx - Interview feedback
app/dashboard/interview/[interviewId]/feedback/page.jsx
Assessment and revision
- Timed assessment
app/dashboard/assessment/_components/AssessmentModule.jsx - Assessment bank
app/dashboard/assessment/_data/questionBank.js - Question creation
app/dashboard/_components/AddQuestions.jsx - Question history
app/dashboard/_components/QuestionList.jsx - Question set detail
app/dashboard/pyq/[pyqId]/page.jsx - Revision hub
app/dashboard/revise/page.jsx - Revision deck
app/dashboard/revise/[subjectSlug]/_components/RevisionDeckExperience.jsx - Revision deck data
app/dashboard/revise/_data/revisionDeck.js
Identity and sessions
- Sign-in form
components/auth/AuthForm.jsx - Auth state
components/AuthProvider.jsx - Email auth routes
app/api/auth/signup/route.js - Google OAuth start
app/api/auth/google/start/route.js - Google OAuth callback
app/api/auth/google/callback/route.js - Session service
lib/auth.js - JWT signing
lib/auth-jwt.js
Persistence and support
- Neon database
utils/db.js - Application tables
utils/schema.js - Contact form
app/_components/Contect.jsx - Email API
app/api/send-email/route.js
Other components
- Learner
- Google identity
- Email delivery
Connections 41
- Learner → Workspace: opens
- Workspace → Interview setup: starts interview
app/dashboard/page.jsx - Interview setup → Gemini generation: generates questions
app/dashboard/_components/AddNewInterview.jsx - Interview setup → Neon database: stores interview
app/dashboard/_components/AddNewInterview.jsx - Workspace → Interview history: shows history
app/dashboard/page.jsx - Interview history → Neon database: reads interviews
app/dashboard/_components/InterviewList.jsx - Learner → Interview briefing: opens interview
- Interview briefing → Neon database: loads interview
app/dashboard/interview/[interviewId]/page.jsx - Interview briefing → Live interview: starts session
- Live interview → Question flow: renders questions
app/dashboard/interview/[interviewId]/start/page.jsx - Live interview → Response recording: records responses
app/dashboard/interview/[interviewId]/start/page.jsx - Live interview → Neon database: loads interview
app/dashboard/interview/[interviewId]/start/page.jsx - Response recording → Neon database: stores answers
- Learner → Interview feedback: reviews results
- Interview feedback → Neon database: loads answers
app/dashboard/interview/[interviewId]/feedback/page.jsx - Workspace → Timed assessment: starts assessment
- Timed assessment → Assessment bank: uses questions
- Workspace → Question creation: creates question bank
- Question creation → Neon database: stores questions
- Workspace → Question history: views question banks
- Question history → Question set detail: opens question set
- Workspace → Revision hub: opens revision
- Revision hub → Revision deck data: loads deck data
app/dashboard/revise/page.jsx - Revision deck data → Assessment bank: uses question bank
app/dashboard/revise/_data/revisionDeck.js - Revision hub → Revision deck: opens subject deck
- Learner → Sign-in form: signs in
- Sign-in form → Email auth routes: submits credentials
components/auth/AuthForm.jsx - Sign-in form → Google OAuth start: starts Google login
components/auth/AuthForm.jsx - Google OAuth start → Google OAuth callback: redirects callback
- Google OAuth callback → Google identity: exchanges identity
app/api/auth/google/callback/route.js - Email auth routes → Neon database: reads and writes users
app/api/auth/signup/route.js - Google OAuth callback → Neon database: reads and writes users
app/api/auth/google/callback/route.js - Email auth routes → Session service: creates session
app/api/auth/signup/route.js - Google OAuth callback → Session service: creates session
app/api/auth/google/callback/route.js - Session service → JWT signing: signs and verifies
lib/auth.js - Auth state → Email auth routes: checks session
- Neon database → Application tables: uses tables
utils/db.js - Learner → Contact form: sends message
- Contact form → Neon database: stores submission
app/_components/Contect.jsx - Contact form → Email API: requests email
- Email API → Email delivery: sends email