BookLore是一款开源的自托管电子书管理应用,可以对图书进行组织管理,内置的阅读器可以实现在线阅读并进行高亮或笔记操作、阅读、标注,支持从网络获取图书元数据,并提供了多种跨设备同步和共享方式。
主要功能有:
电子图书管理:支持导入和管理pdf、epub、mobi、azw3、cbz等格式的电子图书,并可以设置自定义规则实现智能书架
内置阅读器:支持在浏览器中在线浏览图书文件,可以添加笔记、高亮、记录阅读进度,并对阅读进行统计分析
元数据获取:支持从亚马逊、Google Books、Open Library等提供商获取图书的封面、ISBN、标题、简介、评分等元数据
设备间同步与共享:支持连接Kobo、使用兼容OPDS的应用、与KOReader同步,可以通过电子邮件发送图书
用户管理与权限分配:支持多用户登录,管理自己专属的书架、阅读进度和偏好设置,支持本地认证或OIDC认证
本教程采用Docker安装方式,先创建文件夹并授权,不然上传不了图书:
mkdir /home/booklore && cd /home/booklorechown -R 1000:1000 /home/booklore/
获取Docker安装相关脚本:
wget https://git.ossdate.com/fivemoons/oss-scripts/raw/branch/main/booklore/.envwget https://git.ossdate.com/fivemoons/oss-scripts/raw/branch/main/booklore/docker-compose.yml
运行:
docker compose up -d稍等几分钟容器都变成healthy后,使用浏览器打开6060端口:
创建第一个账户为管理员账户:
03BookLore使用篇创建书库:
上传图书支持的格式有pdf、epub、cbz、cbr、cb7、fb2、mobi、azw、azw3、m4b、m4a、mp3、opus:
上传完毕在书库名称后选择“重新扫描书库”刷新:
任选一本图书打开,可以在线浏览:
查看目录:
添加高亮或笔记:
修改主题和排版样式:
BookDrop是BookLore的一个自动化程序,默认每10分钟扫描一次,官方解读如下:
博主的理解是,将文件拖拽至电子书目录(默认为/bookdrop)后,无需手动操作,后台会自动寻找元数据丰富图书信息,然后管理员在前端将其归类即可:
之前介绍TaleBook的时候提到过OPDS,BookLore也有OPDS功能,在设置-启用,再新建一个用户,就可以使用支持OPDS的软件(比如KOReader、Thorium)进行远程访问了:
BookLore is an open-source, self-hosted ebook management application that organizes and manages books. It includes a built-in reader for online reading, highlighting, and note-taking, supports fetching book metadata from the web, and offers various cross-device synchronization and sharing options.
Key features include:
Ebook Management: Supports importing and managing PDFs, EPUBs, MOBIs, AZW3s, CBZs, and other formats, with customizable rules for intelligent shelving.
Built-in Reader: Enables online browsing of book files in the browser, allowing for note addition, highlighting, progress tracking, and statistical analysis of reading data.
Metadata Retrieval: Fetches cover images, ISBNs, titles, descriptions, ratings, and other metadata from providers like Amazon, Google Books, and Open Library.
Device Sync and Sharing: Connects to Kobo readers, syncs with compatible OPDS applications and KOReader, and allows for book sending via email.
User Management and Permissions: Supports multi-user login with private shelves, progress tracking, and preference settings, using local or OIDC authentication.
This tutorial uses Docker for installation. First, create a folder and grant permissions to ensure book uploads work correctly.
Obtain the Docker installation script:
Run the command:
Wait a few minutes until all containers show "healthy," then open port 6060 in a browser.
Create the first account as an administrator.
Set up a library (Book Collection).
Upload books in supported formats (PDF, EPUB, CBZ, CBR, CB7, FB2, MOBI, AZW, AZW3, M4B, M4A, MP3, OPUS).
After uploading, click "Rescan Collection" next to the library name to refresh the catalog.
Select and open a book to view it online.
Browse the table of contents.
Add highlights or notes.
Customize the theme and layout style.
BookDrop is an automation tool within BookLore that scans the specified directory every 10 minutes. The official description states:
Essentially, this allows you to drag files into the ebook directory (default /bookdrop), and the system will automatically enrich their metadata. Afterward, you can assign them to appropriate shelves in the front-end interface.
Regarding OPDS, which was mentioned in the TaleBook introduction, BookLore also supports it. Enable OPDS in the settings, create a new user, and you can then access the collection remotely using applications like KOReader or Thorium.