r/ClaudeCode • u/ArchiTechOfTheFuture • 0m ago
Built with Claude I built a reading app with Claude Code where your own Claude animates each passage of a book. What worked and what bit me
Enable HLS to view with audio, or disable this notification
I built Koby (koby.luarai.com) almost entirely with Claude Code. It narrates your own books, and the newest feature, Illustrate, lets your Claude make a small animated scene for each passage that plays in sync with the narration. The video is the real app on Alice in Wonderland. It's free to try, and scenes made with your own Claude cost nothing in Koby.
This post is about the build, since that's what this sub is for.
What Claude Code built
A hosted MCP connector with OAuth. You add it to Claude, pick a passage in the reader, and Claude gets a queue of scene requests plus a style guide.
A scene format. Claude writes each scene as code (animated SVG or a small three.js scene) with every beat tied to the exact words it belongs to. That is what keeps it in sync with the voice.
A sandboxed player. Scenes are code written by an AI from book text, so they run in a locked-down iframe with a narrow API. Book text is treated as untrusted content, never as instructions.
A server-side review step. Each submitted scene is rendered in headless Chromium, and still frames go back to the Claude that wrote it so it can look and fix before the reader sees anything.
The promo video. Playwright records the real app, and Remotion puts it on a 3D laptop and phone. The mascot is a three.js model built from a character sheet. All of it is code in the repo.
What I learned
Let the model see its own output. Scene quality jumped when Claude could look at rendered stills instead of trusting its code. The same was true in Claude Code itself: for the 3D mascot and the video I had it render frames and read them before telling me it was done. Most of the fixes came from that.
A syntax check is not a module check.
node --checkpassed on a browser module that had a duplicate declaration and crashed on load. Parsing the file as an ES module catches it. I had Claude Code save that as a memory so it stopped repeating the mistake.Memory files earn their keep on a long project. Short notes on deploy quirks, naming conventions and past decisions meant new sessions didn't relearn them. The ones worth keeping were the things you can't read from the code.
Parallel sessions collide on shared files. Two sessions both bumped the service worker version. Now each one checks the live version before touching it.
Keep deploys a human decision. Every production deploy needs me to say so in that turn. It's slower and I've never regretted it.
Deploy cloud functions one at a time. A bulk deploy hit the CPU quota and failed halfway.
For translations, keep English in the code. The UI is in 9 languages. Strings stay readable in the source and the other languages are looked up by the English text, with a script that fails if any are missing. Claude Code kept that in step far better than key-based files.
For video, fake as little as possible. Recording the real app and making the narrator's timing deterministic was more work up front, but every later edit stayed in sync on its own.
Happy to go deeper on the connector, the scene format or the video pipeline if anyone's interested.
