See what your class actually misunderstands. For teachers marking written answers.
Paste your class's answers to one question (one per line, names removed) and Fault Lines groups them by the belief underneath — not by mark — names each belief, ranks it by exam risk, proves it with verbatim student quotes, and gives you a ~5-minute reteach plan plus a follow-up diagnostic question. Anything too vague to classify is shown honestly as “Not sure — needs your eyes” instead of being invented.
Every class has fault lines. See them before the exam does.
npm install
npm run devOpen http://localhost:3000 → Map my class. It works with no API key: a built-in deterministic heuristic groups similar answers, and four cached example classrooms (seasons, fractions, photosynthesis, WWI causation) run with zero network.
- Strata map — beliefs sized by share of class (
18 of 28 · 64%), ordered by exam risk, keyboard accessible. - Evidence — verbatim quotes only; counts always sum to your class size. Guaranteed by construction, not by trust (see
ARCHITECTURE.md). - Reteach cards — title, minutes, steps, check question + follow-up diagnostic per belief; copy a single card or the whole plan.
- Exports — copy/print one-page plan, Markdown, CSV, JSON, and shareable links (the report travels inside the link; no server storage).
- Inputs — paste, drag-and-drop, or upload
.txt/.csv(answer column auto-detected). Optional question field improves grouping. Live counter, duplicate detection, calm 120-answer cap. - Local history — your last 8 maps in this browser only, labelled, searchable (by question, belief or date, with suggestions), individually deletable (Settings can wipe everything — use it on shared computers).
- Assistance — optional answer and question autocomplete while you paste, and an optional browser notification when a map finishes so you can mark meanwhile. Both off-able in Settings; notifications carry counts only, never student words.
- Guided tour — a first-run walkthrough that spotlights each part of the tool and explains it, replayable any time from Settings or the report page.
- Name guard — the composer warns about emails, phone-like numbers, “Name:” labels and name-like pairs before anything is mapped, quoted or shared. It runs in your browser.
- “Since your last run” — re-map the same question and see which beliefs shrank after a reteach (diffed against local history; refuses to compare classes of very different sizes).
- Backup & restore — download every local setting and saved map as one JSON file, restore it on another machine. Validated before import; nothing leaves the browser.
- Languages — the interface and the generated report (belief names, reteach plans, diagnostics) are translated into 7 languages (English, Français, Español, Deutsch, Português, Yorùbá, العربية with RTL): every page, button, error, screen-reader label, toast and exported plan. Auto-detected from the browser, switchable from the header or Settings, no reload. Only brand/product nouns and student answers stay as they are — see
docs/i18n.md. Analysis works on answers in any language. - PWA — installable on phone/tablet/laptop/desktop with a cross-device install sheet (incl. iOS steps); examples, heuristic and history work offline; custom offline page.
- Browser extension — select answers anywhere on the web and send them into the tool (
extension/, MV3, minimal permissions). - Strata Drop — our own little offline game built into the 404/error/offline pages and at
/play. Catch solid understanding, dodge the fault cracks. - Designed, not just built — a real design system (paper/ink/rust/ochre/slate), self-hosted Fraunces + Inter, a working dark mode, instant theme and text-size switching, scroll-reveal motion that respects
prefers-reduced-motion, keyboard-accessible belief map and a print-ready one-page plan.
The built-in heuristic groups by wording similarity — it cannot judge correctness. For true misconception analysis, configure any OpenAI-compatible endpoint on the server (OpenAI, OpenRouter, Groq, Together, a local model…):
cp .env.example .env.local
# LLM_PROVIDER=openai
# LLM_API_KEY=sk-... # server-side only — never NEXT_PUBLIC_
# LLM_MODEL=gpt-4o-mini
# LLM_BASE_URL=https://api.openai.com/v1The model returns member indexes per belief; counts and quotes are then derived server-side from your actual paste — so quotes stay verbatim and counts stay exact even in AI mode. If the provider fails (bad key, timeout, malformed output) the app falls back to the heuristic and tells the teacher (meta.degraded). Check which engine a deployment uses at GET /api/health or in Settings.
The plain-language version lives at /privacy in the app; the technical audit is SECURITY.md.
No accounts, no database, no server-side storage of answers or results. Remove student names before pasting (the UI reminds you). Share links embed the anonymised report in the URL hash — anyone with the link can view it, and the UI says so. See SECURITY.md for the full client-secrets/tenancy audit.
npm run dev # develop
npm run build # production build
npm run lint # eslint (zero problems expected)
npm run typecheck # tsc --noEmit
npm test # vitest — 110 tests across every core system
npm run check # all threeCopy lives in lib/i18n/ (one complete dictionary per locale, typed against English) — docs/i18n.md explains the system and what is deliberately left untranslated.
Stack: Next.js App Router + TypeScript + Tailwind 4 (via PostCSS) + Zod. Fonts are self-hosted with @fontsource-variable/* — no build-time Google Fonts fetch. One API route (app/api/analyze). Provider interface in lib/llm/ (mock heuristic + real OpenAI-compatible). Structure: see STRUCTURE.md; design decisions: ARCHITECTURE.md; product docs: devpost/.
- Vercel / any Node host — full app including
/api/analyze. Set env vars there if using a real provider. - GitHub Pages (
GITHUB_PAGES=true, see workflow) — static export; the tool automatically runs the heuristic in-browser when no API is available, and says so.
MVP complete and polished (v1.4.0 — localised reports, suggestions, notifications and a guided tour). Submission pack: SUBMISSION.md. Operations pack: docs/operations/. This codebase went through a full recovery & completion pass — state, audits, plan, log, acceptance evidence and handoff live in docs/recovery/. Future ideas: ROADMAP.md.
Built by Abdulrahman Adeeyo (Abdulboy) for the Devpost "Build with AI: Basics" hackathon — a proof of concept exploring flipped interaction and plan-first development with AI. MIT licensed.