How nmechiworx/live_simulator works
This is a browser-based factory workforce monitoring simulation: the user views a 3D factory, observes employee movement and restricted-zone occupancy, and can inspect workforce, alerts, and history. App.tsx visibly orchestrates factory geometry, restricted-zone rendering, movement history, and camera following; sampled components show route-based movement and employee markers. Dashboard and data modules provide workforce and sensor-health summaries. Several App.tsx excerpts are omitted, so uncertain orchestration links are left unverified rather than inferred as definite calls.
Main entry points: App.tsx Simulation app · ManagementDashboard.tsx Management dashboard · routes.ts Route definitions · employees.ts Employee records
Components 20
Simulation orchestration
- Simulation app
src/App.tsx - History model
src/types/history.ts
Factory visualization
- Camera follow
src/components/CameraFollow.tsx - Factory walls
src/components/FactoryWalls.tsx - Factory zones
src/components/FactoryZones.tsx - Machine models
src/components/Machine.tsx - Workstations
src/components/Workstation.tsx - Restricted zones
src/components/RestrictedZone.tsx - Movement trail
src/components/MovementTrail.tsx
Workforce and routes
- Employee marker
src/components/EmployeeMarker.tsx - Route movement
src/components/MovingEmployee.tsx - Route display
src/components/EmployeeRoute.tsx - Route definitions
src/data/routes.ts - Route model
src/types/route.ts
Monitoring and domain data
- Management dashboard
src/components/ManagementDashboard.tsx - Employee records
src/data/employees.ts - Safety zones
src/data/safetyZones.ts - Monitoring zones
src/data/monitoring.ts - Employee model
src/types/employee.ts
Other components
- Viewer
Connections 22
- Viewer → Simulation app: uses
- Simulation app → Factory walls: renders
src/App.tsx - Simulation app → Factory zones: renders
src/App.tsx - Simulation app → Machine models: renders
src/App.tsx - Simulation app → Restricted zones: renders
src/App.tsx - Simulation app → Camera follow: configures
src/App.tsx - Simulation app → Movement trail: renders
src/App.tsx - Simulation app → Safety zones: checks zones
src/App.tsx - Route movement → Employee marker: renders
src/components/MovingEmployee.tsx - Management dashboard → Employee records: reads
src/components/ManagementDashboard.tsx - Management dashboard → Route definitions: reads
src/components/ManagementDashboard.tsx - Management dashboard → Monitoring zones: uses
src/components/ManagementDashboard.tsx - Management dashboard → Safety zones: uses position type
src/components/ManagementDashboard.tsx - Employee records → Employee model: types records
src/data/employees.ts - Route definitions → Route model: types routes
src/data/routes.ts - Simulation app → Management dashboard: renders
src/App.tsx - Simulation app → Route movement: updates movement
src/App.tsx - Simulation app → Route display: renders routes
src/App.tsx - Simulation app → Employee records: loads records
src/App.tsx - Simulation app → Route definitions: loads routes
src/App.tsx - Simulation app → Workstations: renders
src/App.tsx - Simulation app → History model: tracks history
src/App.tsx