* fix: support reading alternative book formats using bookType query param * feat: add streaming reader support for alternative EPUB formats * refactor: extract tabs section into MetadataTabsComponent * feat: implement per-file reading progress tracking * feat: add configurable format priority with cascading fallback * refactor: redesign library creator with single-page layout * refactor: unify reading progress into ReadingProgressService * refactor: improve delete options with clearer file format and book deletion * refactor: improve book format matching with normalization and fuzzy fallback * feat: add folder-based audiobook support with ZIP downloads and preparing state * fix: display unique format types in metadata viewer * refactor: auto-attach files to single book in folder during rescan * feat: implement folder-centric book file grouping with fuzzy matching * refactor: consolidate book grouping with organization mode support * fix: use folder hash for folder-based audiobooks in auto-attach * fix: delete only BookFileEntity on file removal, not entire book * fix: set folderBased flag and correct file size for auto-attached audiobook folders * fix: use count query to avoid lazy initialization in file delete handler * fix: preserve book metadata when file is moved by detecting hash match * fix: skip books with no files in restoration to avoid NPE * fix: round all progress percentages to one decimal place before sending to UI * style: improve library creator dialog spacing and layout * fix: migrate FOLDER_AS_BOOK to BOOK_PER_FOLDER for backwards compatibility * fix: FileMoveService now handles multi-file BookEntity properly * style: redesign metadata-picker and file-mover UI components * style: redesign file-naming-pattern UI and improve theme contrast * style: relax spacing in library-creator component * style: tighten directory-picker layout for consistency * fix: PathPatternResolver now respects folderBased flag for audiobooks * style: move checkmark column to left side and add pending status in file-mover * refactor: consolidate BookFileType into BookType and add audiobook styling * feat: show 'Continue Reading' button for in-progress books * fix: preserve dots in folder names during grouping and prevent duplicate attachments * style: reduce gap between download-all button and primary file section * style: shorten 'Continue Reading' button to 'Read' on mobile * feat: add DISK_TYPE config to disable file moves on network storage * style: standardize settings pages with shared styles and consistent spacing * style: revamp settings pages with modern card-based layouts * style: revamp OPDS, auth, and task management settings layouts * fix: update FileMoveService tests to include AppProperties parameter * fix: derive BookFileType from extension when uploading additional book files * feat: show format type and size in download button with dropdown for alternatives * feat: add audiobook streaming player with HTTP Range support * feat: add M4B chapter extraction and chapter navigation * feat: add audiobook bookmarks and sleep timer * refactor: split AudiobookReaderService into focused services * feat: add Media Session API for background audio playback * feat: display file extensions in format tags with distinct colors and add audiobook upload support * feat: require bookFileId for viewer settings API * fix: show split button for audiobooks with readable alternatives * feat: improve reading sessions table with book type badges and better formatting * feat: add audiobook play button in files tab * feat: use file extension for format display and meaningful tab values * feat: add extension field to BookFile DTO * feat: use extension field for book card format pill * fix: use mixed orientation for format priority drag-drop to support multi-line layout * feat: add attach book files feature to consolidate single-file books * fix: increase drag handle size for format priority chips * fix: add missing BookFileRepository mock to BookServiceDeleteTests * feat: add delete buttons to files tab and move shelf to other items menu * feat: add physical books support for cataloging books without digital files * refactor: redesign icon-picker component with improved styling * refactor: redesign metadata-picker component with improved layout and alignment * refactor: move Add Physical Book to top of library menu * refactor: use p-autoComplete for authors/categories in add-physical-book dialog * feat: add square cover search and display support for audiobooks * fix: navigate to first page when opening unread ebooks * fix: exclude API requests from service worker interception * feat: support fileless books with automatic file attachment * fix: bypass service worker for audiobook streaming requests * refactor: remove alphabetical filter sorting, default to count, limit filters to 100 --------- Co-authored-by: acx10 <acx10@users.noreply.github.com>
470 lines
12 KiB
Markdown
470 lines
12 KiB
Markdown
<div align="center">
|
|
|
|
# 📚 BookLore
|
|
|
|
### *Your Personal Library, Beautifully Organized*
|
|
|
|
**🌐 Official Website: [https://booklore.org](https://booklore.org/)**
|
|
|
|
<p align="center">
|
|
<img src="assets/demo.gif" alt="BookLore Demo" width="800px" style="border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);" />
|
|
</p>
|
|
|
|
[](https://github.com/booklore-app/booklore/releases)
|
|
[](LICENSE)
|
|
[](https://github.com/booklore-app/booklore/stargazers)
|
|
[](https://hub.docker.com/r/booklore/booklore)
|
|
|
|
[](https://discord.gg/Ee5hd458Uz)
|
|
[](https://opencollective.com/booklore)
|
|
|
|
---
|
|
|
|
**BookLore** is a powerful, self-hosted web application designed to organize and manage your personal book collection with elegance and ease. Build your dream library with an intuitive interface, robust metadata management, and seamless multi-user support.
|
|
|
|
[🚀 Get Started](#-getting-started-with-booklore) • [📖 Documentation](https://booklore.org/docs/getting-started) • [🎮 Try Demo](#-live-demo-explore-booklore-in-action) • [💬 Community](https://discord.gg/Ee5hd458Uz)
|
|
|
|
</div>
|
|
|
|
---
|
|
|
|
<div align="center">
|
|
|
|
## ✨ **Features That Make BookLore Shine**
|
|
|
|
</div>
|
|
|
|
<table>
|
|
<tr>
|
|
<td width="50%">
|
|
|
|
### 📖 **Library Management**
|
|
|
|
- **Smart Organization**: Custom shelves with powerful filters
|
|
- **Magic Shelves**: Dynamic, auto-updating collections
|
|
- **Auto Metadata**: Rich details from multiple sources
|
|
- **Advanced Search**: Find any book instantly
|
|
|
|
</td>
|
|
<td width="50%">
|
|
|
|
### 🌐 **Connectivity**
|
|
|
|
- **Kobo Integration**: Seamless device sync
|
|
- **OPDS Support**: Connect any reading app
|
|
- **KOReader Sync**: Cross-platform progress tracking
|
|
- **Email Sharing**: One-click book sending
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="50%">
|
|
|
|
### 👥 **User Experience**
|
|
|
|
- **Multi-User Support**: Granular permissions
|
|
- **Flexible Auth**: Local or OIDC providers
|
|
- **Mobile Ready**: Responsive on all devices
|
|
- **Built-in Reader**: PDFs, EPUBs, comics
|
|
|
|
</td>
|
|
<td width="50%">
|
|
|
|
### 🚀 **Smart Features**
|
|
|
|
- **BookDrop Import**: Auto-detect bulk files
|
|
- **Private Notes**: Personal reading annotations
|
|
- **Community Reviews**: Enriched book data
|
|
- **Progress Tracking**: Reading statistics
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
---
|
|
|
|
<div align="center">
|
|
|
|
## 💖 **Support the Project**
|
|
|
|
</div>
|
|
|
|
<div align="center">
|
|
|
|
Your support helps BookLore grow and improve! 🌱
|
|
|
|
<table>
|
|
<tr>
|
|
<td align="center" width="33%">
|
|
|
|
### ⭐ **Star Us**
|
|
|
|
Give us a star to show your support and help others discover BookLore!
|
|
|
|
[](https://github.com/booklore-app/booklore)
|
|
|
|
</td>
|
|
<td align="center" width="33%">
|
|
|
|
### 💰 **Sponsor**
|
|
|
|
Support development, hosting, and testing costs
|
|
|
|
[](https://opencollective.com/booklore)
|
|
|
|
</td>
|
|
<td align="center" width="34%">
|
|
|
|
### 📢 **Spread the Word**
|
|
|
|
Share BookLore with fellow book lovers and developers!
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
> 🎯 **Current Goal:** Raising funds for a **Kobo device** to implement native Kobo sync support
|
|
> [💡 Support the Kobo Sync Bounty →](https://opencollective.com/booklore/projects/kobo-device-for-testing)
|
|
|
|
</div>
|
|
|
|
---
|
|
|
|
<div align="center">
|
|
|
|
## 🎮 **Live Demo: Explore BookLore in Action**
|
|
|
|
</div>
|
|
|
|
<div align="center">
|
|
|
|
Experience BookLore's features in a live environment before deploying your own instance!
|
|
|
|
| 🌐 Demo URL | 👤 Username | 🔑 Password |
|
|
|----------------------------------------------------|-------------|--------------------|
|
|
| **[demo.booklore.org](https://demo.booklore.org)** | `booklore` | `9HC20PGGfitvWaZ1` |
|
|
|
|
> ⚠️ **Note:** Demo account has standard user permissions only.
|
|
> Admin features (user management, library setup) require a self-hosted instance.
|
|
|
|
</div>
|
|
|
|
---
|
|
|
|
<div align="center">
|
|
|
|
## 🚀 **Getting Started with BookLore**
|
|
|
|
### Choose Your Path
|
|
|
|
<table>
|
|
<tr>
|
|
<td align="center" width="50%">
|
|
|
|
### 📘 **Documentation**
|
|
|
|
Guides for installation, setup, features, and more
|
|
|
|
[](https://booklore.org/docs/getting-started)
|
|
|
|
*Contribute to the docs at: [booklore-docs](https://github.com/booklore-app/booklore-docs)*
|
|
|
|
</td>
|
|
<td align="center" width="50%">
|
|
|
|
### 🐳 **Quick Deploy**
|
|
|
|
Get up and running in minutes with Docker
|
|
|
|
[](#-deploy-with-docker)
|
|
|
|
*Easiest way to self-host BookLore*
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
---
|
|
|
|
<div align="center">
|
|
|
|
## 🐳 **Deploy with Docker**
|
|
|
|
</div>
|
|
|
|
### **Prerequisites**
|
|
|
|
Ensure you have [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/) installed.
|
|
|
|
<details>
|
|
<summary><b>📦 Image Repositories</b></summary>
|
|
|
|
- 🐳 **Docker Hub:** `booklore/booklore`
|
|
- 📦 **GitHub Container Registry:** `ghcr.io/booklore-app/booklore`
|
|
|
|
> 💡 Legacy images at `ghcr.io/adityachandelgit/booklore-app` remain available but won't receive updates.
|
|
|
|
</details>
|
|
|
|
### **Step 1️⃣: Create Environment Configuration**
|
|
|
|
Create a `.env` file in your project directory:
|
|
|
|
```ini
|
|
# 🎯 BookLore Application Settings
|
|
APP_USER_ID=0
|
|
APP_GROUP_ID=0
|
|
TZ=Etc/UTC
|
|
BOOKLORE_PORT=6060
|
|
|
|
# 🗄️ Database Connection (BookLore)
|
|
DATABASE_URL=jdbc:mariadb://mariadb:3306/booklore
|
|
DB_USER=booklore
|
|
DB_PASSWORD=ChangeMe_BookLoreApp_2025!
|
|
|
|
# 💾 Storage type: LOCAL (default) or NETWORK. Set to NETWORK if using NFS/SMB - this disables file reorganization features to prevent data corruption.
|
|
DISK_TYPE=LOCAL
|
|
|
|
# 🔧 MariaDB Container Settings
|
|
DB_USER_ID=1000
|
|
DB_GROUP_ID=1000
|
|
MYSQL_ROOT_PASSWORD=ChangeMe_MariaDBRoot_2025!
|
|
MYSQL_DATABASE=booklore
|
|
```
|
|
|
|
### **Step 2️⃣: Create Docker Compose File**
|
|
|
|
Create a `docker-compose.yml` file:
|
|
|
|
```yaml
|
|
services:
|
|
booklore:
|
|
image: booklore/booklore:latest
|
|
# Alternative: Use GitHub Container Registry
|
|
# image: ghcr.io/booklore-app/booklore:latest
|
|
container_name: booklore
|
|
environment:
|
|
- USER_ID=${APP_USER_ID}
|
|
- GROUP_ID=${APP_GROUP_ID}
|
|
- TZ=${TZ}
|
|
- DATABASE_URL=${DATABASE_URL}
|
|
- DATABASE_USERNAME=${DB_USER}
|
|
- DATABASE_PASSWORD=${DB_PASSWORD}
|
|
- BOOKLORE_PORT=${BOOKLORE_PORT}
|
|
depends_on:
|
|
mariadb:
|
|
condition: service_healthy
|
|
ports:
|
|
- "${BOOKLORE_PORT}:${BOOKLORE_PORT}"
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./books:/books
|
|
- ./bookdrop:/bookdrop
|
|
healthcheck:
|
|
test: wget -q -O - http://localhost:${BOOKLORE_PORT}/api/v1/healthcheck
|
|
interval: 60s
|
|
retries: 5
|
|
start_period: 60s
|
|
timeout: 10s
|
|
restart: unless-stopped
|
|
|
|
mariadb:
|
|
image: lscr.io/linuxserver/mariadb:11.4.5
|
|
container_name: mariadb
|
|
environment:
|
|
- PUID=${DB_USER_ID}
|
|
- PGID=${DB_GROUP_ID}
|
|
- TZ=${TZ}
|
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
|
- MYSQL_USER=${DB_USER}
|
|
- MYSQL_PASSWORD=${DB_PASSWORD}
|
|
volumes:
|
|
- ./mariadb/config:/config
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: [ "CMD", "mariadb-admin", "ping", "-h", "localhost" ]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
```
|
|
|
|
### **Step 3️⃣: Launch BookLore**
|
|
|
|
```bash
|
|
docker compose up -d
|
|
```
|
|
|
|
### **Step 4️⃣: Access Your Library**
|
|
|
|
Open your browser and navigate to:
|
|
|
|
**🌐 http://localhost:6060**
|
|
|
|
🎉 **Welcome to your personal library!**
|
|
|
|
---
|
|
|
|
<div align="center">
|
|
|
|
## 📥 **BookDrop: Automatic Import**
|
|
|
|
### *Drop Files, Import Automatically*
|
|
|
|
</div>
|
|
|
|
BookLore's **BookDrop** feature automatically detects and processes book files dropped into a designated folder.
|
|
|
|
### **How It Works**
|
|
|
|
```mermaid
|
|
graph LR
|
|
A[📁 Drop Files] --> B[🔍 Auto-Detect]
|
|
B --> C[📊 Extract Metadata]
|
|
C --> D[✅ Review & Import]
|
|
```
|
|
|
|
1. **File Watcher**: Monitors the BookDrop folder continuously
|
|
2. **Auto-Detection**: Processes new files and extracts metadata
|
|
3. **Metadata Enrichment**: Fetches details from Google Books, Open Library
|
|
4. **Review & Finalize**: Review, edit, and import to your library
|
|
|
|
### **Docker Configuration**
|
|
|
|
Add the BookDrop volume to your `docker-compose.yml`:
|
|
|
|
```yaml
|
|
services:
|
|
booklore:
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./books:/books
|
|
- ./bookdrop:/bookdrop # 👈 BookDrop magic happens here
|
|
```
|
|
|
|
---
|
|
|
|
<div align="center">
|
|
|
|
## 🤝 **Community & Support**
|
|
<table>
|
|
<tr>
|
|
<td align="center">
|
|
|
|
### 🐞 **Bug Reports**
|
|
|
|
Found an issue?
|
|
|
|
[](https://github.com/booklore-app/booklore/issues/new?template=bug_report.yml)
|
|
|
|
</td>
|
|
<td align="center">
|
|
|
|
### 💡 **Feature Req**
|
|
|
|
Have an idea?
|
|
|
|
[](https://github.com/booklore-app/booklore/issues/new?template=feature_request.yml)
|
|
|
|
</td>
|
|
<td align="center">
|
|
|
|
### 🤝 **Contribute**
|
|
|
|
Join development!
|
|
|
|
[](CONTRIBUTING.md)
|
|
|
|
</td>
|
|
<td align="center">
|
|
|
|
### 💬 **Chat**
|
|
|
|
Join community!
|
|
|
|
[](https://discord.gg/Ee5hd458Uz)
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
---
|
|
|
|
<div align="center">
|
|
|
|
## 📊 **Project Analytics**
|
|
|
|
### Repository Activity
|
|
|
|

|
|
|
|
### ⭐ Star History
|
|
|
|
<a href="https://www.star-history.com/#booklore-app/booklore&type=date&legend=top-left">
|
|
<picture>
|
|
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=booklore-app/booklore&type=date&theme=dark&legend=top-left" />
|
|
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=booklore-app/booklore&type=date&legend=top-left" />
|
|
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=booklore-app/booklore&type=date&legend=top-left" width="600" />
|
|
</picture>
|
|
</a>
|
|
|
|
</div>
|
|
|
|
---
|
|
|
|
<div align="center">
|
|
|
|
## 👨💻 **Contributors**
|
|
|
|
### Thanks to all our amazing contributors! 🙏
|
|
|
|
[](https://github.com/booklore-app/booklore/graphs/contributors)
|
|
|
|
**Want to see your face here?** [Start contributing today!](CONTRIBUTING.md)
|
|
|
|
</div>
|
|
|
|
---
|
|
|
|
<div align="center">
|
|
|
|
## 🌟 **Sponsors**
|
|
|
|
### Thank you to our amazing sponsors!
|
|
|
|
<a href="https://www.pikapods.com/pods?run=booklore">
|
|
<img src="https://www.pikapods.com/static/run-button.svg" alt="Run on PikaPods" height="40">
|
|
</a>
|
|
|
|
<a href="https://docs.elfhosted.com/app/booklore">
|
|
<img src="https://docs.elfhosted.com/images/logo.svg" alt="ElfHosted" height="40">
|
|
</a>
|
|
|
|
*Become a sponsor and get your logo here! [Support us on Open Collective](https://opencollective.com/booklore)*
|
|
|
|
</div>
|
|
|
|
---
|
|
|
|
<div align="center">
|
|
|
|
## ⚖️ **License**
|
|
|
|
**GNU Affero General Public License v3.0 (AGPL-3.0)**
|
|
|
|
Copyright © 2024-2026 BookLore
|
|
|
|
[](https://www.gnu.org/licenses/agpl-3.0.html)
|
|
---
|
|
|
|
<sub>Made with ❤️ by the BookLore community</sub>
|
|
|
|
**[⬆ Back to Top](#-booklore)**
|
|
|
|
</div>
|