Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @arve.knudsen/libp2p-bootstrap with all npm packages installed. Try it out:

var libp2pBootstrap = require("@arve.knudsen/libp2p-bootstrap")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@arve.knudsen/libp2p-bootstrap v0.9.8

Node.js IPFS Implementation of the railing process of a Node through a bootstrap peer list

js-libp2p-bootstrap

Discourse posts js-standard-style

JavaScript libp2p Implementation of the railing process of a Node through a bootstrap peer list

Lead Maintainer

Vasco Santos.

Usage

const bootstrap = require('libp2p-bootstrap')

const options = {
  list: <List of Multiaddrs>
  interval: 5000 // ms, default is 10s
}

const b = new bootstrap(options)

b.on('peer', function (peerInfo) {
  // found a new peer
})

b.start()
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free