NextRound is an AI interview-preparation platform that takes a candidate from "I don't know where I stand" to "I am measurably ready." It is not a chatbot that answers interview questions — it is a closed loop: assess → diagnose → plan → learn → practise → evaluate → adapt. Every mock interview and quiz feeds a computed Readiness Score (0–100, with a confidence band), and the score's trustworthiness is the product.
Who it's for: the launch wedge is software engineers with 0–3 years of experience in India, preparing for SDE interviews. The architecture is archetype-parameterised so other roles are content work later, not engineering work.
- You upload a resume — it's parsed and critiqued in about a minute (the free-tier hook).
- You take a ~30-minute adaptive assessment of calibrated questions (no LLM involved — pure item selection).
- You get a Readiness Score, a per-dimension breakdown, and a prioritised gap list.
- A deterministic scheduler builds a day-by-day plan toward your target interview date.
- You work the plan: cached lessons, flashcards with spaced repetition, topic quizzes.
- You take text mock interviews (HR / behavioural / technical); an evaluator scores each answer against a rubric with quoted evidence.
- Everything you do emits evidence items; the score recomputes, the plan adapts by bounded deltas — and the number moves because you did.
graph TB
FE["React + TS + Vite<br/>Tailwind · shadcn/ui · TanStack Query"] --> API["FastAPI /api/v1"]
API --> SVC["Services<br/>(all business logic)"]
SVC --> REPO["Repositories<br/>(only layer touching the ORM)"]
SVC --> ORCH["AI Orchestrator<br/>(~200 lines, ours)"]
SVC --> Q["Redis queue"]
Q --> W["ARQ workers"] --> SVC
REPO --> PG[("Postgres 16 + pgvector")]
ORCH --> LLM["Claude API"]
ORCH --> AC[("ai_calls<br/>every LLM call logged")]
API --> AUTH["Supabase Auth"]
A modular monolith: boundaries are directories with mechanically enforced import rules (import-linter in CI), not deployments. Three principles worth knowing on day one:
- The Readiness Score is computed, never generated. LLMs emit rubric evidence only; deterministic arithmetic in
services/scoring/turns evidence into the number. A paid metric cannot be non-deterministic. - Lesson content is generated once, human-reviewed, and cached. Personalisation is selection and ordering — never regenerated prose. This is the biggest cost and quality decision in the system.
- Every LLM call is logged to
ai_callswith model, prompt version, tokens, and cost — per-user cost is queryable before it becomes a crisis, and every score is auditable after a prompt change.
| Layer | Choice |
|---|---|
| API | FastAPI, Python 3.12, SQLAlchemy 2.0 + Alembic, Pydantic v2 |
| Jobs | ARQ + Redis |
| Data | PostgreSQL 16 + pgvector |
| AI | Claude API via our own ~200-line orchestrator (no frameworks) |
| Auth | Supabase (managed) |
| Frontend | React 18 + TypeScript + Vite, Tailwind + shadcn/ui, TanStack Query, Zustand |
| Payments | Razorpay (v1) |
backend/ FastAPI app — api/ (routers) → services/ → repositories/ → models/
ai/ orchestrator, agent configs, versioned prompts, output schemas
core/ settings, DB sessions, logging (PII-allowlisted), domain errors
migrations/ Alembic
frontend/ Vite + React app (src/pages, components, features, stores, services)
docs/ ARCHITECTURE.md (the system design), workorders/ (sequenced build prompts)
tests/ unit/, integration/, golden/ (hand-graded evaluation set, from week 5)
ops/ deployment configs and runbooks (empty until first deploy)
.claude/agents/ Claude Code subagent definitions used to build this repo
Prerequisites: Docker Desktop, Python 3.12+, Node 22+, make. Nothing may be listening on ports 8000, 5173, 5432, or 6379.
git clone <repo> && cd NextRound
cp .env.example .env # placeholders work for local dev; Supabase keys needed for login
make dev # builds and starts db, redis, api, worker, frontend
# in a second terminal — local venv for migration/test/lint tooling:
python3.12 -m venv backend/.venv && source backend/.venv/bin/activate
pip install -e "backend[dev]"
make upgrade # apply migrations (schema + SDE archetype seed)Verify:
- http://localhost:8000/health →
{"status":"ok"} - http://localhost:8000/ready → DB and Redis checks both
ok - http://localhost:8000/docs → OpenAPI UI
- http://localhost:5173 → the app (login requires real Supabase keys in
.envandfrontend/.env.local— see.env.example)
make dev # docker compose up — full local stack
make stop # tear the stack down
make upgrade # apply Alembic migrations
make migrate m="…" # autogenerate a new migration
make test # pytest (root pytest.ini, tests/ against backend/)
make lint # ruff + mypy strict + import-linter, then eslint + tsc
make eval-golden # evaluation-prompt regression gate (golden set arrives week 5)
make types # regenerate frontend API types from the running api's OpenAPI- CLAUDE.md — the invariants and conventions that override everything else
- docs/ARCHITECTURE.md — full system design, data model, delivery plan
- docs/workorders/ — the sequenced build history
docs/TEAM_SPLIT.md— who owns what (backend / AI / frontend)