Ninetynine
Every CAT paper since 2017, in an interface that feels like exam day — and a mock generator that aims at your weak spots.
- Role
- Built end to end: scraper, parser, FastAPI backend, React exam UI, AI analysis
- Team
- Solo
- Period
- Oct – Nov 2026
- Stack
- React · Vite · KaTeX · FastAPI · Neon Postgres · pytest · Docker

01 — Context
The problem
CAT aspirants practise on scattered PDFs and screenshots that look nothing like the real exam, and the analysis afterwards is usually just a score. Ninetynine puts every CAT paper from 2017 to 2025 — 24 papers, 1,830 questions — into a CAT-style exam interface with timing, sections and a proper post-exam analysis.
When you run out of past papers, it generates unlimited new mocks from the topics you keep getting wrong.
02 — My role & scope
What I built
A solo build, end to end:
- Data pipeline: scraper, parser, figure downloads and a re-runnable migration into Neon Postgres.
- FastAPI backend that also serves the built SPA, with the attempts API, limits and security headers.
- React + Vite exam UI with Tailwind, Framer Motion and KaTeX, plus a GSAP landing page.
- The AI analysis layer and tests (pytest + node:test).
Live at ninetynine.usewolfe.com, with one-time payment for lifetime access.
03 — Architecture
How it fits together
An offline pipeline produces clean data once; a single FastAPI process serves both the API and the built single-page app.
04 — Hard problems
Three hard problems
- A.
A data pipeline I could run again without fear
- Problem
- The source is 72 section pages of HTML with inline maths and figures. A one-off scrape would be wrong somewhere, and fixing it by hand would mean the database and the source drift apart forever.
- Options
- Scrape once and patch the database by hand.
- Scrape on every deploy — hostile to the source, slow, and fragile.
- Split it into stages that are each cached and re-runnable.
- Choice
- A throttled scraper caches every page locally. A parser turns the cache into JSON and downloads figures. A migration script upserts the JSON into Neon Postgres, so running it twice changes nothing.
- Result
- When I find a parsing bug I fix the parser and re-run the last two stages. No manual edits, no drift, and the source site only gets hit once.
- B.
Scores the client can't forge
- Problem
- Analysis is only meaningful if the attempt data is honest. If the client posts its own score, timings and paper metadata, anything is possible — and a long session can send a lot of events.
- Options
- Trust the client and validate loosely.
- Move the whole exam to the server — heavy, and bad offline behaviour.
- Let the client send raw events and have the server own every derived field.
- Choice
- The attempts API owns paper, kind, timings and the summary; the client only reports what happened. Events are capped at the last 6,000 per attempt, request bodies at 1 MB (anything larger gets a 413), and validation errors come back as structured JSON.
- Result
- Scores and analysis are computed from data the server controls. Security headers, including a Content-Security-Policy, are set on every response.
- C.
Rendering scraped HTML and maths safely
- Problem
- Questions are HTML from a third-party site, full of maths. Rendering it raw is an XSS hole; stripping it breaks the questions.
- Options
- Convert everything to plain text — loses formatting and figures.
- Render raw HTML — fast, unsafe.
- Sanitise, then render maths properly.
- Choice
- Question HTML is sanitised with DOMPurify before it touches the DOM, and maths is rendered with KaTeX. Routes are lazy-loaded so the exam screen doesn't pay for the landing page's GSAP.
- Result
- Questions look like the real paper, and a malicious string in the source can't run in a user's browser.
05 — AI specifics
The AI part
The AI does three narrow judgments, each of which a student would otherwise make badly about themselves.
Topic tags
Every question is tagged by topic, which is what makes "weak topics" computable at all.
Mistake causes
For each wrong answer, the model judges why — so the analysis can separate a concept gap from a careless slip.
Skip verdicts
For skipped questions, it judges whether skipping was the right call. On CAT, good skipping is a skill.
Unlimited mocks
New mocks are generated from your weak topics, with similar-question clusters stored alongside the originals.
06 — Outcome
Where it landed
Live at ninetynine.usewolfe.com as a paid product (one-time payment, lifetime access), with 38 organic users so far, 8 of them paying. 24 papers and 1,830 questions are migrated, the exam and analysis flows work end to end, and the backend and frontend both have tests (pytest and node:test).
The schema already covers what a real product needs next: attempts, practice sessions, bookmarks, similar-question clusters and analytics events.
07 — Differently
What I’d do differently
- 01Put a small labelled set of questions in front of the AI judgments before trusting them at scale, and track agreement over time.
- 02Ship a rough version to real students sooner; polish without users is a guess.
