How nallakshit-ops/careerpilotai-signallabs works
Purpose and Runtime
This is a Next.js App Router career-platform application for job seekers and recruiters. It combines profile/resume management, job and candidate workflows, AI-assisted career tools, interview practice, market exploration, and proactive career signals. The runtime includes React server/client components, Next.js route handlers, Prisma-backed persistence, and Inngest background execution.
Core entry points: app/layout.js, app/page.js, middleware.js, and app/api/inngest/route.js.
Route Segmentation and Access Boundaries
The UI is organized into authentication and protected/main route groups. Authentication screens are isolated under app/(auth)/layout.js; user-facing capabilities share app/(main)/layout.jsx; recruiter-specific workflows have an additional boundary at app/(main)/recruiter/layout.jsx.
Likely auth middleware enforcement and request gating are centralized in middleware.js. User records/profile bootstrap are represented by actions/user.js and lib/db/checkUser.js.
Domain Actions and Persistence Layer
Server-side domain operations are grouped by major entities: users, candidates, recruiters, jobs, resumes, cover letters, interviews, dashboard data, and signals. These action modules form the application-facing mutation/query boundary:
actions/job.js, actions/candidate.js, actions/resume.js, actions/signals.js.
Prisma defines the persistent model and migration history:
prisma/schema.prisma, lib/db/prisma.js, prisma/migrations/20250114060115_create_models/migration.sql.
Job-Seeker Experience
The main product flow supports onboarding/profile capture, resume construction, job/application access, AI cover-letter generation, dashboard analytics, and interview training. Route-level pages compose feature-local UI and invoke actions or API handlers:
app/(main)/onboarding/page.jsx, app/(main)/resume/page.jsx, app/(main)/ai-cover-letter/page.jsx.
Interview practice includes quiz/session views and a live-interview path; live evaluation is exposed as a server endpoint:
app/(main)/interview/page.jsx, app/(main)/live-interview/page.jsx, app/api/evaluate-live-interview/route.js.
Recruiter Workflow
Recruiter routes provide a separate operating surface for candidate discovery, job creation/listing, per-job hiring pipelines, and tracking analytics:
app/(main)/recruiter/dashboard/page.jsx, app/(main)/recruiter/jobs/[id]/page.jsx, app/(main)/recruiter/candidate/[id]/page.jsx.
The Kanban pipeline UI is a material workflow boundary for candidate/job-stage transitions:
app/(main)/recruiter/jobs/[id]/_components/kanban-view.jsx, actions/recruiter.js, actions/candidate.js.
AI, Career Intelligence, and Async Work
AI-backed capabilities include ATS resume generation/PDF creation, cover letters, cold DMs, interview questions, skill analysis, career simulation/risk/comparison, and recommendations. API routes provide the browser-to-server boundary:
app/api/generate-ats-resume/route.js, app/api/career-simulate/route.js, app/api/skill/analyze/route.js.
Gemini integration is abstracted behind pooled, cached AI clients:
lib/ai/gemini-pool.js, lib/ai/gemini-with-cache.js, lib/ai/career-ai.js.
Long-running TalentSync work is submitted, polled, and stored through distinct endpoints/services, with Inngest providing background orchestration:
app/api/growth-tools/talentsync/start/route.js, app/api/growth-tools/talentsync/status/[jobId]/route.js, lib/inngest/function.js.
Signals and External Exploration
The signals subsystem detects career events from performance, skill gaps, opportunities, and market changes; it correlates, scores, explains, and produces recommended actions. Its lifecycle API supports generation, retrieval, acknowledgment, resolution, and action state:
lib/signals/signal-engine.js, lib/signals/correlation-engine.js, app/api/signals/generate/route.js.
Explore APIs integrate external job, hackathon, and GitHub-repository data into the platform:
app/api/explore/jobs/route.js, app/api/explore/hackathons/route.js, app/api/explore/github-repos/route.js.
Client-Side Specialized Processing
Live-interview UI includes webcam analysis and ships face-api model assets for browser-side face/expression/landmark detection:
components/WebcamAnalyzer.jsx, lib/utils/faceApiConfig.js, public/models/face-api.
Main entry points: layout.jsx Protected app shell · candidate.js Domain actions · prisma.js Prisma persistence · page.jsx Resume & cover letter
Components 21
App Router UI
User and recruiter route surfaces.
- App entry & request gate
app/layout.js - Auth route boundary
app/(auth)/layout.js - Protected app shell
app/(main)/layout.jsx - Onboarding & profile
app/(main)/onboarding/page.jsx - Resume & cover letter
app/(main)/resume/page.jsx - Interview practice · Includes live interview evaluation.
app/(main)/live-interview/page.jsx - Recruiter workspace
app/(main)/recruiter/layout.jsx - Hiring Kanban · Moves candidates through job stages.
app/(main)/recruiter/jobs/[id]/_components/kanban-view.jsx - Webcam analysis · Face and expression analysis using bundled models.
components/WebcamAnalyzer.jsx
Domain & Data
Server action boundary and persistence.
- Domain actions · Application query and mutation boundary.
actions/candidate.js - User bootstrap
lib/db/checkUser.js - Prisma persistence
lib/db/prisma.js - Data model & migrations
prisma/schema.prisma
AI & Intelligence
AI, signals, and asynchronous processing.
- AI career APIs · Resume, career simulation, and skill-analysis endpoints.
app/api/generate-ats-resume/route.js - Gemini AI layer · Pooled and cached model access.
lib/ai/gemini-with-cache.js - Career signals engine · Correlates, scores, explains, and recommends actions.
lib/signals/signal-engine.js - Signals lifecycle API
app/api/signals/generate/route.js - TalentSync workflow · Background submission, polling, and storage.
lib/inngest/function.js - Inngest endpoint
app/api/inngest/route.js - Live evaluation API
app/api/evaluate-live-interview/route.js
External Exploration
Third-party market data sources.
- Explore data APIs · Jobs, hackathons, and GitHub repositories.
app/api/explore/jobs/route.js
Connections 23
- App entry & request gate → Auth route boundary: routes unauthenticated users
- App entry & request gate → Protected app shell: gates protected requests
- Protected app shell → Onboarding & profile: hosts
- Protected app shell → Resume & cover letter: hosts
- Protected app shell → Interview practice: hosts
- Protected app shell → Recruiter workspace: scopes recruiter access
- Recruiter workspace → Hiring Kanban: hosts job pipeline
- Onboarding & profile → User bootstrap: initializes profile
- User bootstrap → Prisma persistence: reads and creates user
- Resume & cover letter → Domain actions: manages resumes and applications
- Recruiter workspace → Domain actions: queries jobs and candidates
- Hiring Kanban → Domain actions: updates hiring stages
- Domain actions → Prisma persistence: persists domain state
- Prisma persistence → Data model & migrations: implements
- Resume & cover letter → AI career APIs: requests generation
- AI career APIs → Gemini AI layer: uses AI capabilities
- Interview practice → Webcam analysis: analyzes webcam locally
- Interview practice → Live evaluation API: submits live evaluation
- Signals lifecycle API → Career signals engine: generates and manages signals
- Career signals engine → Prisma persistence: stores signal state
- Inngest endpoint → TalentSync workflow: registers background functions
- TalentSync workflow → Prisma persistence: stores job progress
- Explore data APIs → Domain actions: feeds market workflows