Outcome
ChattyBook is live at chattybook.com. Authors publish a book as an e-book, an audiobook and an AI chat in one place, and ChattyBook's offer to them is 70% of every sale and their readers' emails.
An author-first publishing platform that turns manuscripts into interactive reading, with voice narration, AI conversations about the book and support for several languages.

0→1
ChattyBook is an AI publishing platform built around the author. It turns a manuscript into interactive reading: readers listen to voice narration, ask the book questions in an AI conversation, and read in more than one language. Authors publish the same book as an e-book, an audiobook and an AI chat, earn directly and keep their rights.
Architecture and backend. I built the architecture and the backend on Express with Drizzle, with Firebase and Stripe.
The manuscript pipeline. The pipeline that takes an author’s manuscript and turns it into a book for readers, split into chunks with embeddings so the rest of the product can work across the whole text.
Voice narration. Narration with ElevenLabs, so every book can also be listened to.
AI conversations and translation. Readers ask the book questions and get answers grounded in its text, and the reading experience supports several languages.
Readers use a React app and authors upload manuscripts through their own tools. Both call one Express API that stores books, chunks and conversations through Drizzle. A question from a reader goes to the API, which finds the most similar chunks of the book, adds the spoiler-free context for the reader’s current page and the recent conversation, and streams the answer back from OpenAI. ElevenLabs produces the narration, Firebase supports the app, and Stripe takes payments.
3 decisions
The hardest constraint was length. A whole book can't go into one AI request, so manuscripts are split into chunks with embeddings. When a reader asks a question, the closest chunks are found by similarity and passed to the model with the recent conversation.
Along with the text chunks, the AI gets character profiles, concept profiles and chapter summaries for the book. They are filtered to the page the reader has reached, so a question about a character never gives away what happens later.
Each book uses an AI style, educational, fiction, mystery or custom, and the system prompt is built from it along with the reader's name, the title and the author.
Feature level
From the project record
Result
ChattyBook is live at chattybook.com. Authors publish a book as an e-book, an audiobook and an AI chat in one place, and ChattyBook's offer to them is 70% of every sale and their readers' emails.
Looking back
I would cache the generated audio and text earlier. Narration and AI-generated text take time and money every time they are produced. Storing each result the first time and serving it from the cache after that would have kept both down from the start.