Back to services

bitmagnet

BitTorrent indexer, DHT crawler, content classifier and torrent search engine with web UI, GraphQL API and Servarr stack integration.

View alternatives to bitmagnet
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

bitmagnet is a self-hosted BitTorrent indexer and torrent search engine with a built-in DHT crawler and content classifier. It crawls the DHT (Distributed Hash Table) network directly and discovers torrents on its own, without relying on any external trackers or torrent index sites, so it can keep adding new content entirely by itself.

⚠️ According to the official documentation, the project is currently in Alpha and may contain bugs. The API and database schema may also change before the 1.0 release.

How It Works

Many BitTorrent clients can enable DHT, which lets them find nodes announcing a given torrent hash through the distributed hash table, without going through a centralized tracker. DHT has another lesser-known property: it can be crawled. This is how bitmagnet's DHT crawler works:

  1. Crawl the DHT network to discover info hashes;
  2. Request the metadata for each info hash from the network;
  3. Use the classifier to identify the content and link it to known works (such as movies and TV series);
  4. Store the results in the index so users can search them.

Main Features Implemented

  • DHT crawler and protocol implementation: the project's most distinctive core feature
  • General-purpose BitTorrent indexer: besides DHT, it can also index torrents from other sources. Currently this is only possible through the /import endpoint, for example to import RARBG backup data
  • Highly customizable content classifier: recognizes many content types as well as attributes such as language, resolution and source (BluRay, WebRip, etc.), and enriches results with data from sources such as The Movie Database (TMDB)
  • Torrent search engine
  • GraphQL API: currently provides one search query, with a built-in GraphQL Playground at the /graphql path
  • Web UI: built with Angular, with a responsive layout and support for multiple languages
  • Torznab-compatible endpoint: can be connected as an indexer to Servarr tools (Sonarr, Radarr, Prowlarr, etc.)
  • WebUI dashboard: for monitoring and management
  • Data management: supports reprocessing and reclassification, as well as backup, restore and merging; there are also observability and telemetry features

Planned Features

  • Authentication, API keys and tiered access permissions (there is currently no built-in authentication, so take care not to expose the service directly to the public internet when deploying)
  • Saved search criteria for generating custom feeds
  • Two-way integration with Prowlarr: for now bitmagnet can only act as an indexer for Prowlarr; with two-way integration, it could fetch content from any indexer configured in Prowlarr
  • Longer-term ideas: seeding in place, integration with popular BitTorrent clients, federated indexing between instances, and support for the BitTorrent v2 protocol

Target Users and Use Cases

  • Self-hosting enthusiasts who want to build a private torrent search engine without depending on public index sites
  • Home media server users who use tools such as Sonarr, Radarr and Prowlarr to automatically manage movie and TV content
  • Developers or researchers interested in the DHT network and the BitTorrent ecosystem
  • Users who need to import and search existing torrent datasets (such as RARBG backups)

Deployment

bitmagnet is designed for self-hosting. The Setup section of the official documentation includes installation and configuration instructions, and deploying with Docker / Docker Compose is generally recommended. Refer to the official documentation for the exact steps and required services.

Things to Note

  • The project is still in Alpha, so you may run into database schema changes when upgrading
  • The DHT crawler continuously uses network bandwidth and storage space; the larger the index, the more resources it consumes
  • The crawled content comes from the entire public DHT network and has not been manually reviewed, so please use it in accordance with local laws and regulations
  • The project is open source on GitHub, can be sponsored through OpenCollective, and the community chats on Discord