TestForge is a Chrome extension for students who study with AI. You tell it your syllabus, it writes a precision prompt for your own AI chat (ChatGPT, Claude, Gemini β anything), the AI replies with a structured test file, and TestForge turns that into an interactive, auto-graded, full-page test.
No scraping. No DOM injection. No API keys. The AIβs answer travels by copy-paste, which makes TestForge platform-agnostic and immune to chat UI changes β and it means the test is built from the context of your actual study conversation, not from a cold prompt.
ββββββββββββββ 1. topics, counts, ββββββββββββββββββ
β TestForge β difficulty β Your AI chat β
β (Build) β ββββΊ curated prompt ββββΊ β (ChatGPT/Claude β
ββββββββββββββ (you copy-paste) β /Gemini) β
β² βββββββββ¬βββββββββ
β 4. interactive full-page test β 2. replies with
β auto-graded locally β one JSON block
βββββββ΄βββββββ β
β TestForge β βββββ 3. paste / drop JSON βββββββ
β (Import) β
ββββββββββββββ
If the AIβs JSON is malformed, TestForge generates a repair prompt you paste back β the AI fixes its own output.
mcq Β· truefalse Β· short Β· long Β· fillblank Β· match
ratio = matched weight / total weight):
ratioΒ²ratiomin(1, ratio / 0.6) (β₯60% of key concepts = full marks)frontend/ Chrome extension (Manifest V3, React + Vite + TypeScript)
ββ popup.html quick launcher
ββ app.html full-page app: Build / Import / Take / Results / History
ββ src/core/ schema (zod), prompt generator, grading engine, storage
backend/ Express + TS placeholder β NOT needed by the MVP (see backend/README.md)
cd frontend
npm install
npm run build # β frontend/dist
chrome://extensions, enable Developer modefrontend/distcd frontend && npm run dev
Open http://localhost:5173/app.html β storage transparently falls back to
localStorage in a plain tab.
v1 (GeminiITUpgrade) injected prompts into Geminiβs input and scraped responses from the page. It worked, but it was coupled to one platform, broke when the UI changed, and sat in a ToS gray zone. v2 trades one paste of friction for portability, stability, and safety.