7 releases

0.27.2 Apr 15, 2021
0.27.1 Mar 5, 2021
0.26.2 Feb 16, 2021
0.26.0 Jan 7, 2021
0.20.1 Dec 31, 2020

#66 in #decentralization

Download history 6/week @ 2022-04-20 49/week @ 2022-04-27 31/week @ 2022-05-04 112/week @ 2022-05-11 44/week @ 2022-05-18 46/week @ 2022-05-25 86/week @ 2022-06-01 48/week @ 2022-06-08 15/week @ 2022-06-15 48/week @ 2022-06-22 27/week @ 2022-06-29 52/week @ 2022-07-06 37/week @ 2022-07-13 52/week @ 2022-07-20 40/week @ 2022-07-27 51/week @ 2022-08-03

180 downloads per month
Used in fewer than 21 crates

MIT license

11K SLoC

Central repository for work on libp2p

dependency status

This repository is the central place for Rust development of the libp2p spec.

Getting started

Repository Structure

The main components of this repository are structured as follows:

  • core/: The implementation of libp2p-core with its Transport and StreamMuxer API on which almost all other crates depend.

  • transports/: Implementations of transport protocols (e.g. TCP) and protocol upgrades (e.g. for authenticated encryption, compression, ...) based on the libp2p-core Transport API .

  • muxers/: Implementations of the StreamMuxer interface of libp2p-core, e.g. (sub)stream multiplexing protocols on top of (typically TCP) connections. Multiplexing protocols are (mandatory) Transport upgrades.

  • swarm/: The implementation of libp2p-swarm building on libp2p-core with the central interfaces NetworkBehaviour and ConnectionHandler used to implement application protocols (see protocols/).

  • protocols/: Implementations of application protocols based on the libp2p-swarm APIs.

  • misc/: Utility libraries.

  • examples/: Worked examples of built-in application protocols (see protocols/) with common Transport configurations.

Community Guidelines

The libp2p project operates under the IPFS Code of Conduct.


  • Be respectful.
  • We're here to help: abuse@ipfs.io
  • Abusive behavior is never tolerated.
  • Violations of this code may result in swift and permanent expulsion from the IPFS [and libp2p] community.
  • "Too long, didn't read" is not a valid excuse for not knowing what is in this document.


(In alphabetical order.)

Notable users

(open a pull request if you want your project to be added here)


~250K SLoC