peer-swarm

a peer swarm implementation that uses the torrent DHT to find peers

npm install peer-swarm
6 downloads in the last week
12 downloads in the last month

peer-swarm

a peer swarm implementation that uses the torrent DHT to find peers

npm install peer-swarm

usage

var peerSwarm = require('peer-swarm');
var swarm = peerSwarm(myInfoHash);

swarm.on('connection', function(connection) {
    // a relevant connection has appeared
    // you should pipe this to a torrent protocol stream
});

swarm.listen();
npm loves you