i2p

i2p

NodeJS api for communicating over i2p

Showing:

Popularity

Downloads/wk

2

GitHub Stars

41

Maintenance

Last Commit

4yrs ago

Contributors

3

Package

Dependencies

0

Size (min+gzip)

2.4KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

node-i2p

This module implements the https://nodejs.org/api/net.html API for the https://geti2p.net/en/docs/api/samv3 protocol. That is, it enables talking to an i2p peer node using the same API normally used for talking to other nodes on the open internet.

Client usage:

require("i2p");

conn = i2p.createConnection({DESTINATION:"bmmkyafw6os62qd7g6rhmuewgnbrcaa3eykyrnjyggjgzoo3gb7q.b32.i2p"}, function () {
  console.log("Connected using local destination: " + conn.session.DESTINATION);
  conn.on("data", function (data) {
    console.log("Received: " + data.toString("utf-8"));
  });
  conn.write("Hello server");
});

Server usage:

require("i2p");

var server = i2p.createServer();
server.on('listening', function () {
  console.log("Listening using local destination: " + server.session.DESTINATION);
});
server.on('connection', function (client) {
  console.log("Client connected from destination: " + client.DESTINATION);

  client.on('data', function (data) {
    console.log("Received: " + data.toString("utf-8"));
  });

  client.write("Hello client\n");
});

server.listen({});

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100