A self-hosted library for your ebooks, comics, and audiobooks
Grimmory is a self-hosted digital library for people who take their reading seriously.
Documentation · Quick Start · Translations · Discord · Releases
| Feature | Description |
|---|---|
| Smart Shelves | Custom and dynamic shelves with rule-based filtering, tagging, and full-text search |
| Metadata Lookup | Covers, descriptions, reviews, and ratings pulled from Google Books, Open Library, and Amazon, all editable |
| Built-in Reader | Read PDFs, EPUBs, and comics in the browser with annotations, highlights, and reading progress tracking |
| Device Sync | Connect a Kobo, use any OPDS-compatible app, or sync progress with KOReader |
| Multi-User | Separate shelves, progress, and preferences per user with local or OIDC authentication |
| BookDrop | Drop files into a watched folder and Grimmory detects, enriches, and queues them for import automatically |
| One-Click Sharing | Send any book to a Kindle, an email address, or another user directly from the interface |
| Category | Formats |
|---|---|
| eBooks | EPUB, MOBI, AZW, AZW3, FB2 |
| Documents | |
| Comics | CBZ, CBR, CB7 |
| Audiobooks | M4B, M4A, MP3, OPUS |
[!TIP] For OIDC setup, advanced configuration, or upgrade guides, see the full documentation.
Requirements: Docker and Docker Compose.
| Registry | Image |
|---|---|
| Docker Hub | grimmory/grimmory |
| GitHub Container Registry | ghcr.io/grimmory-tools/grimmory |
Create a .env file:
# Application
APP_USER_ID=1000
APP_GROUP_ID=1000
TZ=Etc/UTC
# Database
DATABASE_URL=jdbc:mariadb://mariadb:3306/grimmory
DB_USER=grimmory
DB_PASSWORD=ChangeMe_Grimmory_2025!
# Optional: enable API docs + export OpenAPI JSON (defaults to false)
API_DOCS_ENABLED=false
# Storage: LOCAL (default) or NETWORK (disables file operations; see Network Storage section)
DISK_TYPE=LOCAL
# MariaDB
DB_USER_ID=1000
DB_GROUP_ID=1000
MYSQL_ROOT_PASSWORD=ChangeMe_MariaDBRoot_2025!
MYSQL_DATABASE=grimmory
Stable images are published from semantic-release tags on main as vX.Y.Z plus latest. Nightly images are built from develop and tagged nightly.
Create a docker-compose.yml or copy and adapt deploy/compose/docker-compose.yml:
services:
grimmory:
image: grimmory/grimmory:latest
# Convenience tag:
# image: grimmory/grimmory:<release-version>
# Alternative: ghcr.io/grimmory-tools/grimmory:<release-version>
# To build from source instead: comment out 'image' and uncomment below
# build: .
container_name: grimmory
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}
- API_DOCS_ENABLED=${API_DOCS_ENABLED}
- DISK_TYPE=${DISK_TYPE}
depends_on:
mariadb:
condition: service_healthy
ports:
- "6060:6060"
volumes:
- ./data:/app/data
- ./books:/books
- ./bookdrop:/bookdrop
healthcheck:
test: wget -q -O - http://localhost:6060/api/v1/healthcheck
interval: 60s
retries: 5
start_period: 60s
timeout: 10s
restart: unless-stopped
mariadb:
image: lscr.io/linuxserver/mariadb:11.4.5
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
docker compose up -d
Open http://localhost:6060, create your admin account, and start building your library. (All libraries must be created within directories mounted on the host, e.g. the /books/ directory in the sample docker-compose.yml above.)
Heap dumps are disabled by default. To enable them temporarily, add the following environment variable to the grimmory service:
services:
grimmory:
environment:
- JDK_JAVA_OPTIONS=-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/app/data
The JVM creates a PID-specific .hprof file in the mounted /app/data directory. Remove the option after collecting the diagnostic data because heap dumps can be large and contain sensitive application data.
iOS PWA: status bar color follows system appearance instead of reader theme
https://github.com/grimmory-tools/grimmory/issues/3305
Labels: needs-triage
No localisation of mail tempate when sending book througn Grimmory
https://github.com/grimmory-tools/grimmory/issues/3303
Labels: needs-triage
Give the bookdrop an interactive metadata search like the library
https://github.com/grimmory-tools/grimmory/issues/3298
Labels: backend, frontend, file management
For CBZ format comics, the 'BookLore' identifier still exists in the metadata ComicInfo.xml file. It is recommended to replace it with 'Grimmory'.
https://github.com/grimmory-tools/grimmory/issues/3297
Labels: needs-triage
GoodReads metadata provider returning 0 results (GraphQL 403 WAFForbiddenException)
https://github.com/grimmory-tools/grimmory/issues/3296
Labels: needs-triage
This document is for anyone considering opening a discussion, issue, or pull request, whether you're a first-time user reporting something broken or an experienced developer submitting code.
Grimmory uses a two-stage workflow designed to keep everyone's time well spent.
Discussions first. Ideas and support questions all start in GitHub Discussions. This is where problems get understood, ideas get shaped, and the community weighs in. Nothing is off the table at this stage. Discussions are where we figure out what's actually worth building.
Issues mean it's ready. When a discussion produces something clear and actionable, a maintainer will promote it to an issue. That's the signal that the work is agreed, scoped, and ready to be picked up. All open issues are automatically tracked in the Grimmory Roadmap, which reflects what the project is actually planning to do.
Please don't open pull requests against work that isn't in the issue tracker. This isn't gatekeeping. It's how we protect your time. A PR without a backing issue has no guarantee of direction, scope, or acceptance. Work that starts from an accepted issue gets a clear brief, prompt review, and a much higher chance of being merged.
If you have something you want to work on that isn't in the tracker yet, open a discussion first. We'll work through it together.
Projects like Grimmory run entirely on the energy of people willing to show up and help, and we're genuinely glad you're here. Every bug report, reproduced issue, tested fix, or submitted feature makes a real difference to the people who use this every day.
That said, the codebase is large, technically complex, and currently moving fast. There's meaningful work happening across architecture, cleanup, and capability, and that pace creates a real risk of well-intentioned contributions pulling in different directions or landing in areas mid-change. These guardrails aren't here to make contributing feel difficult. They exist so that when you put in the effort, it lands well, gets a proper review, and doesn't get lost or closed for reasons that had nothing to do with the quality of your work.
The fastest path to a merged contribution is to find an issue, ask questions if you need to, and build something that fits the shape of what's been agreed. We'll meet you there.
All issues in the Grimmory issue tracker are actionable. Pick one and
start working on it. If you need help or guidance, comment on the issue. Issues that are especially
friendly to newcomers are tagged good first issue.
Please use the Grimmory Crowdin project for
non-English localization work. Crowdin's hosted GitHub integration tracks develop, shows missing
and outdated strings, and sends translation updates back as reviewed pull requests.
When translating, preserve placeholders exactly, such as {{ name }}, {{ count }}, and
{{ provider }}. Do not translate placeholder names. Keep HTML tags intact when they appear in a
source string, and translate naturally for your language rather than copying English phrasing word
for word.
Do not hand-edit non-English translations in regular code pull requests unless explicitly requested to do so by a maintainer. Do not pre-fill other languages' localizations with English. Empty target strings make it easier to surface those keys for translators than copied English.
Developers should add and change source strings in frontend/src/i18n/en.json. Each top-level key
is a Transloco domain. When adding a new source-string domain, add a top-level key block to the
English file; other locales pick it up automatically through the English fallback until translations
arrive.
Search [existing discussions][discussions] and [closed issues][closed-issues] first. Your issue may already have been reported or fixed.
[!NOTE] If an open discussion already covers your problem, please don't add a "me too" comment. Use the upvote button on the discussion or an emoji reaction on the relevant post instead. This shows your support without notifying every participant by email.
If it hasn't been reported, open a [Bug Report Issue][bug] and fill in the template completely. The information it asks for is what contributors need to investigate. Skipping fields slows things down for everyone.
[!WARNING] A common mistake is to post a bug in the wrong category. If you're experiencing unexpected behaviour, use [a Bug Report][bug] and not [Q&A][qa] or [**Feature Requests &