How sagarlightning/intervueai works
IntervueAI supports two candidate workflows: resume/job-fit analysis with preparation and resume generation, and resume-aware mock interviews with adaptive rounds, coding execution, and final feedback. The graph distinguishes UI pages, backend orchestration, AI/execution services, and persisted records. Some frontend pages and route/service implementations were not sampled; their nodes reflect the tree and documented capabilities, while uncertain connections are omitted or marked dashed.
Main entry points: app.routes.jsx App routes · app.js Express app · coding.controller.js Coding controller · interview.routes.js Report routes
Components 30
Candidate UI
- App routes
Frontend/src/app.routes.jsx - Auth flow
Frontend/src/features/auth/auth.context.jsx - Fit reports
Frontend/src/features/interview/pages/Home.jsx - Report details
Frontend/src/features/interview/pages/Interview.jsx - Session setup
Frontend/src/features/interviewSession/pages/SessionStart.jsx - Session state
Frontend/src/features/interviewSession/hooks/useInterviewSession.js - Interview room
Frontend/src/features/interviewSession/pages/InterviewRoom.jsx - Coding round
Frontend/src/features/interviewSession/pages/CodingRound.jsx - Session result
Frontend/src/features/interviewSession/pages/SessionResult.jsx
API and workflow
- Express app
Backend/src/app.js - Auth routes
Backend/src/routes/auth.routes.js - Report routes
Backend/src/routes/interview.routes.js - Session routes
Backend/src/routes/interviewSession.routes.js - Coding routes
Backend/src/routes/coding.routes.js - Auth controller
Backend/src/controllers/auth.controller.js - Report controller
Backend/src/controllers/interview.controller.js - Session controller
Backend/src/controllers/interviewSession.controller.js - Coding controller
Backend/src/controllers/coding.controller.js - JWT middleware
Backend/src/middlewares/auth.middleware.js - Resume upload
Backend/src/middlewares/file.middleware.js
AI and execution
- Fit and resume AI
Backend/src/services/ai.service.js - Interview AI
Backend/src/services/interviewSession.service.js - Code evaluation
Backend/src/services/codingEvaluation.service.js - Code execution
Backend/src/services/piston.service.js
Persistence
- Users
Backend/src/models/user.model.js - Token blacklist
Backend/src/models/blacklist.model.js - Fit reports
Backend/src/models/interviewReport.model.js - Interview sessions
Backend/src/models/interviewSession.model.js - Code submissions
Backend/src/models/codingSubmission.model.js
Other components
- Candidate
Connections 37
- Candidate → App routes: uses
Frontend/src/app.routes.jsx - App routes → Auth flow: routes to
Frontend/src/app.routes.jsx - App routes → Fit reports: routes to
Frontend/src/app.routes.jsx - App routes → Report details: routes to
Frontend/src/app.routes.jsx - App routes → Session setup: routes to
Frontend/src/app.routes.jsx - App routes → Interview room: routes to
Frontend/src/app.routes.jsx - App routes → Coding round: routes to
Frontend/src/app.routes.jsx - App routes → Session result: routes to
Frontend/src/app.routes.jsx - Express app → Auth routes: mounts
Backend/src/app.js - Express app → Report routes: mounts
Backend/src/app.js - Express app → Session routes: mounts
Backend/src/app.js - Express app → Coding routes: mounts
Backend/src/app.js - Auth routes → Auth controller: dispatches
Backend/src/routes/auth.routes.js - Auth routes → JWT middleware: guards
Backend/src/routes/auth.routes.js - Report routes → Report controller: dispatches
Backend/src/routes/interview.routes.js - Report routes → JWT middleware: guards
Backend/src/routes/interview.routes.js - Report routes → Resume upload: accepts upload
Backend/src/routes/interview.routes.js - Auth controller → Users: reads/writes
Backend/src/controllers/auth.controller.js - Auth controller → Token blacklist: uses
Backend/src/controllers/auth.controller.js - Report controller → Fit and resume AI: generates report
Backend/src/controllers/interview.controller.js - Report controller → Fit reports: stores/reads
Backend/src/controllers/interview.controller.js - Session controller → Interview sessions: reads/writes
Backend/src/controllers/interviewSession.controller.js - Session controller → Fit reports: loads report
Backend/src/controllers/interviewSession.controller.js - Session controller → Interview AI: generates/evaluates
Backend/src/controllers/interviewSession.controller.js - Coding controller → Interview sessions: loads session
Backend/src/controllers/coding.controller.js - Coding controller → Code execution: executes code
Backend/src/controllers/coding.controller.js - Coding controller → Code evaluation: evaluates submission
Backend/src/controllers/coding.controller.js - Coding controller → Code submissions: stores submissions
Backend/src/controllers/coding.controller.js - Session state → Session setup: provides state
Frontend/src/features/interviewSession/pages/SessionStart.jsx - Session state → Interview room: provides state
- Session state → Session result: provides state
Frontend/src/features/interviewSession/pages/SessionResult.jsx - Candidate → Fit reports: submits profile
- Fit reports → Report details: reviews report
- Report details → Session setup: starts practice
- Coding round → Code execution: submits code
- Interview room → Interview AI: adapts questions
- Session result → Interview sessions: shows feedback