Magnarr is a lightweight magnet-based download orchestrator.
It focuses only on:
- Ingesting magnet links
- Tracking torrent downloads
- Importing completed files
🚧 WARNING: Magnarr is not mature enough to be considered production-grade. Its API may change without notice. But feedbacks are welcomed 😉
Building Magnarr requires Git and the Rust toolchain:
git clone https://github.com/amimart/magnarr.git
cd magnarr
cargo build --release --lockedThe resulting binary is available at target/release/magnarr. It can also be
installed in Cargo's binary directory:
cargo install --path . --lockedPublished releases are available from the GitHub Container Registry:
docker pull ghcr.io/amimart/magnarr:latestThe repository includes a Docker Compose setup intended as a complete local development environment. It builds Magnarr from the current source tree and starts it alongside a preconfigured qBittorrent instance.
You need Docker with Docker Compose support and make. Then run:
git clone https://github.com/amimart/magnarr.git
cd magnarr
make local-init
make local-startThe initialization command creates the local deployment directories under
target/deploy/local and installs the development configuration files. The
Compose environment then:
- builds and starts Magnarr;
- starts qBittorrent with its Web UI and torrent port exposed;
- shares the same download directory between both services;
- provides a media directory where Magnarr can import completed downloads;
- persists Magnarr data and qBittorrent configuration on the host.
Once the services are running, the following interfaces are available:
- Magnarr GraphiQL interface: http://localhost:9393/graphql
- qBittorrent Web UI: http://localhost:8080
The local qBittorrent credentials are admin / adminadmin.
To inspect or stop the environment:
docker compose logs -f
make local-stopThis setup can be used as a starting point for a real deployment. Before doing so, use the published Magnarr image, pin image versions, replace the development credentials, choose persistent host paths, and protect the exposed interfaces. Magnarr and qBittorrent must retain access to the same download directory.
Initialize Magnarr before starting the service:
magnarr init
magnarr startThe init command creates Magnarr's home directory, writes a default
config.yaml, and initializes the embedded database. The start command then
loads this configuration and launches the service.
Magnarr keeps its configuration and internal data in a home directory. It uses
~/.magnarr by default; another location can be selected with --home or the
MAGNARR_HOME environment variable:
magnarr --home /srv/magnarr init
magnarr --home /srv/magnarr startThe configuration can be overridden through cmd flags.