Sign inSign up

distpub/js-libp2p-codespace

By distpub

•Updated almost 6 years ago

Image
0

137

distpub/js-libp2p-codespace repository overview

⁠ 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⁠.

Weekly Core Dev Calls⁠

⁠Lead Maintainer

Jacob Heun⁠

⁠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.

⁠Install

npm install libp2p

⁠Usage

⁠Configuration

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

⁠API

The specification is available on API.md⁠.

⁠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
⁠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:browser
⁠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.

Tag summary

Content type

Image

Digest

Size

520.8 MB

Last updated

almost 6 years ago

docker pull distpub/js-libp2p-codespace