libp2p-ipfs
v0.14.0 IPFS
libp2p-ipfs
libp2p build (module) used in js-ipfs
This libp2p build has support for:
- TCP and WebSockets
- SPDY stream multiplexing
- secio encrypted channels
- Identify STUN protocol
Table of Contents
Install
npm
> npm i libp2p-ipfs
Use in Node.js
const lip2p = require('libp2p-ipfs')
Usage
API
Examples
- Start two libp2p Nodes (create and make them listen)
- Set up a handler for a protocol (through multistream)
- Dial from one Node to the other using just one transport (TCP or uTP, and without SPDY or Yamux)
- Dial from one Node to the other using one transport and one Stream Multiplexer
- Dial from one Node to the other having set up secio
Contribute
Feel free to join in. All welcome. Open an issue!
This repository falls under the IPFS Code of Conduct.