JavaScript implementation of the Kad-DHT for libp2p
Last updated a year ago by arve.knudsen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @arve.knudsen/libp2p-kad-dht 
SYNC missed versions from official npm registry.


Discourse posts Build Status Coverage Status Dependency Status Bundle Size js-standard-style standard-readme compliant

JavaScript implementation of the Kademlia DHT for libp2p, based on go-libp2p-kad-dht.

Lead Maintainer

Vasco Santos.

Table of Contents



> npm i libp2p-kad-dht

Use in Node.js

const KadDHT = require('libp2p-kad-dht')


See https://libp2p.github.io/js-libp2p-kad-dht for the auto generated docs.

The libp2p-kad-dht module offers 3 APIs: Peer Routing, Content Routing and Peer Discovery.

Peer Routing

Content Routing

Peer Discovery

libp2p-kad-dht provides a discovery service called Random Walk (random walks on the DHT to discover more nodes). It is accessible through dht.randomWalk and exposes the Peer Discovery interface.

Implementation Summary

A summary of the algorithms and API for this implementation of Kademlia.


Feel free to join in. All welcome. Open an issue!

This repository falls under the IPFS Code of Conduct.


MIT - Protocol Labs 2017

Current Tags

  • 0.15.3                                ...           latest (a year ago)

1 Versions

  • 0.15.3                                ...           a year ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (30)
Dev Dependencies (13)

Copyright 2014 - 2016 © taobao.org |