How ak-270704/network-stability-predictor-dashboard-v2 works
This repository implements a network-stability monitoring product: network measurements are collected or ingested, validated and stored, then surfaced with predictions in a live dashboard. The backend also exposes location, alert, metric and prediction APIs; an ML service provides current and future predictions. Edges follow the shown imports, calls and route registrations. The README is empty, and some listed subsystems (including automatic prediction and alert/location behavior) were not sampled, so their internal relationships are not inferred.
Main entry points: mlMetricController.js ML Metric API · predictionRecoveryService.js Prediction Recovery · App.jsx Dashboard · predictionController.js Prediction API
Components 31
Measurement Collection
- Network Collector
python-ml/collector/network_collector.py - Retry Queue
python-ml/collector/retry_queue.py - Backend Sender
python-ml/collector/backend_sender.py
Backend API
- API Application
backend/app.js - Metric Routes
backend/routes/metricRoutes.js - Prediction Routes
backend/routes/predictionRoutes.js - Metric API
backend/controllers/metricController.js - ML Metric API
backend/controllers/mlMetricController.js - Location API
backend/controllers/locationController.js - Alert API
backend/controllers/alertController.js - Prediction API
backend/controllers/predictionController.js - Metric Processing
backend/services/metricProcessingService.js - Collector Service
backend/services/collectorService.js - Locations
backend/models/Location.js - Metrics
backend/models/Metric.js - ML Metrics
backend/models/MLNetworkMetric.js - Predictions
backend/models/Prediction.js - Alerts
backend/models/Alert.js - Socket Updates
backend/sockets/socket.js
Prediction Services
- Prediction Recovery
backend/services/predictionRecoveryService.js - Automatic Predictions
backend/services/automaticPredictionService.js - ML HTTP Client
backend/services/mlService.js
Live Dashboard
- Dashboard
frontend/src/App.jsx - API Client
frontend/src/services/api.js - Socket Client
frontend/src/services/socket.js - Metric Card
frontend/src/components/Dashboard/MetricCard.jsx - Prediction Panel
frontend/src/components/Dashboard/PredictionPanel.jsx
ML Runtime
- ML Prediction API
python-ml/src/api/main.py - Model Loader
python-ml/src/api/model_loader.py
Other components
- Network Environment
- Dashboard User
Connections 34
- Network Environment → Network Collector: provides measurements
- Network Collector → Backend Sender: sends measurements
python-ml/collector/network_collector.py - Network Collector → Retry Queue: uses retries
python-ml/collector/network_collector.py - API Application → Metric Routes: mounts routes
backend/app.js - API Application → Prediction Routes: mounts routes
backend/app.js - Metric Routes → Metric API: dispatches requests
backend/routes/metricRoutes.js - Metric Routes → ML Metric API: dispatches requests
backend/routes/metricRoutes.js - Prediction Routes → Prediction API: dispatches requests
backend/routes/predictionRoutes.js - Metric API → Collector Service: collects measurements
backend/controllers/metricController.js - Metric API → Metric Processing: processes metrics
backend/controllers/metricController.js - Metric Processing → Metrics: writes metrics
backend/services/metricProcessingService.js - Metric Processing → Socket Updates: emits updates
backend/services/metricProcessingService.js - ML Metric API → Locations: checks location
backend/controllers/mlMetricController.js - ML Metric API → ML Metrics: stores and reads metrics
backend/controllers/mlMetricController.js - ML Metric API → Prediction Recovery: processes prediction
backend/controllers/mlMetricController.js - ML Metric API → Socket Updates: emits metric update
backend/controllers/mlMetricController.js - Prediction API → ML HTTP Client: requests predictions
backend/controllers/predictionController.js - Prediction API → Predictions: creates and reads
backend/controllers/predictionController.js - Prediction API → Socket Updates: emits prediction
backend/controllers/predictionController.js - Prediction Recovery → ML Metrics: claims and updates
backend/services/predictionRecoveryService.js - Prediction Recovery → Predictions: recovers or creates
backend/services/predictionRecoveryService.js - Prediction Recovery → ML HTTP Client: requests prediction
backend/services/predictionRecoveryService.js - Prediction Recovery → Socket Updates: emits prediction
backend/services/predictionRecoveryService.js - ML HTTP Client → ML Prediction API: posts predictions
backend/services/mlService.js - ML Prediction API → Model Loader: loads model
python-ml/src/api/main.py - Dashboard → API Client: loads data
frontend/src/App.jsx - Dashboard → Socket Client: subscribes to updates
frontend/src/App.jsx - Dashboard → Metric Card: renders metrics
frontend/src/App.jsx - Dashboard → Prediction Panel: renders predictions
frontend/src/App.jsx - Dashboard User → Dashboard: views status
- Automatic Predictions → Prediction Recovery: may trigger processing
- Alert API → Alerts: reads and writes alerts
backend/controllers/alertController.js - Location API → Locations: manages locations
backend/controllers/locationController.js - Backend Sender → ML Metric API: submits metrics