BookRat
April 2, 2025 ยท View on GitHub
A terminal user interface (TUI) EPUB reader written in Rust.
Features
- Browse and select EPUB files from the current directory
- Read EPUB content with proper formatting
- Navigate between parts
- Scroll through content
- Preserve text formatting (paragraphs, emphasis, quotes, etc.)
- Debug mode for troubleshooting text formatting issues
Installation
- Make sure you have Rust installed (https://rustup.rs/)
- Clone this repository
- Build the project:
cargo build --release
Usage
- Run the application:
cargo run - Create a
booksdirectory in the same directory as the executable (where you runcargo runfrom). Place your.epubfiles inside thisbooksdirectory. - Use the following controls:
j/k: Navigate file list or scroll contenth/l: Navigate between partsTab: Switch between file list and content viewEnter: Select a file to readd: Toggle debug mode (in content view) to see raw text with visible special charactersq: Quit the application
Dependencies
- ratatui: Terminal user interface library
- crossterm: Cross-platform terminal manipulation
- epub: EPUB file parsing
- anyhow: Error handling
- simplelog: Logging
- regex: Regular expressions
License
MIT License