A lightweight desktop overlay that predicts lag spikes before they happen using live network analysis and machine learning.
LagGuard is a predictive network monitoring overlay built for latency-sensitive applications like competitive gaming and live streaming.
Instead of showing lag after it happens, LagGuard continuously analyzes network behaviour in real time and warns users before instability becomes noticeable in-game.
The overlay is designed to stay lightweight, minimal, and distraction-free while remaining visible on top of fullscreen applications.
- Real-time latency monitoring
- Jitter and packet loss analysis
- Predictive lag detection
- XGBoost-based ML predictions
- Frameless Electron overlay
- Click-through transparent UI
- WebSocket live communication
- Gaming optimized interface
- Lightweight background processing
- Configurable alerts and thresholds
| Layer | Technology |
|---|---|
| Frontend | Electron + HTML/CSS |
| Backend | Node.js |
| Machine Learning | XGBoost |
| Communication | WebSockets |
| Monitoring | ICMP / Ping Sampling |
Network Sampling
│
▼
Feature Extraction
│
▼
Prediction Engine
(Rules + XGBoost)
│
▼
WebSocket Stream
│
▼
Electron Overlay
git clone https://github.com/yourusername/lagguard.git
cd lagguardnpm installnpm run devnpm run buildRun the application:
npm startConfigure monitoring settings inside:
config.json
Example:
{
"target": "8.8.8.8",
"interval": 500,
"predictionThreshold": 0.75
}| State | Meaning |
|---|---|
| Stable | Network healthy |
| Warning | Possible lag incoming |
| Danger | High probability lag spike |
- Historical analytics dashboard
- Cloud synced profiles
- Game-specific presets
- Discord notifications
- Mobile companion app
- Multi-server monitoring
- Advanced ML training pipeline
Pull requests are welcome.
If you'd like to contribute:
fork -> clone -> develop -> pull requestMIT License




