38 points LuKks 2 days ago 12 comments

LuKks 2 days ago | parent

Works across browsers, Node.js, and React Native.

- P2P servers. Listen for peer connections anywhere, even in the browser.

- Direct connections. Connect to peers across devices and networks.

- Built-in signaling. Automatic SDP/ICE exchange and negotiation.

- Identities. Shareable cryptographic addresses instead of IP addresses.

- Peer discovery. Announce and find peers using shared topics.

- WebRTC API. Use data channels, audio/video tracks and transceivers.

- Ready to use. Signaling, STUN and TURN configured by default.

totetsu 2 hours ago | parent

I just found cloudflare conveniently has some free tier TURN and STUN server allowance.

jckahn 2 hours ago | parent

Great work! Does this offer something beyond what https://trystero.dev/ provides?

dirkc 2 hours ago | parent

Do I understand correctly that this is normal webRTC with a custom signaling server using private/public key cryptography, and STUN and TURN servers I can use?

dboreham 29 minutes ago | parent

That's always what these things are since p2p WebRTC doesn't exist.

cyanydeez 13 minutes ago | parent

Sure, but once a peer is attached, the goal isto match onthe p2p mesh, but the entry is always relau first

chr15m 1 hour ago | parent

Single signaling server:

    wss://party.leet.ar:41337
What happens to anybody who builds on this when you turn off your server in a few months time?

igbanam 1 hour ago | parent

This is the example. When building out yours, you can configure your ports

https://github.com/LuKks/like-webrtc/blob/a1a2ac0a90eae7319e...

just_mc 1 hour ago | parent

At first glance, it seems extremely similar to PeerJS.

mircerlancerous 44 minutes ago | parent

Just to make sure it's clear, this is not a fully in-browser solution; unfortunately an external STUN server is still required. Would be great if the browser gave us a way to discover peers fully in-browser, even just on a local network

gavmor 17 minutes ago | parent

It doesn't have built-in signaling and peer discovery, because that's impossible.

It does look kinda neat, though!

cyanydeez 14 minutes ago | parent

Its basically the same though. You stop at the relay, then connect to a peer to find other peers. Rther than the relay handing oht p2p, the relay just hands out peer-as-server.

So, sure, we are stiill straining for decentralization.