Seeing Cursors, Seeing People
A simple experiment to reconnect users through live cursors
Why all that?
This project began as a simple exploration of real-time web technologies.
I wanted to create something minimalist yet impactful. Something that makes users feel less alone while navigating a webpage.
By showing live cursor positions of everyone currently visiting the site, this small experiment transforms an otherwise solitary experience into a shared moment.
It won't break the Internet, but it’s fun, surprising, and a little poetic.
Technical Insights
The current version keeps the real-time traffic peer-to-peer:
- WebRTC DataChannels send cursor positions directly between browsers.
- STUN helps browsers discover a direct route through their network.
- PHP and SQLite provide lightweight signaling on the existing hosting.
- No permanent Node.js server is required.
The signaling endpoint only introduces visitors and exchanges WebRTC connection details. Once connected, cursor movements no longer pass through the server.
This version deliberately starts without a TURN relay. It remains lightweight and free to run, with the trade-off that visitors behind particularly restrictive corporate networks may not connect.
Try It Yourself
Curious to add this to your own site?
Just embed the following script tag in the end of your HTML, and you’re good to go:
By default, visitors share a room when they are on the same domain and path. Query parameters and URL fragments are ignored.
Future Directions
While the project currently focuses on live cursors, I’m considering adding more features, such as a minimalistic chat feature with short text bubbles appearing near cursors, or some even less usefull feature as colitions between cursors to generate interactions.
The goal is to keep everything lightweight, intuitive, and easy to integrate, ensuring that it complements any webpage without disrupting its design.