node-kademlia

0.0.0 • Public • Published

nodejs kademlia implementation

Just implement the algorithm about kth-buckets, the networking protocol are not included. A test suit based on node-message-center and websocket and unix socket are included as well as an node lookup interface. But the ideas that the network node it self maintains the nearest neighbors by the size limit of kth-bucket are inside algorightm but not tested in the test case. Because how to maintaining the neighbors and survive the better node is sort of application associated strategy.

Thus is implementation are just a practice rather than an complete library.

test

Note: you need at lest 4GB FREE ram to run the test.

cd test;
coffee test.coffee # open clients 
 
# another terminal 
cd test
coffee interface.coffee <id> # id can be int the test.coffee print 

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i node-kademlia

    Weekly Downloads

    1

    Version

    0.0.0

    License

    BSD-2-Clause

    Last publish

    Collaborators

    • nstal