Deterministic tasks
- JSON Schema validation
- Deterministic answer shuffling
- Game physics and canvas rendering
- Mastery and reward calculations
Case study · learning application and content quality
I built Level-Up Learning for my son, with question-based missions, visible progress, and arcade rewards shaped by his feedback. As the original 565-question bank needed more variety, I built an offline AI generation pipeline, content validators, reusable React controls, and four game engines. The current build offers 3,158 playable missions, six-question practice sessions, and mastery based on independently solved questions, with no model calls during play.
The September 7 source contains 3,249 question records, with 91 repeated prompts excluded from play while historical progress is retained. The resulting runtime serves 3,158 playable missions in 79 on-demand chunks, including 213 interactive questions. All 25 current Node tests passed during this review.
01 / Problem
A strong learner could quickly exhaust a small hand-authored question bank. Live inference would add latency, provider dependency, unpredictable output, and unnecessary data exposure during play.
The chosen architecture generates candidate content offline. Node.js validators treat every generated batch as untrusted input before approved questions and assets enter the deterministic browser application.
02 / Evolution
A React dashboard started with 565 missions, XP, and seven small games.
Codex and Claude CLI lanes generated and reviewed structured question batches offline.
Schemas, duplicate checks, asset checks, and deterministic option shuffling controlled import.
Chunked loading, interactive mission components, and local mastery state serve daily play.
03 / What I built
04 / Architecture
Level-Up Learning architecture separating offline AI authoring from the pure deterministic client game.
05 / System Boundary
06 / Reliability
The client application runs 100% offline once loaded. No API keys, no network timeouts, and zero risk of inappropriate model output in real time.
Batch import rejects any question with malformed JSON, duplicate question text, or invalid answer indices.
07 / Outcomes
Expanded from 565 hand-crafted questions to 3,158 verified missions across math, science, and spatial reasoning.
Eliminated ongoing API costs during daily use by moving all AI operations to build time.
Deterministic content delivery guarantees no hallucinatory or inappropriate questions reach the screen.