How saadtariq12/cognivo works
Cognivo is an AI-assisted recruiting and interviewing platform. Recruiters create job-specific interviews and invite candidates; candidates enter through an invitation, provide an introduction and answers, and receive adaptive questions. The backend extracts candidate context, evaluates answers, advances interview stages and difficulty, and stores a recruiter-facing final assessment. The frontend also supports recruiter and authentication flows, plus spoken candidate answers. The README documents the domain flow; sampled source confirms key interview orchestration and invitation paths, while several UI, auth, and controller details remain unsampled.
Main entry points: interview.controller.js Interview controller · interviewEngine.js Interview engine · App.tsx App routes · recruiter.controller.js Recruiter controller
Components 32
Web application
- App routes
frontend/src/App.tsx - Recruiter dashboard
frontend/src/pages/DashboardPage.tsx - Candidate welcome
frontend/src/pages/CandidateWelcomePage.tsx - Candidate interview
frontend/src/pages/CandidatePage.tsx - Login and register
frontend/src/pages/LoginPage.tsx - Auth provider
frontend/src/auth/AuthProvider.tsx - API client
frontend/src/api/client.ts - Interview API
frontend/src/api/interview.ts - Speech input
frontend/src/hooks/useSpeechRecognition.ts
Backend workflows
- Express app
backend/src/app.js - Candidate routes
backend/src/routers/candidate.routes.js - Recruiter routes
backend/src/routers/recruiter.routes.js - Interview controller
backend/src/controllers/interview.controller.js - Recruiter controller
backend/src/controllers/recruiter.controller.js - Invitation verification
backend/src/services/Invitation/verifyInvitation.service.js - Invitation email
backend/src/services/emailServices/invitationEmail.service.js
Interview intelligence
- Interview engine
backend/src/services/Interview/interviewEngine.js - Question agent
backend/src/services/InterviewAgents/questionAgent.js - Context extractor
backend/src/services/InterviewAgents/contextExtractorAgent.js - Answer evaluator
backend/src/services/InterviewAgents/evaluatorAgent.js - Final assessment
backend/src/services/Assessment/assessmentAgent.js - Ollama service
backend/src/services/LLM/ollamaService.js
Interview data
- Candidate records
backend/src/models/candidate.model.js - Interview records
backend/src/models/interview.model.js - Questions and answers
backend/src/models/questionAnswer.model.js - Evaluation records
backend/src/models/evaluations.model.js - Assessment records
backend/src/models/assessment.model.js - Invitation records
backend/src/models/interviewInvitations.model.js
Other components
- Recruiter
- Candidate
- Supabase
- Email service
Connections 45
- Recruiter → App routes: use
frontend/src/App.tsx - Candidate → App routes: use
frontend/src/App.tsx - App routes → Recruiter dashboard: routes to
frontend/src/App.tsx - App routes → Candidate welcome: routes to
frontend/src/App.tsx - App routes → Candidate interview: routes to
frontend/src/App.tsx - App routes → Login and register: routes to
frontend/src/App.tsx - App routes → Auth provider: wraps
frontend/src/App.tsx - Candidate welcome → Interview API: requests
frontend/src/pages/CandidateWelcomePage.tsx - Candidate welcome → Speech input: uses
frontend/src/pages/CandidateWelcomePage.tsx - Speech input → Candidate: captures speech
frontend/src/hooks/useSpeechRecognition.ts - Interview API → API client: uses
- Auth provider → API client: uses
frontend/src/auth/AuthProvider.tsx - Express app → Candidate routes: mounts
backend/src/app.js - Express app → Recruiter routes: mounts
backend/src/app.js - Candidate routes → Interview controller: routes to
backend/src/routers/candidate.routes.js - Candidate routes → Invitation verification: verifies invitation
- Recruiter routes → Recruiter controller: routes to
backend/src/routers/recruiter.routes.js - Recruiter controller → Candidate records: creates candidate
backend/src/controllers/recruiter.controller.js - Recruiter controller → Interview records: creates interview
backend/src/controllers/recruiter.controller.js - Recruiter controller → Invitation records: creates invitation
backend/src/controllers/recruiter.controller.js - Recruiter controller → Invitation email: sends invitation
backend/src/controllers/recruiter.controller.js - Invitation email → Email service: delivers email
- Interview controller → Context extractor: extracts context
backend/src/controllers/interview.controller.js - Interview controller → Answer evaluator: evaluates answer
backend/src/controllers/interview.controller.js - Interview controller → Interview engine: advances flow
backend/src/controllers/interview.controller.js - Interview controller → Question agent: generates question
backend/src/controllers/interview.controller.js - Interview engine → Question agent: generates next
backend/src/services/Interview/interviewEngine.js - Interview engine → Final assessment: builds assessment
backend/src/services/Interview/interviewEngine.js - Context extractor → Ollama service: generates with
backend/src/services/InterviewAgents/contextExtractorAgent.js - Question agent → Ollama service: generates with
backend/src/services/InterviewAgents/questionAgent.js - Interview controller → Candidate records: reads and updates
backend/src/controllers/interview.controller.js - Interview controller → Interview records: reads job details
backend/src/controllers/interview.controller.js - Interview controller → Questions and answers: stores answers
backend/src/controllers/interview.controller.js - Interview controller → Evaluation records: stores evaluation
backend/src/controllers/interview.controller.js - Interview engine → Candidate records: loads context
backend/src/services/Interview/interviewEngine.js - Interview engine → Interview records: loads requirements
backend/src/services/Interview/interviewEngine.js - Interview engine → Questions and answers: reads and stores
backend/src/services/Interview/interviewEngine.js - Interview engine → Evaluation records: reads evaluations
backend/src/services/Interview/interviewEngine.js - Interview engine → Assessment records: stores result
backend/src/services/Interview/interviewEngine.js - Candidate records → Supabase: reads and writes
backend/src/models/candidate.model.js - Interview records → Supabase: reads and writes
backend/src/models/interview.model.js - Questions and answers → Supabase: reads and writes
backend/src/models/questionAnswer.model.js - Evaluation records → Supabase: reads and writes
backend/src/models/evaluations.model.js - Assessment records → Supabase: reads and writes
backend/src/models/assessment.model.js - Invitation records → Supabase: reads and writes
backend/src/models/interviewInvitations.model.js