Điểm qua anacrolix/torrent: 6.1k sao trên GitHub, viết chủ yếu bằng Go, thuộc nhóm Backend. Full-featured BitTorrent client package and utilities
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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.
Có — anacrolix/torrent phát hành theo license MPL-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/anacrolix/torrent.
anacrolix/torrent có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho anacrolix/torrent. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
anacrolix/torrent dùng license gì?
anacrolix/torrent phát hành theo license MPL-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
anacrolix/torrent là gì?
anacrolix/torrent (anacrolix/torrent) là dự án Go trên GitHub. Theo mô tả gốc: Full-featured BitTorrent client package and utilities
Cùng nhóm Backend còn repo nào?
anacrolix/torrent thuộc nhóm Backend trên TopGit, cùng 7 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về anacrolix/torrent ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/anacrolix/torrent là nguồn chính thức.
Vì sao anacrolix/torrent được xếp vào nhóm Backend?
TopGit xếp anacrolix/torrent vào nhóm Backend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "bittorrent", "go", "magnet-link"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về torrent?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về torrent.