Skip to content

feat: add puter.peer to sdk, create PeerService in backend#2664

Merged
ProgrammerIn-wonderland merged 4 commits intoHeyPuter:mainfrom
velzie:feat/puter-peer
Mar 18, 2026
Merged

feat: add puter.peer to sdk, create PeerService in backend#2664
ProgrammerIn-wonderland merged 4 commits intoHeyPuter:mainfrom
velzie:feat/puter-peer

Conversation

@velzie
Copy link
Copy Markdown
Contributor

@velzie velzie commented Mar 14, 2026

No description provided.

@ProgrammerIn-wonderland
Copy link
Copy Markdown
Collaborator

I think that there is some rigidity here that I don't fully like. I see that the stun URLs are hardcoded in puterjs. I think this should probably come from the signalling worker in some capacity so stun servers can be changed or TURN creds can be retrofitted/changed.

The main reason for this is that once we deploy a version of puterjs, we support it pretty much indefinitely. This is why for example in the wisp service, the wisp URLs are given from the backend instead of being hardcoded in.

@ProgrammerIn-wonderland
Copy link
Copy Markdown
Collaborator

I think a good example of what I want is basically what speed.cloudflare.com does in that the full webrtc config is sent from the server
image

Comment thread src/puter-js/src/modules/Peer.js Outdated
Comment thread src/puter-js/src/modules/Peer.js Outdated
@ProgrammerIn-wonderland
Copy link
Copy Markdown
Collaborator

otherwise, the actual core code seems pretty good and solid for the first iteration

@velzie velzie marked this pull request as ready for review March 18, 2026 01:02
@ProgrammerIn-wonderland ProgrammerIn-wonderland merged commit 8d38e07 into HeyPuter:main Mar 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants