38

GitHub - adzialocha/beep-beep: Fictional p2p protocol

 4 years ago
source link: https://github.com/adzialocha/beep-beep
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

beep-beep

This is a naive and simplistic proof-of-concept implementation of a p2p system which allows a hybrid of federated and fully distributed nodes in the same network inspired by bamboo, Secure Scuttlebutt and ActivityPub. Also it allows us to have light clients which can purely stay in the browser without any proxy / tunneling, while still owning their keys.

There are plenty of comments about this idea in the code. Start here!

Don't be disappointed if you see some "fake" methods in the code, I didn't want to fall down into the rabbit hole of actually implementing this, this really serves only as a (working) concept and base for further discussions and specifications.

Diagrams

Network Example

Stack Example

How to play with this

npm install
npm start

After starting a node it will show you an URL in the console. Open this in your browser to play with the client. You can also start more nodes in other terminal sessions and let them replicate data with each other.

Please note that this example only runs in your local network!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK