Professional VM-based Server Monitoring Tool
Now available as Desktop App + Progressive Web App
π₯οΈ Desktop App β’ π± PWA Features β’ π Quick Start β’ π Documentation
Your Flask monitoring tool has been completely transformed into a modern, cross-platform solution:
- π₯οΈ Native Desktop App (Windows, macOS, Linux)
- π± Progressive Web App (installable on mobile/desktop)
- π Enhanced Security (rate limiting, CSRF, headers)
- π‘ Offline Support (cached data, service worker)
- π¨ Professional UI (modern design, responsive)
- π Native Notifications (desktop alerts)
- π¦ Easy Distribution (single executable files)
- Auto-start Flask backend when app launches
- System tray integration (minimize to tray)
- Native notifications for system alerts
- Cross-platform - Works on Windows, macOS, Linux
- Offline capability with cached dashboard data
- Professional splash screen and branding
β
One-click startup (Flask + Electron together)
β
Native window controls and menus
β
System integration (notifications, tray)
β
Auto-updater support built-in
β
Secure communication between processes
β
Professional installer packages
- Installable on Android, iOS, and desktop browsers
- Offline functionality with service worker caching
- App-like experience with native feel
- Background sync when connection restored
- Push notifications for real-time alerts
- Responsive design for all screen sizes
β
Add to home screen (mobile)
β
Install from browser (desktop)
β
Offline dashboard access
β
Cached API responses
β
Background data sync
β
Native app shortcuts
Windows:
# Double-click or run:
start-lightmon.batLinux/macOS:
chmod +x start-lightmon.sh
./start-lightmon.shDesktop App:
npm run electron-devWeb App Only:
python backend/main.pyBuild Executable:
pyinstaller lightmon.spec- π₯οΈ CPU Usage - Per-core and overall utilization
- πΎ Memory Usage - RAM allocation and availability
- πΏ Disk Usage - Storage space and I/O operations
- π Network Activity - Bandwidth and packet statistics
- β‘ Process Monitoring - Top resource-consuming processes
- π¨ Smart Alerts - Customizable thresholds
- π₯οΈ Multi-Host Support - Monitor multiple servers
- π₯ User Management - Role-based access control
- π Historical Data - Trend analysis and reporting
- π Real-time Updates - WebSocket-powered live data
- Python 3.8+
- Node.js 16+
- Git (optional)
git clone <your-repo-url>
cd lightmon# Python dependencies
C# Interactive launcher
./start-lightmon.sh # Linux/Mac
start-lightmon.bat # Windows
# Or directly
npm run electron-dev # Desktop app
python backend/main.py # Web appWindows (.exe):
build-scripts\build-windows.bat
# Output: dist\LightMon.exemacOS (.app):
./build-scripts/build-mac.sh
# Output: dist/LightMon.appLinux (AppImage):
./build-scripts/build-linux.sh
# Output: dist/LightMonnpm run build-win # Windows installer
npm run build-mac # macOS DMG
npm run build-linux # Linux packages- π‘οΈ Rate Limiting - Prevent API abuse
- π CSRF Protection - Secure form submissions
- π« Security Headers - XSS, clickjacking protection
- πͺ Secure Sessions - HTTPOnly, SameSite cookies
- π Strong Secrets - Cryptographically secure keys
- π Health Check Endpoint -
/api/health - π³ Docker Support - Container deployment
- π Comprehensive Logging - Error tracking
- π Auto-restart - Process management
- π Performance Optimized - Efficient monitoring
- π¨ Professional Theme - Clean, modern interface
- π Dark/Light Mode - User preference toggle
- π± Responsive Layout - Works on all devices
- π Interactive Charts - Real-time data visualization
- π― Intuitive Navigation - Easy-to-use interface
- π₯οΈ Native Menus - Platform-appropriate controls
- π System Notifications - Native alert popups
- π System Tray - Background operation
- β¨οΈ Keyboard Shortcuts - Power user features
- π SETUP.md - Detailed setup instructions
- π PROJECT_STRUCTURE.md - Code organization
- π§ Build Scripts - Automated packaging
- π³ Docker Compose - Container deployment
GET /api/health - Health check
GET /api/metrics/detailed - System metrics
GET /api/hosts - Host management
GET /api/alerts - Alert history
POST /api/threshold/<metric> - Configure thresholds
- π’ System Administrators - Monitor server infrastructure
- π» Developers - Track application performance
- π Home Labs - Monitor personal servers
- π Small Businesses - Cost-effective monitoring
- π Students - Learn system monitoring concepts
- π₯οΈ Desktop Monitoring - Local system oversight
- π Web Dashboard - Browser-based access
- π± Mobile Monitoring - On-the-go system checks
- π³ Container Deployment - Docker/Kubernetes
- βοΈ Cloud Hosting - AWS, Azure, DigitalOcean
- π¨ Branding - Update logos, colors, app name
- π Metrics - Add custom monitoring points
- π¨ Alerts - Configure notification methods
- π― Thresholds - Set custom warning levels
- π Integrations - Connect to external services
frontend/manifest.json- PWA settingspackage.json- Electron configurationlightmon.spec- PyInstaller build settingsbackend/.env- Environment variables
β
Cross-platform desktop application
β
Mobile-installable PWA
β
Real-time monitoring dashboard
β
Professional UI/UX design
β
Offline functionality
β
Native notifications
β
Easy deployment options
β
Production-ready security
β
Comprehensive documentation
β
Build automation scripts
We welcome contributions! Here's how to get started:
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
# Clone your fork
git clone <your-fork-url>
cd lightmon
# Install dependencies
pip install -r requirements.txt
npm install
# Start development
npm run electron-dev- π Check the SETUP.md guide
- π Review troubleshooting section
- π Open an issue for bugs
- π‘ Request features via issues
- Desktop app won't start β Check Python/Node.js installation
- PWA won't install β Ensure HTTPS in production
- Build failures β Clear cache and reinstall dependencies
MIT License - feel free to use in personal and commercial projects!
You now have a complete, professional server monitoring solution that works everywhere:
- β Desktop apps for Windows, macOS, and Linux
- β Mobile PWA for Android and iOS
- β Web dashboard for any browser
- β Offline capability with cached data
- β Professional UI with modern design
- β Production-ready security and features
Happy Monitoring! πππ₯οΈπ±
Made with β€οΈ for system administrators and developers worldwide
β Star this repo β’ π Report issues β’ π Fork & contribute