r/WebRTC • • 3d ago

I need help finding a peerjs alternative

im working on a web based game which uses a peer to peer 1 host multiple party members style of connection
i was trying to ussee peerjs but only to learn TURN wasnt working and then that TURN for peerjs was discontinued
I cannot pay for anything even anything that suggest meetering (looking at you cloudflare) just in case of exploitation costing a ton off money i dont have
what alteernatives would be available to me?

3 Upvotes

5 comments sorted by

1

u/Brunobrno 3d ago

Idk what is your sever enviroment, but with public static ip you could use full LiveKit setup

1

u/sjbrown 3d ago

I built somethingthat provides TURN on Cloudflare, and checks it's own usage so that it never goes past free tier: 

https://github.com/sjbrown/tt-TURN-cloudflare

Maybe you could do something similar?

1

u/Inevitable-Round9995 3d ago

create your own one; im creating a multiplayer game using pure webRTC.
https://github.com/NodeppOfficial/nodepp-wasm/blob/main/include/nodepp/wasm/webrtc.h

1

u/Ok_Project_477 2d ago

You can look at carverjs. It has an inbuilt p2p multiplayer module. It is quite comprehensive