futurepress/epub.js — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a browser based EPUB reader using this library. I want to be able to open an epub file or load one from a URL, read it in the page, and move through the book like a normal ebook reader.

Please include the basic reader controls, next and previous page, table of contents if the book has one, responsive sizing so it works on desktop and mobile, and a choice between paginated reading and continuous scrolling. It should remember where I left off in the book when I come back.

Keep it simple and clean visually, more like a lightweight demo app than a full bookstore. If the EPUB has images and normal book formatting, preserve them as much as the library allows. Also add a small example book or default sample URL so I can test it immediately.

Use the existing project setup and examples as guidance, and look up the current docs online if you need to.

Want more depth? Deep Reverse