@cerc-io/libp2p (0.42.2-laconic-0.1.4)

Published 2023-09-05 11:45:22 +00:00 by cerccicd

Installation

@cerc-io:registry=
npm install @cerc-io/libp2p@0.42.2-laconic-0.1.4
"@cerc-io/libp2p": "0.42.2-laconic-0.1.4"

About this package

libp2p hex logo

The JavaScript implementation of the libp2p Networking Stack.



Project status

We've come a long way, but this project is still in Alpha, lots of development is happening, API might change, beware of the Dragons 🐉..

The documentation in the master branch may contain changes from a pre-release. If you are looking for the documentation of the latest release, you can view the latest release on npm, or select the tag in github that matches the version you are looking for.

Want to get started? Check our GETTING_STARTED.md guide and examples folder.

Want to update libp2p in your project? Check our migrations folder.

Table of Contents

Background

libp2p is the product of a long and arduous quest to understand the evolution of the Internet networking stack. In order to build P2P applications, devs have long had to make custom ad-hoc solutions to fit their needs, sometimes making some hard assumptions about their runtimes and the state of the network at the time of their development. Today, looking back more than 20 years, we see a clear pattern in the types of mechanisms built around the Internet Protocol, IP, which can be found throughout many layers of the OSI layer system, libp2p distils these mechanisms into flat categories and defines clear interfaces that once exposed, enable other protocols and applications to use and swap them, enabling upgradability and adaptability for the runtime, without breaking the API.

We are in the process of writing better documentation, blog posts, tutorials and a formal specification. Today you can find:

To sum up, libp2p is a "network stack" -- a protocol suite -- that cleanly separates concerns, and enables sophisticated applications to only use the protocols they absolutely need, without giving up interoperability and upgradeability. libp2p grew out of IPFS, but it is built so that lots of people can use it, for lots of different projects.

Roadmap

The js-libp2p roadmap can be found here: https://github.com/libp2p/js-libp2p/blob/master/ROADMAP.md

It represents current projects the js-libp2p maintainers are focused on and provides an estimation of completion targets.

It is complementary to the overarching libp2p project roadmap: https://github.com/libp2p/specs/blob/master/ROADMAP.md

Install

npm install libp2p

Usage

Configuration

For all the information on how you can configure libp2p see CONFIGURATION.md.

Limits

For help configuring your node to resist malicious network peers, see LIMITS.md

API Docs

Getting started

If you are starting your journey with js-libp2p, read the GETTING_STARTED.md guide.

Tutorials and Examples

You can find multiple examples on the examples folder that will guide you through using libp2p for several scenarios.

Development

Clone and install dependencies:

> git clone https://github.com/libp2p/js-libp2p.git
> cd js-libp2p
> npm install
> npm run build

Tests

Run unit tests

# run all the unit tsts
> npm test

# run just Node.js tests
> npm run test:node

# run just Browser tests (Chrome)
> npm run test:chrome

Packages

List of packages currently in existence for libp2p

This table is generated using the module package-table with package-table --data=package-list.json.

Package Version Deps CI Coverage Lead Maintainer
libp2p
libp2p npm Deps Travis CI codecov Jacob Heun
libp2p-daemon npm Deps Travis CI codecov Jacob Heun
libp2p-daemon-client npm Deps Travis CI codecov Vasco Santos
libp2p-interfaces npm Deps Travis CI codecov Jacob Heun
interop-libp2p npm Deps Travis CI codecov Vasco Santos
transports
libp2p-tcp npm Deps Travis CI codecov Jacob Heun
libp2p-webrtc-direct npm Deps Travis CI codecov Vasco Santos
libp2p-webrtc-star npm Deps Travis CI codecov Vasco Santos
libp2p-websockets npm Deps Travis CI codecov Jacob Heun
secure channels
libp2p-noise npm Deps Travis CI codecov N/A
stream multiplexers
libp2p-mplex npm Deps Travis CI codecov Vasco Santos
peer discovery
libp2p-bootstrap npm Deps Travis CI codecov Vasco Santos
libp2p-kad-dht npm Deps Travis CI codecov Vasco Santos
libp2p-mdns npm Deps Travis CI codecov Jacob Heun
libp2p-webrtc-star npm Deps Travis CI codecov Vasco Santos
@chainsafe/discv5 npm Deps Travis CI codecov Cayman Nava
content routing
libp2p-delegated-content-routing npm Deps Travis CI codecov Jacob Heun
libp2p-kad-dht npm Deps Travis CI codecov Vasco Santos
peer routing
libp2p-delegated-peer-routing npm Deps Travis CI codecov Jacob Heun
libp2p-kad-dht npm Deps Travis CI codecov Vasco Santos
utilities
libp2p-crypto npm Deps Travis CI codecov Jacob Heun
data types
peer-id npm Deps Travis CI codecov Vasco Santos
libp2p-record npm Deps Travis CI codecov Jacob Heun
pubsub
libp2p-floodsub npm Deps Travis CI codecov Vasco Santos
libp2p-gossipsub npm Deps Travis CI codecov Cayman Nava
extensions
libp2p-nat-mgnr npm Deps Travis CI codecov N/A
libp2p-utils npm Deps Travis CI codecov Vasco Santos

Used by

And many others...

Contribute

The libp2p implementation in JavaScript is a work in progress. As such, there are a few things you can do right now to help out:

  • 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.
  • Perform code reviews. Most of this has been developed by @diasdavid, which means that more eyes will help a) speed the project along b) ensure quality and c) reduce possible future bugs.
  • Add tests. There can never be enough tests.

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

Dependencies

ID Version
@achingbrain/nat-port-mapper ^1.0.3
@libp2p/crypto ^1.0.4
@libp2p/interface-address-manager ^2.0.0
@libp2p/interface-connection ^3.0.2
@libp2p/interface-connection-encrypter ^3.0.1
@libp2p/interface-connection-manager ^1.1.1
@libp2p/interface-content-routing ^2.0.0
@libp2p/interface-dht ^2.0.0
@libp2p/interface-keychain ^2.0.4
@libp2p/interface-libp2p ^1.0.0
@libp2p/interface-metrics ^4.0.0
@libp2p/interface-peer-discovery ^1.0.1
@libp2p/interface-peer-id ^2.0.0
@libp2p/interface-peer-info ^1.0.3
@libp2p/interface-peer-routing ^1.0.1
@libp2p/interface-peer-store ^1.2.2
@libp2p/interface-pubsub ^3.0.0
@libp2p/interface-registrar ^2.0.3
@libp2p/interface-stream-muxer ^3.0.0
@libp2p/interface-transport ^2.1.0
@libp2p/interfaces ^3.0.3
@libp2p/keychain ^1.0.0
@libp2p/logger ^2.0.1
@libp2p/multistream-select ^3.0.0
@libp2p/peer-collections ^3.0.0
@libp2p/peer-id ^2.0.0
@libp2p/peer-id-factory ^2.0.0
@libp2p/peer-record ^5.0.0
@libp2p/peer-store ^6.0.0
@libp2p/tracked-map ^3.0.0
@libp2p/utils ^3.0.2
@libp2p/webrtc-peer ^2.0.2
@multiformats/mafmt ^11.0.2
@multiformats/multiaddr ^11.0.0
abortable-iterator ^4.0.2
any-signal ^3.0.0
datastore-core ^8.0.1
err-code ^3.0.1
interface-datastore ^7.0.0
it-all ^2.0.0
it-drain ^2.0.0
it-filter ^2.0.0
it-first ^2.0.0
it-handshake ^4.1.2
it-length-prefixed ^8.0.2
it-map ^2.0.0
it-merge ^2.0.0
it-pair ^2.0.2
it-pipe ^2.0.3
it-pushable ^3.1.2
it-sort ^2.0.1
it-stream-types ^1.0.4
merge-options ^3.0.4
multiformats ^11.0.0
p-fifo ^1.0.0
p-settle ^5.0.0
private-ip ^3.0.0
protons-runtime ^4.0.1
rate-limiter-flexible ^2.3.11
retimer ^3.0.0
set-delayed-interval ^1.0.0
timeout-abort-controller ^3.0.0
uint8arraylist ^2.3.2
uint8arrays ^4.0.2
wherearewe ^2.0.0
xsalsa20 ^1.1.0

Development Dependencies

ID Version
@chainsafe/libp2p-noise ^11.0.0
@chainsafe/libp2p-yamux ^3.0.3
@libp2p/bootstrap ^6.0.0
@libp2p/daemon-client ^4.0.1
@libp2p/daemon-server ^4.0.1
@libp2p/floodsub ^6.0.0
@libp2p/interface-compliance-tests ^3.0.2
@libp2p/interface-connection-compliance-tests ^2.0.3
@libp2p/interface-connection-encrypter-compliance-tests ^4.0.0
@libp2p/interface-mocks 9.1.3
@libp2p/interop ^5.0.0
@libp2p/kad-dht ^7.0.0
@libp2p/mdns ^6.0.0
@libp2p/mplex ^7.0.0
@libp2p/pubsub ^6.0.0
@libp2p/tcp ^6.0.0
@libp2p/topology ^4.0.0
@libp2p/websockets ^5.0.0
@types/lodash ^4.14.191
@types/p-fifo ^1.0.0
@types/varint ^6.0.0
@types/xsalsa20 ^1.1.0
aegir ^38.1.7
assert ^2.0.0
cborg ^1.8.1
delay ^5.0.0
execa ^7.0.0
go-libp2p ^1.1.1
it-to-buffer ^3.0.1
lodash ^4.17.21
npm-run-all ^4.1.5
p-defer ^4.0.0
p-event ^5.0.1
p-times ^4.0.0
p-wait-for ^5.0.0
sinon ^15.0.1
sinon-ts ^1.0.0

Keywords

IPFS libp2p network p2p peer peer-to-peer
Details
npm
2023-09-05 11:45:22 +00:00
2999
Apache-2.0 OR MIT
latest
360 KiB
Assets (1)
Versions (5) View all