A lightweight web-based EPUB reader with scroll navigation, page transitions, dark mode, and font size adjustments.... Designed for a seamless e-reader experience directly in a browser, by connecting to the server PHP installed on a Raspeberry PI or other arm/pc home-server.
- 📚 Upload & Delete EPUBs from the server (
index_reader.php) from /ebooks sub-folder (usually in /var/www) - 📖 Read EPUBs in the browser (
reader.php) - 🔄 Navigation Buttons to scroll page by page
- 🌙 Dark Mode toggle (saves preference)
- 🔍 Font Size Adjustment (+/- buttons)
- 📜 Auto Page Switch when reaching bottom/top
- ⬆ Previous Page when reaching top
- 🎯 Mobile Optimized for small screen & preventing bad gesture (to avoid selecting by better handing)
- ...
- PHP 7.4+
- Web server (Apache, Nginx)
unzipcommand installed
cd /var/www #or other place define in PHP config
git clone https://github.com/YOUR-USERNAME/epub-reader.git
cd epub-readerPoint your web server to the epub-reader directory.
Simply open your browser and go to:
http://your-server/epub-reader/index_reader.php
- Click
Upload EPUB - Select an
.epubfile from your device - The file will be stored in
/ebooks/folder - [ if you have api for cloudconvert (get it free), the epub file will be converted to mobi file usable by Kindle reader. ]
- Choose a file from the dropdown
- Click
Open Book
- ⬅ Left Button → Scroll up (previous section)
- ➡ Right Button → Scroll down (next section)
- Next Page Loads when reaching the bottom
- Previous Page Loads when reaching the top
DARKbutton → Toggle dark mode+INCR/-DECR→ Adjust font sizeNAVbutton → Show/hide navigation buttons📚 MENU→ Return to index for ebook selection
Feel free to fork, submit PRs, or suggest improvements! 🚀
MIT License - Free to use and modify.
