Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

decentralized textboard

Name: Anonymous 2023-01-02 19:20

I was thinking of using peerjs plus local webstorage. Is it possible?

1) offline page connects to 0.peerjs.com, gets an id to do handshakes

2) gets someone elses id (how?) and connects to it using peer.connect(id), then sets up the callbacks etc

var conn = peer.connect(peerId)

3) after locally posting something and hitting synchronize button, it "uploads" this post to other peers by sending it to them with conn.send(data). This syncs their own local copies of the textboard which exist in local web storage (actually only the changes/diffs get sent).

4) ??? Decentralized textboard!

Name: Anonymous 2023-04-07 11:29

I don't want to host my own signaling server so I was thinking of some hack for connecting people too.

Something like a contact list in which you manually place a person's identifier, and then afterwards you'll always connect to that person as you login, and you will trade/sync the posts made.

So we could "post our contact info" (meaning a unique id which is just some base64 of length n) here and talk over there, using peerjs like I've said, which is a peer to peer javascript library. The "app" would in a sense be pure js without php so it could be hosted on any website or even as a separate document on your computer/smartphone folders.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List