{"bugs":{"url":"https://github.com/libp2p/js-libp2p-kad-dht/issues"},"dist":{"shasum":"91d1d72ea10b2551f9e8ad144b728d0ee55a0809","tarball":"https://registry.npmjs.org/libp2p-kad-dht/-/libp2p-kad-dht-0.19.3.tgz","fileCount":98,"integrity":"sha512-wYoOumQlQOXRJ7L7agXFr1NN/EvVCoO2cMq/d+PpRBxUAuRPAa3Q1ysTMc5Km3iCdPtOd+cvuC7yV8LbchPqFg==","signatures":[{"sig":"MEYCIQDlK7tcTEqHv5Fqu2wb8Q7D4Cplb/ZVBM25dHf5GmzleQIhAMO09fuvkhzwnsKCMGKFPyL9qgyCemCw+rWfgOb5LS1W","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2030427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevsJfCRA9TVsSAnZWagAA3mcP/1wY0YBjtiBsASK23Wm+\nQhOGaZ/7RYZj+tOJ4aBzzal5DzT1mgmov2B8VGRPapAT3UATdWVIb6WcPv/Z\nRwlSF1QUFDL4UPTuRM7jD7MA97J0q8MWIMVSYpN0LAtU8bHQS7bIs6mII4wB\n8v1EveJT4RBMV2g+AlvKE8Nham7p8sGhZHP+kewmAVx0Kt0b9AbSAxsVU7zE\n9Ml17Mb9H7ieqtjhhZ+UsbLn5FF7Vyv/ZXJfqSvnDGFXdWSyzeN37IuA0k2S\ntWtG4nF1BLdrB4uBygFWyyKK0EMk4u51dqb8Htse+GbD8o0ZR1qJh4Q+HIAd\niilIn+qIDGBLAZ3sb741jybxOXN7UfG3N8k4BR9gvD09iwN0c51PVGXiz5bx\nzRLZflcq2xr5pn/QciIDJBY/6ePmb52x1ao6LXejDo3q7mQ5dxwkuUgdjX8x\nUyQ1XbVN195HOaiFio63uFqIWKASMDqk7nmNy6tlyKI1VCDR3hhOqSKS/FTp\nECRM+kM10+jTfSTUS4dyBifTJHq4HV9wBq8GID00ldjkgYa3oW/FaunAnUt8\n+p9x/HpEV2+JIeZXLSyaV4GVb/RJ6/LGkNoOhE7KpdU/8CzcB2AWQbNkbusc\nGSafwWoa9s1NoV7Lv+9/EpbtLK1OfvOBcIHESJEk7NKQLxRbi+KsAdmuBVYJ\nMZOQ\r\n=YftJ\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":"bf199d38bab5d780025e0b145e807327449c4e47","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":"^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":"^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":"~0.14.1","async-iterator-all":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/libp2p-kad-dht_0.19.3_1589559902805_0.14026356936982465","host":"s3://npm-registry-packages"},"_id":"libp2p-kad-dht@0.19.3","version":"0.19.3"}