How shreyanshtripathi/businessmeetstechhackathon works
NERV is a factory-shift intelligence product: simulated plant activity and specialized staffing, assembly, and safety signals are fused into ranked incidents and actionable recommendations for human supervisors. The backend also exposes forecasts, emergency response, vision review, oversight, what-if checks, and shift handover; the dashboard presents live decisions and supporting operational views. The graph reflects documented and indexed calls only; several API and UI branches are included from README capabilities, with uncertain internal links omitted.
Main entry points: live.tsx Live Client · app.py REST & WebSocket API · plant.py Shift Plant · index.tsx Dashboard Views
Components 28
Factory Runtime
- Shift Plant
backend/shiftloop/plant.py - Shift Simulator
backend/shiftloop/simulator/shift.py - Factory State
backend/shiftloop/state.py - Factory Domain
backend/shiftloop/models.py - Camera Detection
backend/shiftloop/vision/service.py
Intelligence & Models
- Specialist Agents
backend/shiftloop/agents - Incident Intelligence
backend/shiftloop/central/engine.py - Action Recommendations
backend/shiftloop/central/recommend.py - Staff Matching
backend/shiftloop/matching.py - ML Forecast Bridge
backend/shiftloop/ml_bridge.py - Forest Predictions
ml/predict.py
Supervisor Operations
- REST & WebSocket API
backend/shiftloop/api/app.py - Decision Oversight
backend/shiftloop/oversight.py - Staffing What-if
backend/shiftloop/whatif.py - Copilot Service
backend/shiftloop/llm/chat.py - Shift Handover
backend/shiftloop/llm/handover.py
Supervisor Dashboard
- Dashboard Views
src/routes/index.tsx - Live Client
src/lib/live.tsx - API Client
src/lib/api.ts - People & What-if
src/routes/people.tsx - Line View
src/routes/line.tsx - Oversight View
src/routes/oversight.tsx - Alerts View
src/routes/alerts.tsx - Handover View
src/routes/handover.tsx - Decision Controls
src/components/sl/DecisionCard.tsx - Chat Copilot
src/components/sl/Copilot.tsx
Other components
- Supervisor
- Claude API
Connections 31
- Supervisor → Dashboard Views: reviews decisions
src/routes/index.tsx - Dashboard Views → Live Client: reads live state
src/routes/index.tsx - Decision Controls → Live Client: submits actions
src/components/sl/DecisionCard.tsx - People & What-if → Live Client: reads staffing
src/routes/people.tsx - Line View → Live Client: reads line state
src/routes/line.tsx - Oversight View → Live Client: reads records
src/routes/oversight.tsx - Live Client → API Client: fetches & polls
src/lib/live.tsx - API Client → REST & WebSocket API: calls REST
src/lib/api.ts - REST & WebSocket API → Shift Plant: advances shift
backend/shiftloop/api/app.py - REST & WebSocket API → Camera Detection: routes camera input
backend/shiftloop/api/app.py - Shift Plant → Shift Simulator: steps scenario
backend/shiftloop/plant.py - Shift Plant → Factory State: updates state
backend/shiftloop/plant.py - Shift Simulator → Factory State: reads & advances
backend/shiftloop/simulator/shift.py - Shift Plant → Specialist Agents: runs agents
backend/shiftloop/plant.py - Shift Plant → Incident Intelligence: ingests events
backend/shiftloop/plant.py - Incident Intelligence → Action Recommendations: builds actions
backend/shiftloop/central/engine.py - Action Recommendations → Staff Matching: matches workers
backend/shiftloop/central/recommend.py - Shift Plant → ML Forecast Bridge: gets forecasts
backend/shiftloop/plant.py - ML Forecast Bridge → Forest Predictions: requests predictions
backend/shiftloop/ml_bridge.py - Camera Detection → Shift Plant: records detections
backend/shiftloop/vision/service.py - REST & WebSocket API → Decision Oversight: serves oversight
backend/shiftloop/api/app.py - REST & WebSocket API → Staffing What-if: serves checks
backend/shiftloop/api/app.py - REST & WebSocket API → Copilot Service: routes chat
backend/shiftloop/api/app.py - REST & WebSocket API → Shift Handover: routes handover
backend/shiftloop/api/app.py - Copilot Service → Claude API: requests answers
- Shift Handover → Claude API: requests summary
- Chat Copilot → Live Client: uses live client
- Alerts View → Live Client: uses live client
- Handover View → Live Client: uses live client
- Dashboard Views → Decision Controls: renders cards
src/routes/index.tsx - Dashboard Views → Chat Copilot: renders copilot