• josh.earth
  • ← All projects

    E-Paper EPUB Reader

    An embedded Rust EPUB reader for ESP32 based e-paper devices.

    Personal · 2026

    As an experiment, I wrote put together an e-reader to test out the LilyGo T5 E-Paper S3 Pro, a cheap open source device with an e-paper screen. It has a compact Rust EPUB parser to read books on device, resolves the EPUB spine, and extracts chapter text for pagination on the device.

    For displaying the books, I built a small HTML text renderer with TrueType fonts and the Iris UI toolkit. Page-at-a-time navigation suits the slow e-paper display, but it's too slow for fast scrolling and jumping forward through the book. To address this I built a tiny page panel that shows up when the user holds down the page up and down button. The tiny page panel refreshes only a tiny area of the screen, making the paging experience much better.

    This project was also an experiment in LLM assisted coding. Though I had previously built the Iris UI toolkit by hand, the e-reader app was entirely LLM coded. Rust has proven to be a very good language for agentic coding. I found the key to getting good output is robust tests and concrete performance goals.

    An e-paper reader displaying a chapter from Moby-Dick