HyperServer
THIS IS A WORK IN PROGRESS PROJECT
HyperServer is a light-weight library for building both large and small scale peer-to-peer (P2P) networks. It does not implement P2P data replication for you. It is simply a plain, flexible peer-to-peer networking solution, onto which you can easily build your own replication model or use some kind of event passing mechanism.
Installation
npm install hyperserver
System overview
When attempting to join a P2P network, specific discovery or membership protocols (or other configuration information) may be required, and, if a newly joining node is unaware of these protocols, the newly established joining node will not be able to communicate with other nodes and ultimately join the network.
This is why we need bootstrapping nodes; to provide the initial required information to a newly joined node so that it knows how to proceed connecting to other nodes. There are two types of nodes/peers you can create with this library: bootstrapping nodes and default nodes.
Usage
const hyperserver = ; const node = hyperserver;
Events
node; node; node; node; node;