Skip to content
amimartPublic

About

Magnarr - Magnet-based torrent download orchestrator

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Magnarr

Status Codecov lint build test

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 😉

Install

Build from source

Building Magnarr requires Git and the Rust toolchain:

git clone https://github.com/amimart/magnarr.git
cd magnarr
cargo build --release --locked

The resulting binary is available at target/release/magnarr. It can also be installed in Cargo's binary directory:

cargo install --path . --locked

Docker

Published releases are available from the GitHub Container Registry:

docker pull ghcr.io/amimart/magnarr:latest

Quickstart

The 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-start

The 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:

The local qBittorrent credentials are admin / adminadmin.

To inspect or stop the environment:

docker compose logs -f
make local-stop

This 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.

Usage

Initialize Magnarr before starting the service:

magnarr init
magnarr start

The 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 start

The configuration can be overridden through cmd flags.

About

Magnarr - Magnet-based torrent download orchestrator

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages