How theheetchaudhari/plantnexus works
PlantNexus monitors industrial machine telemetry and guides operators from observing readings through deterministic condition analysis, evidence-grounded explanation, and recovery verification. The simulator generates healthy, degraded, and recovery scenarios; the backend ingests and stores readings, serves analytics and analysis APIs, and verifies sustained improvement; the dashboard presents these capabilities. The graph includes the landing experience and major dashboard views. Backend-to-frontend and simulator-to-backend links follow the README; some internal route details were not sampled, so uncertain calls are omitted.
Main entry points: App.tsx Dashboard application · server.js API service · client.ts API client · main.py Scenario simulator
Components 23
Telemetry simulation
- Scenario simulator
simulator/main.py - Machine scenarios
simulator/machine.py - Machine configuration
simulator/config.py
Backend intelligence
- API service
backend/src/server.js - PlantNexus data
backend/src/server.js - Telemetry analytics
backend/src/analytics.js - Anomaly detection
backend/src/detector.js - Evidence explanation
backend/src/explain.js - Recovery verification
backend/src/recovery.js
Operator dashboard
- Dashboard application
frontend/src/App.tsx - Route state
frontend/src/router.ts - API client
frontend/src/api/client.ts - Analysis state
frontend/src/hooks/useAnalysis.ts - Recovery state
frontend/src/hooks/useRecoveryVerification.ts - Operations overview
frontend/src/components/OverviewDashboard.tsx - Telemetry trends
frontend/src/components/TelemetryTrends.tsx - Analysis and evidence
frontend/src/components/AnalysisDashboard.tsx - Condition badge
frontend/src/components/ConditionBadge.tsx - Recovery dashboard
frontend/src/components/RecoveryDashboard.tsx
Landing experience
- Landing experience
frontend/src/components/LandingPage/LandingPage.tsx - Dashboard preview
frontend/src/components/LandingPage/DashboardPreview.tsx
Other components
- Plant operator
- Hosted Supabase
Connections 28
- Plant operator → Scenario simulator: selects scenario
- Machine configuration → Machine scenarios: configures
simulator/main.py - Scenario simulator → Machine scenarios: runs cycles
simulator/main.py - Scenario simulator → API service: posts telemetry
- Plant operator → Dashboard application: uses dashboard
- Dashboard application → Route state: reads routes
frontend/src/App.tsx - Dashboard application → Operations overview: renders
frontend/src/App.tsx - Dashboard application → Telemetry trends: renders
frontend/src/App.tsx - Dashboard application → Analysis and evidence: renders
frontend/src/App.tsx - Dashboard application → Recovery dashboard: renders
frontend/src/App.tsx - Dashboard application → Landing experience: renders
frontend/src/App.tsx - Landing experience → Dashboard preview: renders
frontend/src/components/LandingPage/LandingPage.tsx - Analysis and evidence → Analysis state: uses state
frontend/src/components/AnalysisDashboard.tsx - Analysis and evidence → Condition badge: renders
frontend/src/components/AnalysisDashboard.tsx - Recovery dashboard → Recovery state: uses state
frontend/src/components/RecoveryDashboard.tsx - Operations overview → Analysis state: uses state
frontend/src/App.tsx - Operations overview → Recovery state: uses state
frontend/src/App.tsx - Analysis state → API client: requests analysis
frontend/src/hooks/useAnalysis.ts - Recovery state → API client: requests verification
frontend/src/hooks/useRecoveryVerification.ts - Telemetry trends → API client: fetches telemetry
- API client → API service: calls API
- API service → PlantNexus data: reads and writes
backend/src/server.js - PlantNexus data → Hosted Supabase: persists records
- API service → Telemetry analytics: computes summaries
backend/src/server.js - API service → Anomaly detection: detects anomalies
backend/src/server.js - API service → Evidence explanation: grounds narrative
backend/src/server.js - API service → Recovery verification: verifies recovery
backend/src/server.js - Telemetry analytics → Anomaly detection: provides baselines
backend/src/detector.js