# yann-shi/dht

BitTorrent DHT Protocol && DHT Spider.

Repository: https://github.com/yann-shi/dht
Canonical: https://ross.abutalabs.com/products/dht
Homepage: http://bthub.io
Language: Go
License: MIT
License Family: permissive
Topics: dht, spider, bittorrent-dht-protocol, go
Last push: 2021-08-17T01:48:19+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3678, "days_push": 1843, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2769, forks 479 (observed 2026-08-28T04:07:18.845751+00:00)

## What it is
A Go library implementing the BitTorrent DHT protocol (BEP-3, 5, 9, 10) with two modes: a standard DHT server and a crawling mode for harvesting torrent metadata. It can power BitTorrent search engines like BTDigg.

## Use cases
- run a standard BitTorrent DHT node in Go
- crawl the DHT network to collect torrent metadata
- build a BitTorrent search engine
- resolve infohashes to torrent metadata files
- listen for announce_peer events to discover active torrents

## When to choose
- you need a Go implementation of the BitTorrent DHT protocol
- you want to build a DHT crawler or torrent metadata indexer
- you need both standards-compliant and crawling modes

## When to avoid
- you need NAT traversal, which is not implemented
- you need a actively maintained project with recent releases
- you want a full BEP-3 implementation

## Facets
- artifact type: library
- maturity: maintenance
- function: networking, web-scraping, parser, p2p
- domain: networking, crawlers, developer-tools
- platform: go, windows, cross-platform
- tags: bittorrent, dht, metadata-crawler, spider, bep-5, magnet-links, search, linux, macos

## Member repositories
- yann-shi/dht (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:18.845751+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:16:41.843781+00:00, confidence not recorded.
  - readme: https://github.com/yann-shi/dht (fetched 2026-08-28T04:07:18.845751+00:00, sha e898b98cb972)
  - homepage: http://bthub.io (fetched 2026-08-29T09:56:09.141319+00:00, sha 1afad9553b24)
- Data as of 2026-08-30T08:39:29.467469+00:00.
