How devanshukoli/interviewlab works
Purpose and entry points
InterviewOps is a full-stack technical-interview simulator for systems/SRE/architecture candidates. A React/Vite client drives authenticated REST workflows; a TypeScript Express modular monolith runs AI pipelines, persistence, and telemetry. Client boot is src/main.tsx and stateful UI routing is src/App.tsx; server boot initializes instrumentation before application startup through server.ts, server/index.ts, and server/bootstrap.ts.
Client application
The browser client presents the interview lifecycle rather than a generic web shell: create a session, answer questions, inspect evaluations, and review longitudinal progress. src/components/NewInterviewFlow.tsx initiates resume/JD-based setup; src/components/ActiveInterviewSession.tsx handles active responses; src/components/EvaluationReportView.tsx renders results. Authenticated API access and token lifecycle are centralized at src/lib/auth.ts.
HTTP composition and security boundary
server/app.ts configures Express concerns and mounts the master API router in server/api/index.ts. Domain modules use route → controller → service layering, notably server/api/interview/interview.routes.ts, server/api/interview/interview.controller.ts, and server/api/interview/interview.service.ts. DTO validation, JWT/user-context enforcement, uploads, rate limits, and global errors form the request boundary in server/middleware/validation.ts, server/middleware/jwt.middleware.ts, and server/middleware/upload.ts. Authentication additionally supports credentials, OAuth-related flows, and TOTP via server/api/auth/auth.service.ts and server/services/totp.ts.
Interview generation pipeline
Session setup transforms a submitted resume plus job description into targeted questions. Orchestration resides in server/api/interview/interview-pipeline.service.ts (with corresponding shared service layer at server/services/interview-pipeline.service.ts). Specialized agents parse the resume and JD, identify gaps, then synthesize questions: server/modules/agents/resume-agent.ts, server/modules/agents/jd-agent.ts, server/modules/agents/gap-agent.ts, and server/modules/agents/question-agent.ts. Pipeline execution is synchronous within the API request lifecycle.
Evaluation and coaching pipeline
Candidate answers flow through evaluation and coaching orchestration in server/api/interview/evaluation-pipeline.service.ts and server/services/evaluation-pipeline.service.ts. server/modules/agents/evaluation-agent.ts produces rubric-based answer feedback; server/modules/agents/coach-agent.ts turns session outcomes into recommendations and informs progress. Session history and skill metrics are subsequently exposed through server/api/history/history.service.ts and server/api/progress/progress.service.ts.
AI, data, and provider boundaries
Agents depend on a provider-neutral LLM layer at server/services/llm.ts, with prompt construction isolated in server/services/prompt.service.ts; configured providers are Gemini, OpenAI, and Anthropic. Data access is mediated by server/db.ts, using Supabase when configured and an in-memory fallback otherwise. Production relational schema, user-scoped RLS, resume updates, security/2FA, and BYOK support are represented in sql/01_schema.sql, sql/02_rls_policies.sql, and sql/06_byok.sql; Supabase integration begins at server/services/supabase.ts.
Observability and runtime infrastructure
The Node/Express runtime exports OpenTelemetry spans through setup in server/observability/instrumentation.ts, with request/pipeline trace buffering in server/observability.ts. Buffered traces are surfaced as an API capability via server/api/telemetry/telemetry.routes.ts and server/api/telemetry/telemetry.service.ts, while OTLP collectors such as Jaeger, SigNoz, or Datadog are external optional sinks. Deployment expects Node, environment-validated configuration (server/config.ts), optional Supabase PostgreSQL, an LLM provider API, and an optional OTLP endpoint.
Main entry points: index.ts Master API router · db.ts Data access · interview.service.ts Interview API · evaluation-pipeline.service.ts Evaluation & coaching pipeline
Components 21
Browser client
- Client boot & routing
src/main.tsx - Interview lifecycle UI · Creates sessions, captures answers, and displays reports.
src/components/NewInterviewFlow.tsx - Auth client
src/lib/auth.ts
Node API
- Server bootstrap · Initializes instrumentation before the application.
server.ts - Express application
server/app.ts - Request security boundary · Validates DTOs and applies JWT context, uploads, limits, and error handling.
server/middleware/validation.ts - Master API router
server/api/index.ts - Interview API
server/api/interview/interview.service.ts - Authentication service · Supports credentials, OAuth-related flows, and TOTP.
server/api/auth/auth.service.ts - History & progress · Exposes session history and skill metrics.
server/api/history/history.service.ts
AI pipelines
- Interview setup pipeline · Synchronously turns resume and job description into a targeted session.
server/api/interview/interview-pipeline.service.ts - Resume/JD/gap agents
server/modules/agents/resume-agent.ts - Question agent
server/modules/agents/question-agent.ts - Evaluation & coaching pipeline
server/api/interview/evaluation-pipeline.service.ts - Evaluation & coach agents · Produces rubric feedback and session recommendations.
server/modules/agents/evaluation-agent.ts - Provider-neutral LLM · Uses isolated prompt construction and configured model providers.
server/services/llm.ts
Data & observability
- Data access · Uses Supabase when configured, otherwise an in-memory fallback.
server/db.ts - Supabase PostgreSQL · Production persistence with user-scoped RLS and BYOK schema support.
server/services/supabase.ts - OpenTelemetry setup
server/observability/instrumentation.ts - Telemetry API · Surfaces buffered request and pipeline traces.
server/api/telemetry/telemetry.routes.ts - OTLP collector · Jaeger, SigNoz, or Datadog.
Connections 25
- Client boot & routing → Interview lifecycle UI: renders
- Interview lifecycle UI → Auth client: uses
- Auth client → Express application: authenticated REST
- Server bootstrap → OpenTelemetry setup: initializes first
- Server bootstrap → Express application: starts
- Express application → Request security boundary: applies
- Request security boundary → Master API router: admits requests
- Master API router → Interview API: mounts
- Master API router → Authentication service: mounts
- Master API router → History & progress: mounts
- Master API router → Telemetry API: mounts
- Interview API → Interview setup pipeline: session setup
- Interview API → Evaluation & coaching pipeline: answer evaluation
- Interview setup pipeline → Resume/JD/gap agents: analyzes inputs
- Resume/JD/gap agents → Question agent: supplies gaps
- Question agent → Provider-neutral LLM: generates via
- Evaluation & coaching pipeline → Evaluation & coach agents: orchestrates
- Evaluation & coach agents → Provider-neutral LLM: evaluates via
- Interview API → Data access: persists sessions
- Evaluation & coaching pipeline → Data access: stores outcomes
- History & progress → Data access: reads metrics
- Authentication service → Data access: manages users
- Data access → Supabase PostgreSQL: when configured
- OpenTelemetry setup → OTLP collector: exports spans
- Telemetry API → OpenTelemetry setup: reads buffered traces