A simple realtime mouse-sharing demo built with React and Socket.io.
Each connected user can see the cursor positions of every other user, with smooth, synchronized movement across all clients.
- Realtime cursor broadcasting with Socket.io
- Smooth transitions for remote cursor movement
- React client that sends and receives coordinate updates
- Lightweight server for tracking and broadcasting user positions
- Tailwind CSS styling for simple UI
Github.demo.mp4
- The client connects to the Socket.io server at:
http://localhost:8080 - The client emits its current mouse coordinates every 100 ms
- The server stores the positions of all connected users
- The server broadcasts the updated positions to every client
- Each client renders a pointer for every user except itself
- React
- Socket.io (client + server)
- Tailwind CSS
- Node.js (for backend server)
-
🌀 Clone the project using Git
git clone https://github.com/autistic-avenger/multiplayer-cursor cd multiplayer-cursor -
📂 To run the Frontend:
cd Client npm run dev -
📂 To run the Backend:
cd Server npm run server