# like-webrtc lets browsers act as peer-to-peer servers with built-in signaling

Original title: Peer-to-peer WebRTC connections with built-in signaling and discovery

> Hacker News story 50416640 · language: en · submitted 2026-11-08
> Web version: https://zeli.app/story/50416640
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 79 · by [LuKks](<https://news.ycombinator.com/user?id=LuKks>) · 💬 31
[original](<https://github.com/lukks/like-webrtc>) · [HN discussion](<https://news.ycombinator.com/item?id=50416640>)

## Summary

A JavaScript library that wraps WebRTC with automatic SDP/ICE negotiation, cryptographic peer addresses instead of IPs, and topic-based peer discovery. It works across browsers, Node.js, and React Native, ships with default STUN and TURN servers, and offers a Node.js http-style API for creating servers and connecting to peers directly. A P2P Discord clone built in 48 hours serves as the live demo.

## Key quote

> A familiar API like Node.js http, but peer-to-peer and running directly in your browser.

## HN discussion (31 comments)

### [mircerlancerous](<https://news.ycombinator.com/item?id=50455017>)

> 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

### [jckahn](<https://news.ycombinator.com/item?id=50453906>)

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

### [dirkc](<https://news.ycombinator.com/item?id=50453975>)

> 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?

### [totetsu](<https://news.ycombinator.com/item?id=50453877>)

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

### [LuKks](<https://news.ycombinator.com/item?id=50416641>)

> 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.

---

## Cite

- Page: https://zeli.app/story/50416640
- Date: 2026-11-08
- Source: github.com (https://github.com/lukks/like-webrtc)
- Hacker News: https://news.ycombinator.com/item?id=50416640

## Other languages

- zh: https://zeli.app/zh/story/50416640 · markdown: https://zeli.app/zh/story/50416640.md
- ja: https://zeli.app/ja/story/50416640 · markdown: https://zeli.app/ja/story/50416640.md
- ko: https://zeli.app/ko/story/50416640 · markdown: https://zeli.app/ko/story/50416640.md
- de: https://zeli.app/de/story/50416640 · markdown: https://zeli.app/de/story/50416640.md
- es: https://zeli.app/es/story/50416640 · markdown: https://zeli.app/es/story/50416640.md
- ru: https://zeli.app/ru/story/50416640 · markdown: https://zeli.app/ru/story/50416640.md
