Giter Club home page Giter Club logo

cjdnsnode's Introduction

Cjdnsnode - The cjdns supernode Build Status

A supernode is a replicating database of node/link information, it's collected by scanning the network for peers but PLEASE DON'T ENABLE SCANNING, there is another snode scanning and you can simply connect to it's socket and listen for all of the updates sent right to your door.

Snode allows dumping of its internal state using TCP/JSON (replication socket) and it allows querying to get a path between any 2 nodes given by their keys using UDP/Benc.

Setup:

(tested working on Ubuntu 16.04.2 LTS)

  • npm install

  • Install and start postgresql, and run the initdb.sql: $ sudo -u postgres psql < initdb.sql

  • Create the config file: $ cp config.example.js config.js

  • Start the node: $ nodejs server.js

To query a path from your local node:

echo -n 'd1:q2:gr3:src54:3fdqgz2vtqb0wx02hhvx3wjmjqktyt567fcuvj3m72vw5u6ubu70.k3:tar54:1220u65349nljc5fwy1tyvm0j24bwgcj75rx09ukvd94vhg858b0.k4:txid4:abcde' | nc -u ::1 9001

cjdnsnode's People

Contributors

cjdelisle avatar madafoo avatar ralphtheninja avatar kyrias avatar vurpo avatar iczero avatar

Watchers

Estella Mystagic avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.