Leave me a note

It goes straight to my inbox. I reply within a day or two.

What's it about?
or find me on
← back to the desk

~/work/lessonplay/README.md

Product · 2026 · Live

LessonPlay

Give it a chemistry chapter. Get a playable lab.

An AI studio that turns a school chemistry chapter into a real, playable lab simulation, proves the game is winnable before anyone plays it, and publishes it as one shareable link.

role: Design, engineering, and infrastructure. Solo.

LessonPlay home page: “Turn chemistry lessons into playable labs”, with an example lab about separating sand, salt and water

The problem

Teachers for classes 8 to 10 have chapters full of experiments students rarely get to run. Generic AI chat can describe a titration, but it cannot hand a class something they can actually play, and it will happily produce a game that is impossible to finish.

How it works

  1. 01An agent reads the chapter or a one-line prompt, proposes game concepts, and writes the simulation as real code rather than a canned template.
  2. 02Every build runs inside an isolated Daytona sandbox so generated code never touches the app server, and each attempt is versioned.
  3. 03A validator play-tests the game before it is published. If it cannot prove the game is winnable, the game does not ship.
  4. 04Published games are static artifacts served from Cloudflare R2 on their own subdomain, so a link keeps working even if the studio is down.

Where it landed

  • Live and free during beta, with games published to games.lessonplay.space.
  • Open source under Apache 2.0 with CI, contribution, and security policies.
  • Two guided lab surfaces shipped: a discovery bench and a step-by-step investigation mode.

Stack

  • Next.js
  • React 19
  • TypeScript
  • tRPC
  • Postgres + Drizzle
  • Clerk
  • Mastra
  • AI SDK
  • Daytona
  • Cloudflare R2
  • Vercel