# webtorrent/bittorrent-dht

🕸 Simple, robust, BitTorrent DHT implementation

Repository: https://github.com/webtorrent/bittorrent-dht
Canonical: https://ross.abutalabs.com/products/bittorrent-dht
Homepage: https://webtorrent.io
Language: JavaScript
License: MIT
License Family: permissive
Topics: bittorrent-dht, javascript, dht-protocol, nodejs, webtorrent, torrent, bittorrent, peer, p2p, dht
Last push: 2026-08-06T15:33:36+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 61, longevity 100
- inputs: {"age_days": 4679, "days_push": 27, "days_rel": 100, "gap_med": 140.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1279, forks 207 (observed 2026-08-28T04:04:13.505355+00:00)

## What it is
A Node.js library implementing the BitTorrent DHT protocol (BEP 5) for trackerless peer discovery, with support for BEP44 arbitrary data storage. It is the peer-discovery layer used by WebTorrent and other torrent tools.

## Use cases
- find peers for a torrent without a tracker
- implement a trackerless torrent client in Node.js
- store and retrieve arbitrary data in the BitTorrent DHT (BEP44)
- resolve magnet URI info hashes to peer addresses
- build peer-to-peer file sharing applications
- run a custom DHT node with custom bootstrap servers

## When to choose
- you need spec-compliant BitTorrent DHT peer discovery in JavaScript/Node.js
- you want a well-tested library used in production by WebTorrent
- you need BEP44 mutable/immutable data storage in the DHT

## When to avoid
- you need a full torrent client rather than just peer discovery
- you are not working in a JavaScript/Node.js environment
- you need WebRTC-based browser peer transport (use WebTorrent instead)

## Facets
- artifact type: library
- maturity: active
- function: p2p, networking, rpc
- domain: networking, microservices, developer-tools
- platform: -
- tags: bittorrent, dht, peer-discovery, bep44, trackerless-torrents, udp, nodejs, javascript

## Member repositories
- webtorrent/bittorrent-dht (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:13.505355+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-30T05:02:43.041161+00:00, confidence not recorded.
  - readme: https://github.com/webtorrent/bittorrent-dht (fetched 2026-08-28T04:04:13.505355+00:00, sha df3edf69ce15)
  - homepage: https://webtorrent.io (fetched 2026-08-29T12:13:38.028771+00:00, sha bc9de1481dcf)
  - site_page: https://webtorrent.io/docs (fetched 2026-08-29T12:13:38.032058+00:00, sha 28b3bfe003c6)
  - registry_npm: https://registry.npmjs.org/bittorrent-dht (fetched 2026-08-29T12:13:38.038256+00:00, sha 060776378c41)
  - site_page: https://webtorrent.io/faq (fetched 2026-08-29T12:13:38.035715+00:00, sha cb059616fd40)
- Data as of 2026-08-30T08:39:29.467469+00:00.
