On GitHub, anacrolix/torrent has picked up 6.1k stars, Backend, Go. Full-featured BitTorrent client package and utilities
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
This repository implements BitTorrent-related packages and command-line utilities in Go. The emphasis is on use as a library from other projects. It's been used 24/7 in production by downstream services since late 2014. The implementation was specifically created to explore Go's concurrency capabilities, and to include the ability to stream data directly from the BitTorrent network. To this end it supports seeking, readaheads and other features exposing torrents and their files with the various Go idiomatic io package interfaces. This is also demonstrated through torrentfs.
There is support for protocol encryption, DHT, PEX, uTP, WebTorrent, WebSeeds, BitTorrent v2, holepunching, and many more features and BEPs. There are several data storage backends provided: blob, file, bolt, mmap, and sqlite, to name a few. You can write your own to store data for example on S3, or in a database.
Some noteworthy package dependencies that can be used for other purposes include:
go-utp
dht
bencode
tracker
Changelog
See CHANGELOG.md for a detailed list of changes by version.
Installation
Install the library package with go get github.com/anacrolix/torrent, or the provided cmds with go install github.com/anacrolix/torrent/cmd/...@latest. Installing by import path like this runs in Go's module-aware mode and ignores the repository's go.work file, so it works without checking out any git submodules.
Building from a checkout
The repository includes a Go workspace (go.work) that adds the possum storage backend. possum is vendored as a git submodule at storage/possum/lib, and the workspace references the Go module inside it (storage/possum/lib/go). Building from a clone of this repository (for example go build ./...) therefore requires the submodule to be checked out, otherwise Go fails with an error like:
cannot load module storage/possum/lib/go listed in go.work file: open storage/possum/lib/go/go.mod: no such file or directory
Alternatively, disable the workspace by setting GOWORK=off, though the possum storage backend won't be available in that case.
Library examples
There are some small examples in the package documentation.
Routing peer connections through a SOCKS5 proxy
To dial peers through a SOCKS5 proxy, add the dialer.Socks5 dialer to the client. Start from the default config and set DialForPeerConns to false so the SOCKS5 dialer is the only one used for outgoing peer connections:
The proxy is used for outgoing peer connections; listening for incoming
connections is unaffected.
Mentions
@anacrolix is interviewed about this repo in Console 32.
Downstream projects
There are several web-frontends, sites, Android clients, storage backends and supporting services among the known public projects:
confluence: torrent client as a HTTP service
Gopeed: Gopeed (full name Go Speed), a high-speed downloader developed by Golang + Flutter, supports (HTTP, BitTorrent, Magnet) protocol, and supports all platforms.
bitmagnet: A self-hosted BitTorrent indexer, DHT crawler, content classifier and torrent search engine with web UI, GraphQL API and Servarr stack integration.
Erigon: an implementation of Ethereum (execution layer with embeddable consensus layer), on the efficiency frontier.
Mangayomi: Cross-platform app that allows users to read manga and stream anime from a variety of sources including BitTorrent.
autobrr: autobrr redefines download automation for torrents and Usenet, drawing inspiration from tools like trackarr, autodl-irssi, and flexget.
TorrServer: Torrent streaming server over http
exatorrent: Elegant self-hostable torrent client
distribyted: Distribyted is an alternative torrent client. It can expose torrent files as a standard FUSE, webDAV or HTTP endpoint and download them on demand, allowing random reads using a fixed amount of disk space.
See torrent metainfo --help for other metainfo related commands.
torrentfs
torrentfs mounts a FUSE filesystem at -mountDir. The contents are the torrents described by the torrent files and magnet links at -metainfoDir. Data for read requests is fetched only as required from the torrent network, and stored at -downloadDir.
No homepage URL was recorded for anacrolix/torrent in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Is anacrolix/torrent open source?
Yes — anacrolix/torrent ships under the MPL-2.0 license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/anacrolix/torrent.
What else is in the Backend space?
anacrolix/torrent is tracked by TopGit under the Backend category, alongside 7 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is anacrolix/torrent?
anacrolix/torrent (anacrolix/torrent) is a Go project on GitHub. From the project's own README: Full-featured BitTorrent client package and utilities
What license does anacrolix/torrent use?
anacrolix/torrent is released under the MPL-2.0 license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about anacrolix/torrent?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/anacrolix/torrent is the definitive source.
Why is anacrolix/torrent categorized under Backend?
TopGit places anacrolix/torrent in the Backend category based on its GitHub topics and description (tagged: "bittorrent", "go", "magnet-link"). Categories are assigned from real repository metadata, not editorial guesswork.
Read full README in the tab above.
Want a second opinion on torrent?
Ask an AI that can read this page — one click and you get its take on torrent.