gitmyhub

reader3

Python ★ 3.8k updated 8mo ago

Quick illustration of how one can easily read books together with LLMs. It's great and I highly recommend it.

A small self-hosted app that lets you read EPUB books one chapter at a time, made for easily copying text into an AI chat to discuss what you just read.

Pythonuvsetup: easycomplexity 1/5

Reader3 is a small, self-hosted web app for reading EPUB books one chapter at a time on your own computer. The main idea behind it is convenience when reading alongside an AI assistant: because it shows one chapter at a time, you can easily select the text, copy it, and paste it into a conversation with a language model to discuss, summarize, or ask questions about what you just read.

To use it, you point it at an EPUB file from the command line. It processes the book and registers it to a local library folder. Then you start a local web server and visit it in your browser to see your library and read. Adding more books means running the same command with different files; removing a book means deleting its folder.

The project uses uv, a Python tool that handles dependencies without requiring a separate installation step. The README gives a short example using a free copy of Dracula downloaded from Project Gutenberg.

The author, Andrej Karpathy, describes this as something he built quickly for personal use, roughly 90 percent written with AI assistance, and shared as an example of how easy it is to build small tools this way. He is explicit that he does not intend to maintain or improve it. The code is provided as-is for others to read, run, or modify however they like.

Where it fits