{"_id":"libp2p-topology","_rev":"4665259","name":"libp2p-topology","description":"libp2p network topology","dist-tags":{"latest":"0.3.1"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"jacobheun","email":""},{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"time":{"modified":"2026-04-10T22:36:38.000Z","created":"2021-11-03T16:53:20.481Z","0.3.1":"2022-01-02T15:55:57.641Z","0.3.0":"2022-01-02T08:05:49.144Z","0.2.0":"2021-12-02T07:03:00.416Z","0.1.0":"2021-11-22T17:27:54.730Z","0.0.0":"2021-11-03T16:53:20.481Z"},"users":{},"author":"","repository":{"type":"git","url":"git+https://github.com/libp2p/js-libp2p-interfaces.git"},"versions":{"0.3.1":{"name":"libp2p-topology","version":"0.3.1","description":"libp2p network topology","type":"module","typesVersions":{"*":{"*":["dist/src/*","dist/src/*/index"]}},"eslintConfig":{"extends":"ipfs"},"scripts":{"lint":"aegir lint","dep-check":"aegir dep-check dist/src/**/*.js","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/libp2p/js-libp2p-interfaces.git"},"keywords":["libp2p","interface"],"author":"","license":"(Apache-2.0 OR MIT)","bugs":{"url":"https://github.com/libp2p/js-libp2p-interfaces/issues"},"homepage":"https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-topography#readme","dependencies":{"err-code":"^3.0.1","libp2p-interfaces":"^3.1.1","multiaddr":"^10.0.1"},"devDependencies":{"aegir":"^36.0.0"},"exports":{".":{"import":"./dist/src/index.js","types":"./dist/src/index.d.ts"},"./multicodec-topology":{"import":"./dist/src/multicodec-topology.js","types":"./dist/src/multicodec-topology.d.ts"}},"gitHead":"d9c20773f1b391b9f8045ac8e36d75e843e0763a","_id":"libp2p-topology@0.3.1","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (darwin)","dist":{"shasum":"221146c67ab2a3fb068a335d31db9bd614620bdb","size":13086,"noattachment":false,"key":"/libp2p-topology/-/libp2p-topology-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/libp2p-topology/download/libp2p-topology-0.3.1.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"jacobheun","email":""},{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libp2p-topology_0.3.1_1641138957433_0.6536725036718061"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-02T15:56:03.483Z","publish_time":1641138957641,"_cnpm_publish_time":1641138957641},"0.3.0":{"name":"libp2p-topology","version":"0.3.0","description":"libp2p network topology","type":"module","typesVersions":{"*":{"*":["dist/src/*","dist/src/*/index"]}},"eslintConfig":{"extends":"ipfs"},"scripts":{"lint":"aegir lint","dep-check":"aegir dep-check dist/src/**/*.js","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/libp2p/js-libp2p-interfaces.git"},"keywords":["libp2p","interface"],"author":"","license":"(Apache-2.0 OR MIT)","bugs":{"url":"https://github.com/libp2p/js-libp2p-interfaces/issues"},"homepage":"https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-topography#readme","dependencies":{"err-code":"^3.0.1","libp2p-interfaces":"^3.1.0","multiaddr":"^10.0.1"},"devDependencies":{"aegir":"^36.0.0"},"exports":{".":{"import":"./dist/src/index.js","types":"./dist/src/index.d.ts"},"./multicodec-topology":{"import":"./dist/src/multicodec-topology.js","types":"./dist/src/multicodec-topology.d.ts"}},"gitHead":"befb411101eae7eb3711405cec0c1b74a2487e33","_id":"libp2p-topology@0.3.0","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (darwin)","dist":{"shasum":"4fb06f41a6921468feb18c8c189bc48385266886","size":13087,"noattachment":false,"key":"/libp2p-topology/-/libp2p-topology-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/libp2p-topology/download/libp2p-topology-0.3.0.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"jacobheun","email":""},{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libp2p-topology_0.3.0_1641110748935_0.6297262411680935"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-02T08:06:00.566Z","publish_time":1641110749144,"_cnpm_publish_time":1641110749144},"0.2.0":{"name":"libp2p-topology","version":"0.2.0","description":"libp2p network topology","type":"module","typesVersions":{"*":{"*":["dist/src/*","dist/src/*/index"]}},"eslintConfig":{"extends":"ipfs"},"scripts":{"lint":"aegir lint","dep-check":"aegir dep-check dist/src/**/*.js","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/libp2p/js-libp2p-interfaces.git"},"keywords":["libp2p","interface"],"author":"","license":"(Apache-2.0 OR MIT)","bugs":{"url":"https://github.com/libp2p/js-libp2p-interfaces/issues"},"homepage":"https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-topography#readme","dependencies":{"err-code":"^3.0.1","libp2p-interfaces":"^3.0.0","multiaddr":"^10.0.1","peer-id":"^0.16.0"},"devDependencies":{"aegir":"^36.0.0"},"exports":{".":{"import":"./dist/src/index.js","types":"./dist/src/index.d.ts"},"./multicodec-topology":{"import":"./dist/src/multicodec-topology.js","types":"./dist/src/multicodec-topology.d.ts"}},"gitHead":"18a07830eaa810c42694f49be943ce18e77ae869","_id":"libp2p-topology@0.2.0","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (darwin)","dist":{"shasum":"6d73ebd84bb7c9ae0b99c501c6e74b5328eeb253","size":13149,"noattachment":false,"key":"/libp2p-topology/-/libp2p-topology-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/libp2p-topology/download/libp2p-topology-0.2.0.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"jacobheun","email":""},{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libp2p-topology_0.2.0_1638428580251_0.6410339304813177"},"_hasShrinkwrap":false,"publish_time":1638428580416,"_cnpm_publish_time":1638428580416,"_cnpmcore_publish_time":"2021-12-16T13:37:26.445Z"},"0.1.0":{"name":"libp2p-topology","version":"0.1.0","description":"libp2p network topology","type":"module","typesVersions":{"*":{"*":["dist/src/*","dist/src/*/index"]}},"eslintConfig":{"extends":"ipfs"},"scripts":{"lint":"aegir lint","dep-check":"aegir dep-check dist/src/**/*.js","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/libp2p/js-libp2p-interfaces.git"},"keywords":["libp2p","interface"],"author":"","license":"(Apache-2.0 OR MIT)","bugs":{"url":"https://github.com/libp2p/js-libp2p-interfaces/issues"},"homepage":"https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-topography#readme","dependencies":{"err-code":"^3.0.1","libp2p-interfaces":"^2.0.0","multiaddr":"^10.0.1","peer-id":"^0.15.3"},"devDependencies":{"aegir":"^36.0.0"},"exports":{".":{"import":"./dist/src/index.js","types":"./dist/src/index.d.ts"},"./multicodec-topology":{"import":"./dist/src/multicodec-topology.js","types":"./dist/src/multicodec-topology.d.ts"}},"gitHead":"045f7d77535ee61562af0b0e2a7dfd168b214430","_id":"libp2p-topology@0.1.0","_nodeVersion":"16.11.1","_npmVersion":"lerna/4.0.0/node@v16.11.1+x64 (darwin)","dist":{"shasum":"499b0b9abe01b76ee6b57f8138ecc3b80a07fd58","size":13153,"noattachment":false,"key":"/libp2p-topology/-/libp2p-topology-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/libp2p-topology/download/libp2p-topology-0.1.0.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"jacobheun","email":""},{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libp2p-topology_0.1.0_1637602074336_0.9108405395356753"},"_hasShrinkwrap":false,"publish_time":1637602074730,"_cnpm_publish_time":1637602074730,"_cnpmcore_publish_time":"2021-12-16T13:37:26.676Z"},"0.0.0":{"name":"libp2p-topology","version":"0.0.0","description":"","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","_id":"libp2p-topology@0.0.0","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"shasum":"4d90c1563bb4225dea481efc3787694e5d857a11","size":243,"noattachment":false,"key":"/libp2p-topology/-/libp2p-topology-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/libp2p-topology/download/libp2p-topology-0.0.0.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"jacobheun","email":""},{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/libp2p-topology_0.0.0_1635958400360_0.24501524351501125"},"_hasShrinkwrap":false,"publish_time":1635958400481,"_cnpm_publish_time":1635958400481,"_cnpmcore_publish_time":"2021-12-16T13:37:26.913Z"}},"readme":"# libp2p-topology <!-- omit in toc -->\n\n> Contains an implementation of the [Topology](https://github.com/libp2p/js-libp2p-interfaces/blob/master/packages/libp2p-interfaces/src/topology/index.ts) interface\n\n## Table of contents <!-- omit in toc -->\n\n- [Usage](#usage)\n- [Contribute](#contribute)\n- [License](#license)\n\n## Usage\n\n```console\nnpm i libp2p-connection\n```\n\n```javascript\nimport { Topology } from 'libp2p-topology'\nimport { MulticodecTopology } from 'libp2p-topology/multicodec-topology'\n\nconst topology = new Topology({ ... })\nconst multicodecTopology = new MulticodecTopology({ ... })\n```\n\n## Contribute\n\nThe libp2p implementation in JavaScript is a work in progress. As such, there are a few things you can do right now to help out:\n\n - Go through the modules and **check out existing issues**. This would be especially useful for modules in active development. Some knowledge of IPFS/libp2p may be required, as well as the infrastructure behind it - for instance, you may need to read up on p2p and more complex operations like muxing to be able to help technically.\n - **Perform code reviews**. More eyes will help a) speed the project along b) ensure quality and c) reduce possible future bugs.\n - **Add tests**. There can never be enough tests.\n\n## License\n\n[Apache-2.0](LICENSE-APACHE) or [MIT](LICENSE-MIT) © Protocol Labs\n","_attachments":{},"homepage":"https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-topography#readme","bugs":{"url":"https://github.com/libp2p/js-libp2p-interfaces/issues"},"license":"(Apache-2.0 OR MIT)"}