peercached

Distributed peer-to-peer caching

npm install peercached
1 downloads in the last week
4 downloads in the last month

PeerBalanced

Distributed peer-to-peer load balancing using the P2P WebRTC API.

Benefits

  • Automatic scaling – the more people visit a page, the more seeders a given file has, and the less the server has to work.

Issues

  • Doesn't send raw binary image data.
  • Doesn't respect Cache-Control headers, will quickly result in loosing control of files.
  • No security, anyone could seed invalid data to other peers.
  • Since you can't set the DataChannel to reliable, files are limited in size.
  • Due to the Same Origin Policy, images has to be hosted on the same origin as the signaling server.

Install

npm install peerbalanced; npm install -d

Since it just barely works at the moment, I recommend against using it for anything serious.

Use

redis-server; node index.js; open http://localhost:8080/examples/example.html http://localhost:8080/examples/example.html

More info

Information about the protocol used can be found in the wiki.

npm loves you