{"bugs":{"url":"https://github.com/libp2p/js-libp2p-kad-dht/issues"},"dist":{"shasum":"264d9651d7a0ef1f6d8f0e2acf0444454a9b6706","tarball":"https://registry.npmjs.org/libp2p-kad-dht/-/libp2p-kad-dht-0.19.4.tgz","fileCount":98,"integrity":"sha512-5qgys2D5Fin7xt/dYIoFvNALkYmf9egvk3jZksdUC8b84QhlmWHfw5xgIr/PqXdltfaU6ScjpDjRYXKYRM2vMA==","signatures":[{"sig":"MEUCIHTw4HK6ognTHQ/2o842hHA93nyfi9c00Ma5KyENvLDoAiEAkwJ+NIP1OH/erY8PuKkspA60wG9iUXiV/VNq/A5w1TM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2030547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexPJ3CRA9TVsSAnZWagAAYasP/3K0GvwsH5JcSccsilnl\n5bd2LFHi8c7w7PaUnmKWzEv0Oegho3HctKR/eghb/SQOqEGpqry34SE5hf3O\nQQZwvle+IGy6KhaHfnMZCzPN2EHbc/e2KwZ9v1c9noU/eh3mmZe9tgQTCSTV\n7FU8ZOVX09fxwihneqiig+8C/InRklnuIb0o453k/Hlqpqxdl2TS5q+oojQG\nu/U+bFcEoU6sX1daEvD7qYw4IG1ymE6mHS/SLs5u0yknH3bRftKNqpsr17DZ\nups2i/T9GC5BUNH+1NwnTSJNnjz+IjvubKDZhGfgPjRduRPw/ZyXEamXvUKG\nFufS31kIQWbeTVMK+1WlV8f2xFmw7nv3daA0RYpYzhc1u6pyyWKKxeAe3303\nPGqzP4K5iyamoe/LtY4U+YyQie2+zAOIyQ6CCP2bP7NkO1JAexxVM5KKRsVT\nmFUI6ukMBDeZqfWQDNzJ2mkzXNzJnRuS4y+yDUv9mQUrbep9R9x5LlfW/yzc\nIxHQgteEKFr+RC0NO2tMBIE7xUOlb5FK9/UoXm0ahV+Skflc08vVfzyH5rsE\n2zylkU18719xADHyETy40TknTReQl+/vSbk4ZIzK2vYAbpuZgYG9ERKGrFUW\nbnPhodJnviB+pFAz9XwbiluoIJ10IlmiFkYWDRZxipCH5qZST/1an4ldTzCe\nlB3e\r\n=iGro\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","name":"libp2p-kad-dht","readme":"# js-libp2p-kad-dht\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discourse posts](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg)](https://discuss.libp2p.io)\n[![Build Status](https://travis-ci.org/libp2p/js-libp2p-kad-dht.svg?style=flat-square)](https://travis-ci.org/libp2p/js-libp2p-kad-dht)\n[![Coverage Status](https://coveralls.io/repos/github/libp2p/js-libp2p-kad-dht/badge.svg?branch=master)](https://coveralls.io/github/libp2p/js-libp2p-kad-dht?branch=master)\n[![Dependency Status](https://david-dm.org/libp2p/js-libp2p-kad-dht.svg?style=flat-square)](https://david-dm.org/libp2p/js-libp2p-kad-dht)\n[![Bundle Size](https://flat.badgen.net/bundlephobia/minzip/libp2p-kad-dht)](https://bundlephobia.com/result?p=libp2p-kad-dht)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n![](https://img.shields.io/badge/npm-%3E%3D3.0.0-orange.svg?style=flat-square)\n![](https://img.shields.io/badge/Node.js-%3E%3D6.0.0-orange.svg?style=flat-square)\n\n> JavaScript implementation of the Kademlia DHT for libp2p, based on [go-libp2p-kad-dht](https://github.com/libp2p/go-libp2p-kad-dht).\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n## Table of Contents\n\n- [Install](#install)\n  - [npm](#npm)\n  - [Use in Node.js](#use-in-nodejs)\n- [API](#api)\n- [Contribute](#contribute)\n- [License](#license)\n\n## Install\n\n### npm\n\n```sh\n> npm i libp2p-kad-dht\n```\n\n### Use in Node.js\n\n```js\nconst KadDHT = require('libp2p-kad-dht')\n```\n\n## API\n\nSee https://libp2p.github.io/js-libp2p-kad-dht for the auto generated docs.\n\nThe libp2p-kad-dht module offers 3 APIs: Peer Routing, Content Routing and Peer Discovery.\n\n### Peer Routing\n\n[![](https://raw.githubusercontent.com/libp2p/js-libp2p-interfaces/master/src/peer-routing/img/badge.png)](https://github.com/libp2p/js-libp2p-interfaces/tree/master/src/peer-routing)\n\n### Content Routing\n\n[![](https://raw.githubusercontent.com/libp2p/js-libp2p-interfaces/master/src/content-routing/img/badge.png)](https://github.com/libp2p/js-libp2p-interfaces/tree/master/src/content-routing)\n\n### Peer Discovery\n\n[![](https://raw.githubusercontent.com/libp2p/js-libp2p-interfaces/master/src/peer-discovery/img/badge.png)](https://github.com/libp2p/js-libp2p-interfaces/tree/master/src/peer-discovery)\n\n`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](https://github.com/libp2p/js-libp2p-interfaces/tree/master/src/peer-discovery).\n\n### Implementation Summary\n\nA [summary](docs/IMPL_SUMMARY.MD) of the algorithms and API for this implementation of Kademlia.\n\n## Contribute\n\nFeel free to join in. All welcome. Open an [issue](https://github.com/libp2p/js-libp2p-ipfs/issues)!\n\nThis repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\n\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/contributing.md)\n\n## License\n\nMIT - Protocol Labs 2017\n","engines":{"npm":">=6.0.0","node":">=10.0.0"},"gitHead":"57a0411c7b75a5ba7cf15cf8d50b590ba913ed25","license":"MIT","scripts":{"sim":"node test/simulation/index.js","docs":"aegir docs","lint":"aegir lint","test":"aegir test -t node","build":"aegir build","release":"aegir release --docs -t node","coverage":"aegir coverage","test:node":"aegir test -t node","release-major":"aegir release --type major --docs -t node","release-minor":"aegir release --type minor --docs -t node","coverage-publish":"aegir-coverage publish"},"_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"homepage":"https://github.com/libp2p/js-libp2p-kad-dht","keywords":["IPFS"],"pre-push":["lint"],"repository":{"url":"git+https://github.com/libp2p/js-libp2p-kad-dht.git","type":"git"},"_npmVersion":"6.14.4","description":"JavaScript implementation of the Kad-DHT for libp2p","directories":{},"maintainers":[{"name":"daviddias","email":"daviddias.p@gmail.com"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"}],"_nodeVersion":"12.16.3","contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"David Dias","email":"daviddias.p@gmail.com"},{"name":"Jacob Heun","email":"jacobheun@gmail.com"},{"name":"dirkmc","email":"dirkmdev@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},{"name":"Hugo Dias","email":"hugomrdias@gmail.com"},{"name":"John Hiesey","email":"jhiesey@cs.stanford.edu"},{"name":"Blake Byrnes","email":"blakebyrnes@gmail.com"},{"name":"Richard Schneider","email":"makaretu@gmail.com"},{"name":"ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ","email":"victorbjelkholm@gmail.com"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Lars Gierth","email":"larsg@systemli.org"},{"name":"Marcus Bernales","email":"mboperator@gmail.com"},{"name":"Pedro Teixeira","email":"i@pgte.me"},{"name":"Thomas Eizinger","email":"thomas@eizinger.io"}],"dependencies":{"cids":"~0.8.0","heap":"~0.2.6","async":"^2.6.2","debug":"^4.1.1","p-map":"^4.0.0","buffer":"^5.6.0","varint":"^5.0.0","hashlru":"^2.3.0","it-pipe":"^1.1.0","p-queue":"^6.2.1","p-times":"^3.0.0","peer-id":"~0.13.5","protons":"^1.0.1","err-code":"^2.0.0","k-bucket":"^5.0.0","p-filter":"^2.1.0","base32.js":"~0.1.0","multiaddr":"^7.4.3","p-timeout":"^3.2.0","multihashes":"~0.4.15","xor-distance":"^2.0.0","libp2p-crypto":"~0.17.1","libp2p-record":"~0.7.0","abort-controller":"^3.0.0","libp2p-interfaces":"^0.3.0","it-length-prefixed":"^3.0.0","multihashing-async":"~0.8.0","interface-datastore":"^1.0.2","promise-to-callback":"^1.0.0","streaming-iterables":"^4.1.1"},"_hasShrinkwrap":false,"leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","readmeFilename":"README.md","devDependencies":{"chai":"^4.2.0","aegir":"^22.0.0","delay":"^4.3.0","sinon":"^9.0.0","libp2p":"github:libp2p/js-libp2p#0.28.x","lodash":"^4.17.11","it-pair":"^1.0.0","p-defer":"^3.0.0","p-retry":"^4.2.0","dirty-chai":"^2.0.1","lodash.range":"^3.2.0","p-map-series":"^2.1.0","lodash.random":"^3.2.0","p-each-series":"^2.1.0","chai-checkmark":"^1.0.1","datastore-level":"^1.1.0","async-iterator-all":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/libp2p-kad-dht_0.19.4_1589965430461_0.10919147351849912","host":"s3://npm-registry-packages"},"_id":"libp2p-kad-dht@0.19.4","version":"0.19.4"}