hn.today

A Single HTML P2P Chat – The Simplest Functional Chat App on the Internet

github.com6 points2 comments
Screenshot of A Single HTML P2P Chat – The Simplest Functional Chat App on the Internet

This project is a browser-based peer-to-peer chat application contained in a single, roughly 300-line HTML file. It requires no server to host conversations, no build process, and no software installation; users open the page, choose a name and room, and share a room link. WebRTC connections let participants communicate directly, provided they are online at the same time. The app supports text and Markdown, image previews, presence indicators, sound notifications, and file sharing for files up to 50 MB, including via paste or drag-and-drop. Files are not saved, so recipients must be connected when they are sent.

Messages are saved in each browser’s local storage, and peers can automatically sync chat history to newcomers if a connected participant still has it. The project is presented as useful for temporary event or gaming rooms, transfers between personal devices, teaching, or lightweight self-hosting. Its dependencies - including WebRTC signaling, Markdown parsing, and HTML sanitization tools - are loaded from CDNs. The simplicity comes with significant security limits: there is no authentication, encryption, or privacy guarantee, and anyone who discovers a room can join, read messages, or download shared files. The creator explicitly warns against using it for sensitive or confidential communication and places responsibility for use on users.

Read on github.com2 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.