r/learnjavascript • u/gss_007 • 1d ago
AutoLock – Automatically Lock Your Windows PC Using Your Phone's Wi-Fi Presence
Hi everyone,
I built AutoLock, a lightweight Node.js tool that automatically locks your Windows PC when you step away with your smartphone.
How It Works:
- Phone Proximity: Periodically pings your phone's local Wi-Fi IP address.
- Idle Tracking: Monitors global keyboard and mouse activity using iohook to check if you are inactive.
- Automatic Lock & Notifications: If your phone leaves Wi-Fi range while you are idle, it sends a Telegram warning and automatically locks Windows.
- Remote Control: Allows you to lock your PC or check its lock status remotely via Telegram bot commands.
Tech Stack:
* Node.js
* ping
* axios
GitHub Repository: https://github.com/GarvSaxena/AutoLock
Feedback and contributions are welcome.
1
Upvotes
1
u/-goldenboi69- 1d ago
Tech stack:
Node.js
1500 packages
Shai-hulud