p2panda / beep-beep

Fictional p2p protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

Further experiments

License

GNU Affero General Public License v3.0 AGPL-3.0

About

Fictional p2p protocol

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 96.2%Language:HTML 3.0%Language:CSS 0.9%