Control your computer mouse remotely from another device using a simple browser-based interface. This project uses Express.js to serve the UI, Socket.IO for real-time communication, and @nut-tree/nut-js to control the mouse.
- 📡 Real-time remote control via WebSocket
- 🖱️ Move, click, and scroll your mouse
- 🌐 Works on any device with a browser (mobile/tablet/desktop)
- ⚡ Fast and lightweight implementation
- Express.js - Web server
- Socket.IO - Real-time communication
- @nut-tree/nut-js - Mouse automation
git clone https://github.com/rimnaarith/mini-mouse-remote.git
cd mini-mouse-remote
npm installnpm startThen open your browser and go to:
http://<your-ip>:3000
💡 Tip: You must access the server from the same local network (e.g., your phone and computer are on the same Wi-Fi).
The web interface supports:
- 🖱️ Moving the mouse by dragging your finger
- 📍 Tap to click
- 🌀 Two-finger swipe to scroll
mini-mouse-remote/
├── public/ # Frontend HTML/JS files
├── server.js # Main Express + Socket.IO backend
├── package.json
└── README.md
To allow @nut-tree/nut-js to control your mouse, you might need to:
- ✅ Enable accessibility permissions (macOS)
- ✅ Run terminal with admin rights (Windows/Linux)
To auto-restart on changes (optional):
npm install --save-dev nodemon
npx nodemon server.js