Sadh114/p2p-Editor ? reverse-engineered prompt

Reverse engineered prompt

Build me a real time collaborative rich text editor where people can open the same room link and type together from different browser tabs or even different devices on the same Wi Fi. It should sync directly between browsers over WebRTC, with a small Node server only for getting peers connected at the start, not for storing the document itself.

I want a clean editor with live presence so I can see who is connected, where their cursor is, and when someone leaves or refreshes the page. If someone reloads, it should reconnect and restore their content right away from local browser storage, then catch up with everyone else. Please include a simple way to copy or share the room link, a clear connection status, and a setup that works locally with a frontend and a separate signaling server. If you need current docs for any library behavior, look them up online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab