ランキングに戻る

libp2p/js-libp2p

TypeScriptlibp2p.github.io/js-libp2p/

A JavaScript Implementation of libp2p networking stack.

libp2pipfsjs-ipfsnetworking-stackp2p
スター成長
スター
2.6k
フォーク
542
週間成長
Issue
63
1k2k
2015年9月2019年4月2022年12月2026年7月
成果物npmnpm install js-libp2p
README

libp2p hex logo

The JavaScript implementation of the libp2p Networking Stack

libp2p.io npm Discuss Matrix Discord codecov CI

[!NOTE] Are you trying to upgrade libp2p to the latest version? Check out the migration guides for any changes you need to make.

Project status

This project has been used in production for years in Ethereum, IPFS, and more. It is actively maintained by multiple organizations and continues to be improved! The API might change, but we strictly follow semver.

The documentation in the main 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.

[!TIP] Just trying to figure out what this is all about? Check our GETTING_STARTED.md guide and examples.

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 upgradability. 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/main/ROADMAP.md

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

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

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 repo that will guide you through using libp2p for several scenarios.

Structure

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 tests
> 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
libp2p
libp2p npm Deps GitHub CI codecov
@libp2p/interface npm Deps GitHub CI codecov
transports
@libp2p/memory npm Deps GitHub CI codecov
@libp2p/tcp npm Deps GitHub CI codecov
@libp2p/webrtc npm Deps GitHub CI codecov
@libp2p/websockets npm Deps GitHub CI codecov
@libp2p/webtransport npm Deps GitHub CI codecov
secure channels
@chainsafe/libp2p-noise npm Deps GitHub CI codecov
@libp2p/plaintext npm Deps GitHub CI codecov
@libp2p/tls npm Deps GitHub CI codecov
stream multiplexers
@chainsafe/libp2p-yamux npm Deps GitHub CI codecov
@libp2p/mplex npm Deps GitHub CI codecov
peer discovery
@libp2p/bootstrap npm Deps GitHub CI codecov
@libp2p/kad-dht npm Deps GitHub CI codecov
@libp2p/mdns npm Deps GitHub CI codecov
@chainsafe/discv5 npm Deps GitHub CI codecov
content routing
@libp2p/http-v1-content-routing npm Deps GitHub CI codecov
@libp2p/delegated-content-routing npm Deps GitHub CI codecov
@libp2p/kad-dht npm Deps GitHub CI codecov
peer routing
@libp2p/delegated-peer-routing npm Deps GitHub CI codecov
@libp2p/kad-dht npm Deps GitHub CI codecov
utilities
@libp2p/crypto npm Deps GitHub CI codecov
data types
@libp2p/peer-id npm Deps GitHub CI codecov
@libp2p/peer-record npm Deps GitHub CI codecov
pubsub
@libp2p/gossipsub npm Deps GitHub CI codecov
@libp2p/floodsub npm Deps GitHub CI codecov

Used by

HOPR Logo Helia (IPFS in JavaScript) logo OrbitDB logo Peerbit logo

And many others...

Contribute

See CONTRIBUTING.md.

API Docs

License

Licensed under either of

関連リポジトリ
mudler/LocalAI

LocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.

GoGo ModulesMIT Licensellamaai
localai.io
47.7k4.3k
berty/berty

Berty is a secure peer-to-peer messaging app that works with or without internet access, cellular data or trust in the network

TypeScriptnpmOtherbertyipfs
berty.tech
9.2k496
orbitdb/orbitdb

Peer-to-Peer Databases for the Decentralized Web

JavaScriptnpmMIT Licensep2pdistributed
8.8k596
ipfs/js-ipfs

IPFS implementation in JavaScript

JavaScriptnpmOtheripfsjs-ipfs
js.ipfs.tech
7.4k1.2k
libp2p/go-libp2p

libp2p implementation in Go

GoGo ModulesMIT Licenselibp2pnetworking-stack
6.9k1.3k
soketi/soketi

Next-gen, Pusher-compatible, open-source WebSockets server. Simple, fast, and resilient. 📣

TypeScriptnpmGNU Affero General Public License v3.0pusherwebsocket
soketi.app
5.6k361
libp2p/rust-libp2p

The Rust Implementation of the libp2p networking stack.

Rustcrates.ioMIT Licenselibp2pnetworking
libp2p.io
5.6k1.2k
Peergos/Peergos

A p2p, secure file storage, social network and application protocol

JavaMavenGNU Affero General Public License v3.0javapeer-to-peer
peergos.org
2.4k190
mudler/edgevpn

:sailboat: The immutable, decentralized, statically built p2p VPN without any central server and automatic discovery! Create decentralized introspectable tunnels over p2p with shared tokens

GoGo ModulesApache License 2.0networkingvpn
mudler.github.io/edgevpn
1.9k197
kairos-io/kairos

The immutable Linux meta-distribution for edge Kubernetes.

GoGo ModulesApache License 2.0kubernetesk3s
kairos.io
1.8k133
ipfs-cluster/ipfs-cluster

Pinset orchestration for IPFS

GoGo ModulesOtheripfsipfs-cluster
ipfscluster.io
1.6k311
rs-ipfs/rust-ipfs

The InterPlanetary File System (IPFS), implemented in Rust.

Rustcrates.ioApache License 2.0ipfsrust-ipfs
1.3k176