crocodilestick/Calibre-Web-Automated
Calibre-Web but Automated and with tons of New Features! Fully automate and simplify your eBook set up!
About crocodilestick/Calibre-Web-Automated
crocodilestick/Calibre-Web-Automated is an open-source project on GitHub, mainly written in JavaScript. Calibre-Web but Automated and with tons of New Features! Fully automate and simplify your eBook set up! It currently holds 6,702 stars and 0 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).
Project Overview
Git Homed tracks it on the Automation Agent Trending board and on the AI Automation Agent Trending list.
GitHub Repository Details
README
Calibre-Web Automated _(formerly Calibre-Web Automator)_

Making Calibre-Web your _dream_, all-in-one self-hosted digital library solution.
Supporting the Project ❤️
CWA is and always will be free and open source. If it makes your library life easier and you're able to support development, contributions go directly to:
- Testing hardware (ereader devices & tablets ect.)
- Development tools and infrastructure
- Coffee ☕ (lots of coffee)
_Quick Access_
- Features 🪄
- Releases 🆕
- Roadmap 🛣️
- How to Install: 📖
- Quick Install 🚀
- Docker-Compose 🐋⭐(Recommended)
- Users Migrating from stock Calibre Web 🔄
- Post-Install Tasks 🏁
- Default Login Credentials 🔑
- Usage 🔧
- Adding Books to Your Library
- KOReader Syncing (KOSync) 📖⚡
- OAuth Authentication Setup 🔐
- For Developers 🚀
- Further Development 🏗️
Why does it exist? 🔓
Calibre, while a fantastic tool for its age, has several problems when containerised, including its reliance on a KasmVNC server instance for the UI, which is near impossible to use on mobile and is relatively resource-heavy if you're running a small, lower power server like I am.
For many, Calibre-Web has really swooped in to save the day, offering an alternative to a containerised Calibre instance that's resource-light and with a much more modern UI to boot.
However, when compared to full-fat Calibre, it unfortunately lacks a few core features leading many to run both services in parallel, each serving to fill in where the other lacks, resulting in an often clunky, imperfect solution.
Goal of the Project 🎯
Calibre-Web Automated aims to be an all-in-one solution, combining the modern lightweight web UI from Calibre-Web with the robust, versatile feature set of Calibre, with a slew of extra features and automations thrown in on top.
CWA allows you to keep your ebook library accessible & organised and looks good while doing it 😎🦚
_Affiliated Projects_ 👬
Shelfmark: Book Downloader
- An intuitive web interface for searching and requesting book downloads, designed to work seamlessly with Calibre-Web-Automated. This project streamlines the process of downloading books and preparing them for integration into your Calibre library
[!IMPORTANT]
CWA does not approve of or support piracy of copyrighted materials and is not responsible for user behaviour
___
Calibre-Web Companion
- Built with Flutter and using Material You, Calibre Web Companion is an unofficial companion application for Calibre Web & Calibre Web Automated that allows you to browse your book collection and download books directly on your device, providing a much more modern, mobile-friendly UX than either service can currently provide on its own
Join our Community! ❤️
- I want to say a big thanks 🙏 to all the members of this community that have taken the time to participate in the testing and development of this project and we encourage anyone who would like to to contribute in some way. Anyone of any level is welcome and every little helps!
- For anyone that wish to contribute to this project in some way, please reach out on our Discord Server and see how you can best get involved:\
- Or alternatively make your own companion project, come hang out and or come get help if you're facing issues :)
🚨 Deploying on Network Shares (NFS/SMB) 🚨
- CWA now supports network-share deployments via
NETWORK_SHARE_MODE=true - This disables SQLite WAL on
metadata.dbandapp.dbto prevent locking issues - Skips recursive ownership changes that often fail on NFS/SMB
- Switches ingest/metadata watchers to a polling-based watcher for reliability
- Network shares are still slower than local disks, but are now fully supported with this mode enabled
Network shares and SQLite WAL mode
- CWA optimizes SQLite concurrency by enabling Write-Ahead Logging (WAL) on local disks.
- Some network filesystems (NFS/SMB) do not fully support WAL or reliable file locking, which can cause intermittent "database is locked" errors or corruption risks.
- If you are deploying on a network share, set the following environment variable to disable WAL:
NETWORK_SHARE_MODE=true
metadata.db and the app.db settings database. It also disables recursive ownership changes (chown) performed by init/maintenance scripts to avoid permission issues on network filesystems. Default is false (WAL enabled) for better performance on local disks.
File watching on network shares
- By default, CWA uses Linux
inotify(viainotifywait) to detect new files in the ingest folder with minimal latency and overhead. - On network shares (NFS/SMB), filesystem events can be unreliable or unavailable. When
NETWORK_SHARE_MODE=trueis set, CWA switches the ingest and metadata watcher services to a polling-based watcher that periodically scans for changes. This improves reliability on NAS/network mounts at the cost of slightly higher I/O and up to a few seconds of latency. - On Docker Desktop (Windows/macOS), the container runs on a LinuxKit/WSL2 VM and host-mounted paths may not propagate
inotifyevents reliably. CWA auto-detects Docker Desktop at startup and prefers the same polling watcher for reliability. - Advanced: You can also force polling regardless of share mode by setting
CWA_WATCH_MODE=poll.
Running behind multiple proxies (Cloudflare Tunnel, reverse proxy)
- CWA uses Werkzeug's ProxyFix middleware to properly handle
X-Forwarded-For,X-Forwarded-Proto, and other proxy headers. - By default, it trusts 1 proxy in the chain. If you have multiple proxies (e.g., Cloudflare Tunnel → nginx → CWA), set:
TRUSTED_PROXY_COUNT=2(or the total number of proxies in your chain)- Why this matters: Session protection validates requests based on the client's IP address. If ProxyFix doesn't trust enough proxies, it may see different IPs between requests, causing "Session protection triggered" warnings and forcing re-login.
- Troubleshooting: If you see frequent session protection warnings in logs, check your proxy chain depth and adjust this variable accordingly.
_Features:_
CWA supports all Stock CW Features:
| | | | | :---: | :---: | :---: | | Modern & responsive Bootstrap 3 HTML5 interface | Comprehensive user management with per-user permissions | OPDS feed for ereader apps | | eBook metadata editing and deletion support | Metadata download from various sources (extensible via plugins) | eBook download restriction to logged-in users | | Public user registration support | Send eBooks to E-Readers with a single click | Sync Kobo devices with your Calibre library | | In-browser eBook reading support for multiple formats | Content hiding based on categories and Custom Column content per user | "Magic Link" login for easy access on eReaders | | Enhanced OAuth 2.0/OIDC authentication with auto-discovery | Advanced search and filtering options | Multilingual user interface supporting 20+ languages |Plus these _CWA Specific Features_ on top:
Click a feature below to read about it in more detail:
| | | | | :---: | :---: | :---: | | Automatic Ingest Service ✨ | Automatic Conversion Service 🔃 | Automatic Enforcement of Covers & Metadata 👀📔 | | Batch Editing & Deletion 🗂️ | Automated Back Up Service 🔒 | Automated Setup Experience for New Users 🦮 | | Automatic EPUB Fixer Service 🔨 | Multi-Format Conversion Service 🌌 | Library Auto-Detect 📚🕵️ | | Smart Duplicate Detection & Management 🔍 | Magic Shelves 🪄📚 | Auto-Send to eReader 📧⚡ | | Automatic Metadata Fetch on Ingest 🏷️🤖 | Deep Stats & Analytics 📊✨ | Easy Dark/ Light Mode Switching ☀️🌙 | | Internal Update Notification System 🛎️ | Auto-Compression of Backed Up Files 🤐 | Additional Metadata Providers 🗃️ | | KOReader Syncing (KOSync) 📖⚡ | Enhanced OAuth 2.0/OIDC Authentication 🔐 | EPUB Fixer 2.0 📧✅ | | Automatic Hardcover ID Fetch 💜🤖 | Server Stats Tracking Page 📍 | Enhanced Send-to-eReader Modal ✉️ |
Automatic Ingest Service ✨
- CWA currently supports automatic ingest of 27 different popular ebook formats
- Users can configure the services behavior to ignore and/or have certain formats automatically converted to other formats in the Admin Panel
Automatic Conversion Service 🔃
- On by default though can be toggled off in the CWA Settings page, with EPUB as the default target format
- _Available target formats include:_ EPUB, MOBI, AZW3, KEPUB & PDF
- Upon detecting new files in the Ingest Directory, if any of the files are in formats the user has configured CWA to auto-convert to the current target format,
- The following 28 file types are currently supported:
- _.acsm, .azw, .azw3, .azw4, .mobi, .cbz, .cbr, .cb7, .cbc, .chm, .djvu, .docx, .epub, .fb2, .fbz, .html, .htmlz, .lit, .lrf, .odt, .pdf, .prc, .pdb, .pml, .rb, .rtf, .snb, .tcr, .txtz_
- _Note: .acsm requires an additional Calibre plugin_
Automatic Enforcement of Changes made to Covers & Metadata through the Calibre-Web UI! 👀📔
- In stock Calibre-Web, any changes made to a book's Cover and/or Metadata are only applied to how the book appears in the Calibre-Web UI, changing nothing in the ebook's files like you would expect
- This results in a frustrating situation for many CW users who utilise CW's Send-To-Kindle function, and are disappointed to find that the High-Quality Covers they picked out and carefully chosen Metadata they sourced are completely absent on all their other devices! UGH!
- CWA's Automatic Cover & Metadata Enforcement Feature makes it so that WHATEVER you changes you make to YOUR books, _are made to the books themselves_, as well as in the Web UI, making what you see, what you get.
Automated Back Up Service 🔒
- Worried what will happen if something goes wrong during one of CWA's automated functions? Don't be!
- By default, the originals all files processed by CWA are stored in
/config/processed_booksthough this can be toggled in the CWA Settings panel
Smart Duplicate Detection System & Management 🔍
- Hybrid SQL + fuzzy matching detects duplicates missed by traditional scans
- Post-ingest checks and scheduled incremental scans
- One-click merge, batch operations, and optional auto-resolution
- Configurable matching rules, thresholds, and format awareness
Magic Shelves 🪄📚
- Dynamic, rules-based shelves with rich filters and AND/OR logic
- Pre-built templates (Recent, Highly Rated, No Cover, Incomplete Series, etc.)
- Real-time updates with cached counts and tooltips
- Kobo sync support and optional tag-based syncing
Auto-Send to eReader 📧⚡
- Automatically email new books after ingest
- Configurable delay to allow metadata/enforcement/EPUB fixes first
- Format selection and multi-recipient sending
- Works with per-user settings and optional custom email subjects
Automatic Metadata Fetch on Ingest 🏷️🤖
- Optionally fetch and apply metadata automatically during ingest
- Provider hierarchy is respected with smart fallback
- Choose whether to overwrite existing fields or only fill missing data
- Works seamlessly with Auto-Send and EPUB Fixer workflows
Deep Stats & Analytics 📊✨
- Full analytics center with user activity, library, API usage, and time-based insights
- Export sections to CSV for offline analysis
- User-specific filtering and custom date ranges
- Interactive charts with dark-mode styling
Enhanced Send-to-eReader Modal ✉️
- Send to multiple devices at once
- Ad-hoc email addresses supported for sharing with friends, family or even temporary devices
Automatic EPUB Fixer Service 📧✅
- Ever had it where you're super excited to start reading your next book but for some reason, Amazon's Send-to-Kindle service just keeps rejecting it? Well no more!
- Originally developed by innocenat, this tool corrects the following potential issues for every EPUB processed by CWA:
- Fixes UTF-8 encoding problem by adding UTF-8 declaration if no encoding is specified
- Fixes hyperlink problem (result in Amazon rejecting the EPUB) when NCX table of content link to `` with ID hash.
- Detect invalid and/or missing language tag in metadata, and prompt user to select new language.
- Remove stray
tags with no source field. - Resolves several EPUB compatibility issues, such as UTF-8 encoding, hyperlink problems, invalid/missing language tags, and stray image tags.
- Repairs malformed language tags, XML declarations, and UTF-8 headers
- Cleans invalid NCX links, broken CSS/fonts, and stray image tags
- This ensures maximum comparability for each EPUB file with the Amazon Send-to-Kindle service and for those who don't use Amazon devices, has the side benefit of cleaning up your lower quality files!
- Enabled by default, with per-run backups in
/config/processed_books - Bulk processing of whole library with progress tracking available in the Admin Panel
Simple to use Multi-Format Conversion Service 🌌
- This utility gives the user the option to either keep a copy of the original of all converted files in
/config/processed_booksor to trust the process and have CWA simply convert and replace those files (not recommended) - Full usage details can be found here
Additional Metadata Providers 🗃️
- Users can now make use of isbndb.com's huge database when fetching metadata for the books in their library!
- Access is being provided via ibdb.dev thanks to a generous donation to the community by @chad3814
- Hardcover and Kobo metadata providers are supported, alongside new LitRes support
KOReader Syncing (KOSync) 📖⚡
Built-in KOReader progress sync with automatic book identification:- Book Identification: Auto-generates KOReader-compatible partial MD5 checksums for all books
- Unified Progress: Syncs KOReader → CWA reading status → Kobo devices
- Zero Config: Checksums generated on startup and import, no manual setup
- Modern Auth: RFC 7617 HTTP Basic Auth with existing CWA accounts
- Plugin Available: Download from
/kosyncendpoint on your CWA instance
Enhanced OAuth 2.0/OIDC Authentication 🔐
- Auto-Discovery: Automatic endpoint configuration via OIDC metadata URLs for seamless setup with providers like Keycloak, Authentik, Google, and Azure AD
- Manual Override: Full manual control over OAuth endpoints when auto-discovery isn't available
- Field Mapping: Configurable JWT field extraction for usernames and emails to work with any provider's token structure
- Group-Based Roles: Automatic admin role assignment based on OAuth provider groups
- Testing Tools: Built-in connection testing and validation to ensure your configuration works before going live
- Enterprise Ready: Support for custom scopes, multiple authentication methods, and comprehensive troubleshooting
- 📖 Full OAuth Configuration Guide for detailed setup instructions
Automatic Hardcover ID Fetch 💜🤖
- Background task auto-populates missing Hardcover IDs
- Configurable scheduling with progress tracking in Tasks
- Graceful handling of invalid tokens
Library Auto-Detect 📚🕵️
- Made to MASSIVELY simplify the setup process for both new and existing users alike
- New Users without existing Libraries: 🆕
- No library? No problem!
- New users without existing Calibre Libraries no longer need to copy and paste
metadata.dbfiles and point to their location in the Web UI, CWA will now automatically detect the lack of Library in your given bind and automatically create a new one for you! It will even automatically register it with the Web UI so you can really hit the ground running - New or Existing Users with Existing Libraries:
- Simply bind a directory containing your Calibre Library (search is done recursively so it doesn't matter how deep in the directory it is) and CWA will now automatically find it and mount it to the Web UI
- Should you bind a directory with more than 1 Calibre Library in it, CWA will intelligently compare the disk sizes of all discovered libraries and mount the largest one
- _CWA supports only one library per instance though support for multiple libraries is being investigated for future releases_
- _In the meantime, users with multiple libraries who don't want to consolidate them are advised to run multiple, parallel instances_
Internal Update Notification System 🛎️
- Users will now be automatically notified of the availability of new updates from within the Web UI
- Automatically triggered by a difference between the version number of the most recent GitHub release and the version installed
- Set to only show once per calendar day until updated as to not be annoying
- _Visible to Admin users only_
Manual Library Refresh ♻️
- Ever had books get stuck in the ingest folder after an unexpected power-cut ect.? Well say goodbye to having to manually copy the books to be ingested back in and out of the ingest folder, simply press the
Refresh Librarybutton on the navbar of the Web UI and anything still sitting in the ingest folder will be automatically ingested!
Auto-Compression of Backed Up Files 🤐
- Just before midnight each day, the CWA-Auto-Zipper service will automatically zip together all files processed that day.
- Minimises disk space usage and helps keep back up files as organised as possible
- __Enabled by default but can be disabled in the CWA Settings page in the Admin panel__
Batch Editing & Deletion! 🗂️🗄️
- Say goodbye to clicking that edit button again, and again, and again just to remove or edit a single series!
- To use, simply navigate to the
Books Listpage on the left hand side of the Web UI, select the books you wish to edit/ delete and use the buttons either above the table or within the headers to do whatever you need! - _Courtesy of @jmarmstrong1207_
Features Currently Under Active Development and on our Roadmap 🏗️🛣️
High Priority 🚨
- New Svelte-based frontend for a modern, faster UI
- New web reader (successor to epub.js) with better performance and features
- More robust, cross-device progress syncing (single source of truth)
- Full Text Search across the library
- Support for Calibre plugins (e.g., DeDRM)
- Split Libraries (metadata and books on separate paths)
- Integration with the Friendliest & Warmest Place on the Internet 🐭🧀
Lower Priority 🌱
- Notification system integrations (Telegram, Gotify, ntfy)
How To Install 📖
Quick Install 🚀
1. Download the Docker Compose template file using the command below:
curl -OL https://raw.githubusercontent.com/crocodilestick/calibre-web-automated/main/docker-compose.yml
2. Move the compose file to an empty folder (e.g. ~/docker/calibre-web-automated/docker-compose.yml). This will be used to store the server data and library
3. Edit the compose file using the comments to help, filling in your Timezone (optional) and desired binds
4. Navigate to where you downloaded the Compose file using cd and run:
docker compose up -d
And that's you off to the races! 🥳 HOWEVER to avoid potential problems and



