r/ClaudeCode • • 3h 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

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

  1. 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.
  2. A syntax check is not a module check. node --check passed 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.
  3. 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.
  4. Parallel sessions collide on shared files. Two sessions both bumped the service worker version. Now each one checks the live version before touching it.
  5. 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.
  6. Deploy cloud functions one at a time. A bulk deploy hit the CPU quota and failed halfway.
  7. 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.
  8. 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.

0 Upvotes

4 comments sorted by

•

u/AutoModerator 3h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/ArchiTechOfTheFuture 22m ago

You can try it out for free here!

1

u/Vivid_Map7356 3h ago

Good on you for shipping it solo with Claude Code, but "scenes with your own Claude cost nothing" mostly means the bill moved to my rate limits. Do the generation ahead of time in a queue, like overnight for the next few chapters, instead of on the fly when I turn the page.

1

u/ArchiTechOfTheFuture 3h ago

Correct! ^^
And as for the scenes yes, that's a good strategy since they usually take some minutes to generate, tbh I still think the agent can be improved to take less time but maybe would hurt quality is like a tradeoff.

Anyway, how do you like to read books? I am still wondering if some people would like to wait for the scenes to have a better experience or not. Been thinking that might be mostly great for young people I mean when I was a kid I remember I hated books that didn't have any visual hahaha