{"bugs":{"url":"https://github.com/libp2p/js-libp2p-kad-dht/issues"},"dist":{"shasum":"827556ea2aedf843bd4f389b0caa3477c5df4f36","tarball":"https://registry.npmjs.org/libp2p-kad-dht/-/libp2p-kad-dht-0.19.2.tgz","fileCount":98,"integrity":"sha512-hCizMulqKGY2L7DHs9rwHjtCdO2HKDh0ILdCGXCJY/wIryySqdfGPAND0xF0pOMUWTQ+t2xpJfHeck4bI8t+PQ==","signatures":[{"sig":"MEQCIDHAVSSdXBMWYKvfxyvv8kuMdp6XtsH+y7RsLs1vOpbCAiB7zJa1BIUy44EPyQ8E1LpqjuS2Yyw6Tlc6htEMFN1zmg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2030203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJep9J0CRA9TVsSAnZWagAAsYMP/iGBDR45l3acQ11RguAB\n0GLe4Nz8xk3gDyJDU4jCfxOHHORaOBonco3knfh0skLxpnts5Wb2AHL27gAM\nucDAWc/9RJCpBYDZsFOZDZpfa0PcvheJJtKAd8/Cvokic/Vn14VUKSUkwfyI\nxThFKiDQ0Kvwwnr6NUCJj6wz5TWj93WgnWTw2HW2KNXeQ4GHGYoMIXYJlH9W\n0ssG0F44gztIzSu9+DykUmd9SZshP1Isrs+6EgBramZgkxgr7vW96kyhhzjI\nNXxJzTR5dy7HtKhp69fAFuoCAxRcpUKSyOhTkmv3ioqtQcneWccTavDD4vSq\n+F8yq31W1Eeor3OJSUSYhggRPNvNbKiiLUCsM8+iMNnZnW8rw+Mt4YMj/Lym\nH6npdEd+yK7+rBg8QZShBF4zeywGloya40S47UP5P1c55dHhD2hCgpU4/UTq\nmncCN/U/CvO4vOOuWlcuNfN+3GhZUKQe8xYUxXGLgc4K1GAM89Mu4zSwsvht\nkNgP/Ptibwd7AuZBv9j3+6EbP6rixYfKKT620Chq7zvN9jgoDV+Fm0wLj5Ho\n8Vt+FkVFJ33wKSOJI71T68qaWZzCNlfrBx2UvsJQuG3yvDUaX3s8YrSisgH/\n+GBIhmXjz6HFHgb1RMQ6zXln7yWtsEAnzqsiQDipCOMDVaV6UniQaFKMEikl\n5CFd\r\n=h3Qw\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":"4599cd8b18e3ea7267690cc52d9e022112b4f523","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":"14.0.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":"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":"^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.2_1588056691473_0.39977289224967905","host":"s3://npm-registry-packages"},"_id":"libp2p-kad-dht@0.19.2","version":"0.19.2"}