# bootstrap-dht-yourself

> bootstrap dht without root nodes

Latest version **1.0.0** (published 2015-01-22) · WTFPL license · 0 weekly downloads

## Install

```sh
npm install bootstrap-dht-yourself
pnpm add bootstrap-dht-yourself
yarn add bootstrap-dht-yourself
bun add bootstrap-dht-yourself
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-01-22 |
| First published | 2015-01-22 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | maboiteaspam |
| Maintainers | maboiteaspam |

## Links

- npm: https://www.npmjs.com/package/bootstrap-dht-yourself
- npm.io page: https://npm.io/package/bootstrap-dht-yourself

## Dependencies (1)

- [bittorrent-dht](https://npm.io/package/bittorrent-dht.md) ^2.6.4

## Recent versions

- 1.0.0 (latest) — 2015-01-22

## README

# bootstrap DHT yourself - DHTY

Let you bootstrap DHT connection without root nodes.

```
var BOOTSTRAP_NODES = [
  'router.bittorrent.com:6881',
  'router.utorrent.com:6881',
  'dht.transmissionbt.com:6881'
]
```

Dirtily, it scans network randomly until it s able to find peers connected to the bittorrent DHT.

It scans for most commonly used port numbers according to https://dsn.tm.kit.edu/english/2936.php.

It may be longer than usual bootstrap nodes. But nothing unbearable according to my tests, few minutes at worst to find peers.


# API

It surrounds DHT constructor to instantiate and consume a DHT table to fill it. It then returns the table when it s ready.

See cli.js for runnable example.


For DHT please refer to https://github.com/feross/bittorrent-dht

# Why ?

To demonstrate this is possible because nowadays bittorent is so popular.

---
_Source: https://npm.io/package/bootstrap-dht-yourself · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
