Skip to content
Β 
Β 

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ LightMon Desktop & PWA - Complete Server Monitoring Solution

LightMon Logo Platform PWA License

Professional VM-based Server Monitoring Tool
Now available as Desktop App + Progressive Web App

πŸ–₯️ Desktop App β€’ πŸ“± PWA Features β€’ πŸš€ Quick Start β€’ πŸ“– Documentation


🎯 What's New - Complete Transformation!

Your Flask monitoring tool has been completely transformed into a modern, cross-platform solution:

✨ New Capabilities

  • πŸ–₯️ 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)

πŸ–₯️ Desktop Application

Electron-Powered Native App

  • 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

Key Desktop Features

βœ… 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

πŸ“± Progressive Web App (PWA)

Mobile & Web Installation

  • 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

PWA Features

βœ… Add to home screen (mobile)
βœ… Install from browser (desktop)
βœ… Offline dashboard access
βœ… Cached API responses
βœ… Background data sync
βœ… Native app shortcuts

πŸš€ Quick Start

Option 1: Interactive Startup (Recommended)

Windows:

# Double-click or run:
start-lightmon.bat

Linux/macOS:

chmod +x start-lightmon.sh
./start-lightmon.sh

Option 2: Direct Commands

Desktop App:

npm run electron-dev

Web App Only:

python backend/main.py

Build Executable:

pyinstaller lightmon.spec

πŸ“Š Core Monitoring Features

Real-time System Metrics

  • πŸ–₯️ 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

Advanced Features

  • 🚨 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

πŸ› οΈ Installation & Setup

Prerequisites

  • Python 3.8+
  • Node.js 16+
  • Git (optional)

Step 1: Get the Code

git clone <your-repo-url>
cd lightmon

Step 2: Install Dependencies

# Python dependencies
C

Step 3: Launch

# Interactive launcher
./start-lightmon.sh    # Linux/Mac
start-lightmon.bat     # Windows

# Or directly
npm run electron-dev   # Desktop app
python backend/main.py # Web app

πŸ“¦ Distribution & Packaging

Desktop Executables

Windows (.exe):

build-scripts\build-windows.bat
# Output: dist\LightMon.exe

macOS (.app):

./build-scripts/build-mac.sh
# Output: dist/LightMon.app

Linux (AppImage):

./build-scripts/build-linux.sh  
# Output: dist/LightMon

Electron Distributables

npm run build-win    # Windows installer
npm run build-mac    # macOS DMG
npm run build-linux  # Linux packages

πŸ”’ Security & Production Features

Enhanced Security

  • πŸ›‘οΈ 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

Production Ready

  • πŸ“Š Health Check Endpoint - /api/health
  • 🐳 Docker Support - Container deployment
  • πŸ“ Comprehensive Logging - Error tracking
  • πŸ”„ Auto-restart - Process management
  • πŸ“ˆ Performance Optimized - Efficient monitoring

🎨 User Interface

Modern Design

  • 🎨 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

Desktop-Specific UI

  • πŸ–₯️ Native Menus - Platform-appropriate controls
  • πŸ”” System Notifications - Native alert popups
  • πŸ“Œ System Tray - Background operation
  • ⌨️ Keyboard Shortcuts - Power user features

πŸ“– Documentation

Complete Guides

  • πŸ“‹ SETUP.md - Detailed setup instructions
  • πŸ“ PROJECT_STRUCTURE.md - Code organization
  • πŸ”§ Build Scripts - Automated packaging
  • 🐳 Docker Compose - Container deployment

API Documentation

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

🎯 Use Cases

Perfect For:

  • 🏒 System Administrators - Monitor server infrastructure
  • πŸ’» Developers - Track application performance
  • 🏠 Home Labs - Monitor personal servers
  • 🏭 Small Businesses - Cost-effective monitoring
  • πŸŽ“ Students - Learn system monitoring concepts

Deployment Scenarios:

  • πŸ–₯️ 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

πŸ”§ Customization

Easy Modifications

  • 🎨 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

Configuration Files

  • frontend/manifest.json - PWA settings
  • package.json - Electron configuration
  • lightmon.spec - PyInstaller build settings
  • backend/.env - Environment variables

πŸš€ What You Get

🎁 Complete Package:

βœ… 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

🀝 Contributing

We welcome contributions! Here's how to get started:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

Development Setup

# 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

πŸ“ž Support

Getting Help

Common 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

πŸ“„ License

MIT License - feel free to use in personal and commercial projects!


πŸŽ‰ Congratulations!

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

# LightMon

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages