~/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.

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
- 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.
- 02Every build runs inside an isolated Daytona sandbox so generated code never touches the app server, and each attempt is versioned.
- 03A validator play-tests the game before it is published. If it cannot prove the game is winnable, the game does not ship.
- 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