-
Learn it, then pass the spark.
-
The Ask screen: a student picks a topic and writes their doubt in plain words.
-
Match found: the app suggests the classmate who learned this topic most recently.
-
Mid-relay: a guided 5-minute script walks the carrier through one worked example.
-
Spark Check passed 3 out of 3. The spark moves on to the next student.
-
The class map: how knowledge moved through the room, topic by topic.
-
My Sparks: topics learned, spaced review reminders, and a printable summary.
-
Class view for teachers: coverage gaps and a relay-hour planner for one period.
-
Practice: a wrong answer reveals its named trap and a full worked solution.
-
The same screen in Arabic, showing the right-to-left layout.
Inspiration
In Bangladesh, families carry most of the cost of education themselves. A big share of what they spend goes to private tutors, and the students who need help the most are often the ones who can least afford one.
But every classroom already has a free tutor in it: the student who learned that exact topic last week. They remember what was confusing, they explain it in the same language, and they're sitting one desk away. Nobody had built a simple, safe way to connect the two. That's what we set out to do.
What it does
Spark Relay turns one student's fresh understanding into a short lesson for the next student stuck on the same topic. A full relay takes about five minutes: a student asks about a topic, the app finds the classmate who learned it most recently, that classmate can accept or quietly decline, then walks their classmate through a short guided session. The learner answers three quick questions, and getting all three right passes the spark forward, so they can now teach it too.
Around that core loop, there's a class map showing how knowledge moved through the room, a Practice section with unlimited generated problems for deeper work, a personal page for each student with spaced review reminders, and a teacher view with coverage gaps and a relay-hour planner. It runs in five languages, including right-to-left Arabic, and works entirely offline from a single HTML file. No accounts, no server, no tracking.
How we built it
The entire app is one HTML file. No frameworks, no bundler, no build step for the end user, and no network calls at all. That constraint shaped almost every decision: state lives in localStorage, the relay map is drawn with SVG and Canvas, sound comes from the Web Audio API, and every language string is pulled from a single dictionary keyed by the browser's own Intl APIs.
Behind that one file is a small build pipeline we wrote ourselves. The source is split across feature files (CSS and JS for the relay, Practice, the class view, and so on), and a Python script (build/build.py) concatenates and inlines everything into index.html. That split made the app maintainable without ever breaking the single-file requirement, and it let us catch mistakes early: the build asserts there are no duplicate translation keys before it even runs.
Practice problems are the one place we had to be careful about correctness, not just code quality. Instead of asking an AI to generate questions, we wrote deterministic generators: pure functions that compute a question, a correct answer, and a set of wrong answers, each one tagged to a known mistake. Every generator is checked by a separate test that builds over 16,000 problems and verifies them independently, including running the generated Python code for real rather than trusting what the generator claims.
We used Claude as a coding partner throughout, writing most of the code and the test suite from our instructions, while we set the rules, reviewed every build, and decided what stayed in and what got cut.
Challenges we ran into
The hardest call was deciding against live AI inside the app. It would have given us unlimited, adaptive questions, but an AI-written question can be subtly wrong while still sounding confident, and the student reading it is the person least able to catch that. We chose correctness over flexibility: a template-based problem generator where every answer is computed, not guessed. That decision created its own work. Every generator needed a test that could prove it was right, not just plausible, so we built one that generates over 16,000 problems and checks each independently, including running the generated Python code for real. It even caught a generator that could produce "NaN" as a wrong answer for a chemistry formula, which would have looked like a bug rather than a real distractor.
Because this is built for students aged 13 to 18, every feature had to be checked against safety and privacy, not just usefulness. Teacher-visible questions get scrubbed of anything that looks like a phone number or email before they're ever saved. There are no accounts, no private messaging, and nothing more identifying than a first name and grade.
We also found problems late that only showed up once the app was in someone else's hands. Our guided tour originally ran through the entire app in under 20 seconds, which felt impressive in testing but was too fast for anyone to actually read. Fixing it meant rethinking the whole timing model around how long a sentence actually takes to read, not just how fast the UI could move. It also kept the app completely offline with zero network dependency and zero API cost, which matters when classroom connectivity and recurring budgets are tight.
Accomplishments that we're proud of
The whole app runs with zero network requests and zero console errors, in five languages including a fully right-to-left Arabic layout, entirely from one offline HTML file. Nothing about that was simulated to look good in a demo.
We're proud that every practice problem the app can generate, all 16,000-plus of them across every topic and difficulty level, is independently verified for correctness, including problems that involve real executable code. That's a different standard than "it looked right when we tried it," and it's the reason we felt comfortable giving students unlimited practice without live AI.
We're also proud of what we left out. It would have been easy to add flashy animations, particle effects, and celebration sounds to make the app feel exciting in a demo video. We built those, looked at them honestly, and cut almost all of them, keeping motion only where it actually means something, like the relay map. The result feels calmer and more trustworthy, which matters more for something students will actually use in a classroom.
Practice rounds also pair every wrong choice with the exact trap behind it and a worked solution, while Spark Check acts as a gate to become the next teacher rather than a high-stakes test.
What we learned
Saying no to a feature can be the stronger design decision. Live AI tutoring looked like the obvious next step, but walking through what could go wrong with it, for this age group, in a real classroom, taught us more about responsible AI use than building it would have.
We learned that confidence isn't the same as correctness. It's easy to trust that a generated answer is right because it looks right; it took writing tests that actually execute the generated code to catch the cases where it wasn't.
We also learned that pacing and restraint are part of the design, not an afterthought. A feature that moves too fast or celebrates too loudly stops feeling trustworthy even when it works. Slowing down, quieting down, and giving students time to actually read made the app feel more serious, not less.
What's next for Spark Relay
Real sync between devices, so a relay can happen across two phones instead of one shared screen. Teacher accounts, so a teacher can set up and monitor their own class instead of using demo data. And, carefully, optional AI support that only turns on with a teacher's approval and stays inside clear limits, rather than an open-ended chatbot talking directly to students.
Beyond that, we'd want to pilot it in an actual classroom, with a real teacher and real students, to see which parts of the design hold up outside a demo and which ones need to change.