brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Guide: Shelfmark on Unraid, one search box for books that drops the file in Calibre-Web-Automated

Guide: Shelfmark on Unraid, one search box for books that drops the file in Calibre-Web-Automated

Guide unraid

9 steps 15 min read

Shelfmark is the search box in front of my book library. It is a self-hosted web interface where you look up a book or an audiobook, pick a release, and it downloads the file to a folder, ideally the folder your library tool watches. I run it on my Unraid server next to Calibre-Web-Automated. This guide sets it up on Unraid, points the downloads at the CWA ingest folder, switches on metadata search, adds sources and a download client, and locks it down. It also covers the image variants, audiobooks, the request system for other people, what breaks first and what Shelfmark is not.

Time
15 min
Steps
9
Updated
21 Nov 2026

You will learn

  • What it is, and what it is not
  • Install it on Unraid
  • Point the downloads at your library'…
  • Switch on metadata search
  • Add sources and a download client

Step 1 of 9: What it is, and what it is not

Shelfmark used to be called Calibre-Web-Automated Book Downloader. It is MIT licensed. Its README is clear about its scope: it is a manual search and download tool, the entry point to your library and not a library manager. It finds a book, downloads it and hands it to a destination. It does not edit or tag what you own, it does not watch authors for new releases, and it does not queue books that are not available yet. The README calls these non-goals, not missing features. It also says the project is feature stable and maintained on a best-effort basis: bug fixes, security updates and pull requests, but no roadmap for new features.

That is a fair deal if you know it up front. If you want something that watches an author and grabs every new book, this is the wrong tool. If you want one search box that sends the file to your library, it is a good one.

One thing needs saying before the setup. Shelfmark hosts and distributes nothing. It searches the sources and metadata providers you configure, and the README puts the responsibility on you: you must have the legal right to download what you access and follow the copyright law where you live. As I understand it, Dutch private-copy rules do not cover copies from an obviously illegal source, so use it for books you may legally get: public-domain books, books you bought, and sources where you have an account and the right to the file.

Screenshot of the Shelfmark repository page on GitHub with the MIT licence, the star count and the latest release
The Shelfmark project page

What you need

Docker, and memory. The standard image ships a real Chromium browser that it launches to get through Cloudflare checks for Direct Download. The README says 2 GB of RAM available to the container is a safe minimum and that 1 GB or less is where problems usually start. That only matters if you use Direct Download. Prowlarr, IRC and the audiobook sources do not start the browser.

There are three image variants, and it is worth choosing on purpose:

  • Standard: everything included, with the browser. The default, and the one the Unraid template uses.
  • Lite: no built-in browser automation. Meant for people who already run something like FlareSolverr, who use Prowlarr or IRC as sources, who use Shelfmark mostly for audiobooks, or who have too little memory for Chromium. Its compose file is docker-compose.lite.yml in the project’s compose folder.
  • Tor and WireGuard variants: separate compose files that route traffic through Tor or through a WireGuard tunnel with a kill switch. They need root startup and the NET_ADMIN and NET_RAW capabilities.

Step 2 of 9: Install it on Unraid

Shelfmark is in Community Apps, from Nodiaque’s repository. Search for shelfmark, install it, and look at the four paths and settings in the template. The image is ghcr.io/calibrain/shelfmark.

  • Config maps to /config: the settings, the database and the artwork cache. The template default is /mnt/user/appdata/shelfmark/config/.
  • Download path maps to /books: where finished books land. This is the important one, see step 2.
  • Client path is optional and only for torrent and Usenet downloads. It must match your download client’s path exactly, and you can delete it if you do not use those.
  • Web UI port is the project’s default, 8084, which you can change if it clashes.

The template’s user settings default to PUID 99 and PGID 100, the Unraid nobody user. If you use Docker Compose on another machine, the README’s route is two commands, and then you open the interface and configure everything there:

curl -O https://raw.githubusercontent.com/calibrain/shelfmark/main/compose/docker-compose.yml
docker compose up -d

Environment variables work for the first setup and for Docker deployments, and the README says they serve as defaults that you can override in the web interface. A setting you fix with an environment variable is locked in the interface, which the Unraid listing points out, so only pin what you really want pinned. The ones you will meet first:

FLASK_PORT=8084        # web interface port
INGEST_DIR=/books      # where downloads land
TZ=Europe/Amsterdam    # container timezone (default UTC)
SEARCH_MODE=universal  # direct or universal

One warning from the README for network mounts: CIFS shares need the nobrl mount option, or you get database lock errors. If your /config sits on an SMB share, that is the first thing to check.

Screenshot of the Shelfmark page in Unraid Community Apps with the Install button and the overview
Shelfmark in Community Apps

This is what you land on once it runs, here on my server: Shelfmark 1.7.0 and one search box, with links to the library, the activity list and the settings in the corner. I reach it over Tailscale, so it never leaves my tailnet. The link icon left of the box opens the search options: books, audiobooks or both together, and whether you search in general, by author, by title, by series or from a list.

Screenshot of the Shelfmark start page: the title Book Search and Download and one search box with a link icon on the left and a green search button
The start page: one search box

Step 3 of 9: Point the downloads at your library’s ingest folder

This is where Shelfmark becomes useful. The README’s tip is to point the download volume at the ingest folder of Calibre-Web-Automated or Grimmory, so books are imported automatically. I run CWA, so that is what I would do: make the /books mapping in Shelfmark the same host folder as CWA’s ingest folder. Shelfmark drops the file, CWA picks it up and adds it to the library. Neither of them has to know the other exists. The picture below shows the route from your search to the shelf.

Make sure both containers can read and write the folder. A wrong user is the usual reason a book arrives but never gets imported. Shelfmark can also run as a non-root user, 1000:1000, but then the mounted paths must already be writable by that user. In the default root-startup flow, PUID and PGID decide which user the files belong to, so match them to what CWA uses.

Two settings help here. Library Link adds links in the interface header to your Calibre-Web or Audiobookshelf. And Library Check marks the search results you already own, so you do not download a second copy. Library Check only reads your Calibre or Audiobookshelf library; it never changes it.

This is the Downloads page of my install. Output Mode is Folder, the Destination is /books, and File Organization is Rename Only. /books is the path inside the container from step 1, so the host folder behind that mapping decides where the books end up. Test Destination is the button to press after any change here: it checks that Shelfmark can create and write a file in that folder, which is where a permissions mistake shows up first.

Screenshot of the Shelfmark settings, Downloads page, with Output Mode set to Folder, the destination /books, a Test Destination button and File Organization set to Rename Only
Settings, Downloads: the destination is /books, the folder your library tool watches
Diagram: a search goes to Shelfmark, which uses metadata providers and your sources, and downloads into the books folder that is also the Calibre-Web-Automated ingest folder, which imports it into the library
From search box to library shelf

Shelfmark has two search modes. Direct searches the configured sources, which gives you the raw titles. Universal searches metadata providers first (Hardcover, Open Library, Google Books and a few national ones) and gives you proper covers, editions, and series, then finds releases for the book you pick. The README recommends Universal and lists it as the default value of SEARCH_MODE. The Unraid listing says the opposite, that it defaults to direct, so open the settings and check which one you are on.

Hardcover needs an API token. Create one at hardcover.app/account/api; the README says current keys start with hc_pat_. It also tells you which scopes to tick on the token screen:

  • read:catalog: metadata search, plus book, edition, author and series lookups
  • read:library: your reading status and shelf counts
  • read:lists: your lists and the books on them
  • read:me:content: the Test Connection button and the “Connected as” label
  • read:users: usernames shown next to lists
  • write:library: setting a book’s reading status from Shelfmark
  • write:lists: adding and removing books from lists, including the auto-remove on download

The two write scopes matter only if you set a reading status from Shelfmark or leave Auto-Remove from List on Download on, which it is by default. Without them those actions fail silently. The all scope works, but it also allows deleting the account, so I would take the list.

There is an optional extra worth knowing: Hardcover Sync pulls a Hardcover shelf of your choice in as requests and downloads the books without an admin picking a release. It is off by default, and it is the one background job in the project. I’d leave it off until the manual route works the way I want.

Screenshot of the Shelfmark settings, Search Mode page: Search Mode set to Universal and English and Dutch selected as default book languages
Settings, Search Mode: Universal, with English and Dutch as default languages

A warning from my own server, because it cost me a few minutes. Search Mode was Universal and the Book Metadata Provider was Hardcover. The Hardcover page said Test Connection worked and even showed my account name, yet every search ended in No results found. I called the search endpoint of Shelfmark directly and it answered 200 with an empty list, so the interface was telling the truth: Hardcover returned nothing. I did not find out why. A missing scope on the token, from the list above, is the first thing I would check, but I have not tested that.

The quick way out needs no key. Open Library is switched off by default in this version. I switched it on, pressed Test Connection, and set the Book Metadata Provider to Open Library, with audiobooks and combined mode set to use the book provider.

Screenshot of the Open Library page in the Shelfmark settings: Enable Open Library switched on and a green message that the connection to the Open Library API succeeded
Open Library needs no API key, and Test Connection says it works
Screenshot of the Universal Mode Settings in Shelfmark: Book Metadata Provider set to Open Library, audiobook and combined mode set to use the book provider
Book Metadata Provider is now Open Library; audiobooks and combined mode follow it

After that, a search for Moby Dick, a book in the public domain, gives a grid of covers with author, year, rating and a Get button. Open Library was a little moody, though: some searches came back empty at first and worked with fewer words or on a second try, for example pride prejudice instead of the full title. If a search is empty, shorten it before you suspect the setup.

Screenshot of the Shelfmark search results for Moby Dick: a grid of book covers with title, author, year, rating and a green Get button on each
Search results for Moby Dick with Open Library as the provider

Step 5 of 9: Add sources and a download client

Out of the box it works with some web sources and nothing else. In the settings you can add Prowlarr or Jackett for torrent and Usenet indexers, and a download client: qBittorrent, Transmission, Deluge, rTorrent, NZBGet, SABnzbd, a blackhole folder or a debrid service. There is IRC, Soulseek through slskd, and Webshare.cz with your own account too. If you already run Prowlarr and a download client, this is mostly pasting a URL and an API key. Remember the optional client path from step 1: Shelfmark and the client must see the same path, or the finished download cannot be found.

Choose sources you are allowed to use, as above. Shelfmark will not do that choice for you.

Get opens a two step dialog. Step one shows the book with its description, ISBN and a link to the provider page, and under it one tab per release source. On my server those are Direct Download, Prowlarr and Newznab. Prowlarr answered within seconds with a list of releases and their sizes; I blurred the indexer column. The Direct Download tab was still showing placeholder rows after half a minute, so that is the source whose logs I would check first. On my server I went a simpler way: I switched Direct Download off and made Prowlarr the default tab under Search Mode, so the arr apps do all the searching and the release list opens on results straight away. I downloaded nothing and only looked at the lists, with a public domain book.

Screenshot of the Shelfmark release dialog for Moby Dick: step 1 of 2, with tabs Direct Download, Prowlarr and Newznab and the first Prowlarr releases listed with their sizes
Get opens the release list, with one tab per source

Two smaller settings save time later. You can filter results by preferred formats and languages and set the sorting order, so the first hit is the one you would pick anyway. And file processing is template based: you can set the download path, rename files and create folders from a template, which is worth ten minutes if your library tool is picky about names.

Step 6 of 9: Audiobooks

Shelfmark treats audiobooks as a first-class thing, with its own search and dedicated processing. They can come from the same sources as ebooks, or from additional audiobook sources you configure. The README works with Audiobookshelf for the library side, and Library Link and Library Check both know about it.

Two details from the README that are easy to miss. IRC audiobooks usually arrive as ZIP or RAR archives, so keep those enabled under Supported Audiobook Formats, or the releases are filtered out of the results. And on IRC networks the audiobooks are mostly in the same channel as the ebooks, so leave the separate audiobook channel blank unless your network really has one.

Step 7 of 9: Lock it down, and share it

Authentication is optional but recommended as soon as more than you use it. Settings has a single username and password, proxy authentication where your reverse proxy sets a header such as X-Auth-User, OIDC single sign-on (Authelia, Authentik and Keycloak are named), and reuse of your Calibre-Web user database by mounting its app.db read-only:

volumes:
  - /path/to/calibre-web/app.db:/auth/app.db:ro

With any of them on, there are admin and user roles. Normal users see only their own downloads and can submit requests, and an admin can set per source whether people may download directly, must request, or are blocked. Users can also have their own download destination, email recipient and notification settings. That makes it usable for a household: they search and request, you approve.

The Security page of my install says No Authentication. That is fine for me, because the only way in is my tailnet, but it also has a side effect: the browser console logged that the request workflow is unavailable in no-auth mode. The request system needs one of the methods above. If other people will use it, pick one before you hand out the address.

Screenshot of the Shelfmark settings, Security page, with Authentication Method set to No Authentication
Settings, Security: Authentication Method is still on No Authentication here

With proxy authentication, make sure Shelfmark is not reachable directly, and that your proxy strips those headers from incoming requests; the README says both. For my own server I would not put it on the public internet at all. I’d reach it over my tailnet, with Tailscale Serve, which is one command.

For scripts there is an API with a static key, and for monitoring there is a health endpoint at /api/health that needs no login. Add it to your compose file:

healthcheck:
  test: ["CMD", "curl", "-sf", "http://localhost:8084/api/health"]
  interval: 30s
  timeout: 30s
  retries: 3

It answers 503 when the download coordinator, the part that picks up queued downloads, is not running. Without it every download stays queued, so a container that is unhealthy for this reason needs a restart.

Step 8 of 9: Logs, updates and the VPN variant

Logs are in docker logs on the container. If you set ENABLE_LOGGING=true, there are also files under /var/log/shelfmark/, which the Unraid template maps to a folder of your choice. The log level is under Settings, Advanced or in the LOG_LEVEL variable (DEBUG, INFO, WARNING, ERROR, CRITICAL). The variable wins over the setting, DEBUG=true forces debug level regardless of either, and changes take effect after a restart. Turn debug on when you chase a problem and off again afterwards.

Updating works like any Unraid container: check for updates on the Docker tab and apply. Your settings live in the config folder, so they survive. I’d glance at the project’s release notes first, because the README itself says it is maintained on a best-effort basis.

If you want all outgoing traffic through a VPN, the project has a WireGuard variant with a kill switch: if the tunnel drops, external traffic fails and the LAN stays reachable. It needs root startup and the NET_ADMIN and NET_RAW capabilities, and you mount a normal wg-quick config as wg0.conf in the config folder. The README goes into a lot of detail about DNS there, so read that section before you pick this route. The Tor variant is similar and needs the same capabilities; custom DNS and proxy settings are ignored while Tor is active.

Screenshot of the Shelfmark releases page showing the latest release notes
The latest Shelfmark release notes

Step 9 of 9: When it breaks

  • Every Direct Download fails with 403 detected; switching to bypasser followed by No download URL found. The README says this is usually Chromium failing to start because the container has too little memory. Check the container’s memory limit and the host’s free memory before you blame your provider or DNS.
  • A book downloads but never shows up in the library. Check that both containers use the same host folder and can write to it.
  • A torrent or Usenet download is found but never completes. The client path in Shelfmark does not match the client’s own path.
  • Database lock errors. CIFS share for /config without nobrl.
  • Hardcover actions do nothing. The token is missing a write scope. They fail silently, as the README says.
  • No results found, while Hardcover shows Connected. This happened on my own server: Test Connection was green and every search returned an empty list. Switch the Book Metadata Provider to Open Library to get going, then check the scopes of the token.
  • A source domain stopped working. The README says mirror availability changes, and it notes a domain that did not work when it was last checked in August 2026. Mirrors are something you maintain yourself.
  • The container reports unhealthy. The download coordinator is not running. Restart the container.
Table with the Shelfmark volumes, environment variables, memory requirement and health endpoint
The settings that matter on one screen

Further reading

Link