0.10.2 • Published 2 years ago

libp2p-daemon v0.10.2

Weekly downloads
23
License
MIT
Repository
github
Last release
2 years ago

libp2p-daemon JavaScript implementation

A standalone deployment of a libp2p host, running in its own OS process and installing a set of virtual endpoints to enable co-local applications to: communicate with peers, handle protocols, interact with the DHT, participate in pubsub, etc. no matter the language they are developed in, nor whether a native libp2p implementation exists in that language.

Lead Maintainer

Jacob Heun

Specs

The specs for the daemon are currently housed in the go implementation. You can read them at libp2p/go-libp2p-daemon

Install

npm i -g libp2p-daemon

Usage

For a full list of options, you can run help jsp2pd --help. Running the defaults, jsp2pd, will start the daemon and bind it to a local unix socket path. Daemon clients will be able to communicate with the daemon over that unix socket.

As an alternative, you can use this daemon with a different version of libp2p as the one specified in package.json. You just need to define its path through an environment variable as follows:

export LIBP2P_JS=./../../js-libp2p/src/index.js

Contribute

This module is actively under development. Please check out the issues and submit PRs!

License

MIT © Protocol Labs