{"bugs":{"url":"https://github.com/libp2p/js-libp2p-kad-dht/issues"},"dist":{"shasum":"b3c55d8adead9f0876862435ef799c498e29525d","tarball":"https://registry.npmjs.org/libp2p-kad-dht/-/libp2p-kad-dht-0.19.0.tgz","fileCount":98,"integrity":"sha512-8/uEu4w5hoWUnJsC2FauwKlOkIKFswSJKypkjnzqyUBb5yDJeI+XcSzaxe2JDySXsDwXTdNcBvl2qtXqpMGGkg==","signatures":[{"sig":"MEQCICoFAGN7v90pLqZJX4ejnrwWJduGSC6U6Nd7Lwgwk9JFAiAqH2N2MM8kOu2tY6hBD4QgKO6pyAwVpZEEcDCp5Wf9kg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2028902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoo17CRA9TVsSAnZWagAArAQQAJKReF9cq1SKVHWGdrUH\nFo1zO48Y46VI7vXYOVROb1gAU+7ENbNMcSo5FAOnb6TVuoe6DG5QoU1MfO+9\nR3dTh6ntJGtUqj3aWiH5xpU79NvD1lkay839BieZLsQjACIlmWiSGDhPqP1L\nbVU18tECGdPDLNLzgRBtU3F7f7b4emZhSWclY75ZjYoN19sDoBChWf5UZklv\nzp7r/Wtk7YiFUr2M8xgosQdoP57orZ+6ltDZv7jqtoyF4B5m+9/AHSVR4hzq\njhQTo16i1Iie8fdfMf/IjJEbIqpfD7lF4UDvftt9WBNQE0EyrVCWFgcJdM2i\nF/ylpGQhxmbFiV8XngDrk6+yTlaih+dAmdkPpAnMGEfL4/KHgH5Sb0J4NmDi\npJLKBINs+SxfCRNiZ3hZo7vYDXh20FmpRMmxP85YgX0PSNkgqF+TEseh5Jtq\nGBpAIdposjTQpNK2zaR9NZAf0bsr9jtOMeTR3RqULVcOaC3ul2L7Kx2FTrFp\n4eWuxXkKxIhRf700mPw8ZdDtRnzOf9DJp3+l8ISmvRt471HrtynAEOabHl5V\nscNl/HkaJIXwsA3c3qiA8OCOG+m7ksHfkVf7NPdD+8omiRcpaZEG4hQnQnn4\n6VXBBpf9gTgrnYoLONiejzO+O/u9IrVSi/rtryuv3aqnC3/OncQjtRr94mb+\nAcsA\r\n=jG/P\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":"42eb5ebfb6c5359698af7cec8fcda68411c6115a","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.13.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.14.0","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":"Richard Schneider","email":"makaretu@gmail.com"},{"name":"Blake Byrnes","email":"blakebyrnes@gmail.com"},{"name":"John Hiesey","email":"jhiesey@cs.stanford.edu"},{"name":"Hugo Dias","email":"hugomrdias@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","varint":"^5.0.0","hashlru":"^2.3.0","it-pipe":"^1.1.0","p-queue":"^6.2.1","p-times":"^2.1.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":"~0.8.0","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":"^21.0.2","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":"~0.14.1","async-iterator-all":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/libp2p-kad-dht_0.19.0_1587711354720_0.8265764573911274","host":"s3://npm-registry-packages"},"_id":"libp2p-kad-dht@0.19.0","version":"0.19.0"}