I had this idea that a “Recap” button would be a nice addition to an ereader. Too many times, I start a book only to put it down for weeks or months. Coming back to it, I often have no clue what’s happening.
The idea here is that a recap button appears when opening the book. After clicking it, we pass the context of the previous chapters to an LLM for summarization. To save on costs, I think we’d be smart about what context is passed: e.g. maybe only a few chapters if it hasn’t been too long since they last picked it up.
While building this, I started thinking the inverse would be nice. For boring, long-winded chapters, having a way to skip to the end and summarize would be helpful.
This proof of concept was built using Vercel’s AI SDK. It took a little extra work to get it running in Protobox. Eventually, I figured out how to use Edge Functions with Vite. It required adding a functions block to vercel.json.




