Skip to content

OpenLibrary in MongoDB with a backend for consumption by Readarr

Notifications You must be signed in to change notification settings

Saghen/open-library-proxy

Repository files navigation

open-library-proxy

Warning

This project is a work in progress and the Servarr team provides no support for it

Please reach out to @saghen via discord or via email at liamcdyer@gmail.com if you're interested in contributing

Serve a search, author and bulk API on top of the OpenLibrary corpus. Primarily for consumption by Readarr.

Development

This project requires a local installation of docker and bun.

Spin up the required services (MongoDB and MeiliSearch) by running docker-compose up (optionally add -d to run in the background). Alternatively, you may avoid docker compose by running the following equivalent commands:

docker run -d --name open-library-mongo -e MONGO_INITDB_ROOT_USERNAME=open-library-proxy -e MONGO_INITDB_ROOT_PASSWORD=stringsolongandpowerfulnoonecouldguessit -p 27017:27017 mongo:7
docker run -d --name open-library-meili -e MEILI_NO_ANALYTICS=true -e MEILI_MASTER_KEY=stringsolongandpowerfulnoonecouldguessit -p 7700:7700 getmeili/meilisearch:v1.9

Warning

You need ~100GB of free disk space to download and decompress the corpus. This initial dump and ingest will take quite a while.

Start the development environment:

bun install --frozen-lockfile
bun dev

Production