How pedrocasaburi/neow works
Industrial Safety Monitor combines ESP32 helmet telemetry and a web operations console. The principal flow is sensor readings from the helmet to the backend, then live WebSocket telemetry to the dashboard and GPS map; the console also manages users, employees, helmets, safety analytics, and password recovery. Frontend dataService synchronizes application records with Supabase Realtime or local storage, while server.ts provides backend APIs and WebSocket service. README documents Resend OTP and regulatory analytics; sampled excerpts do not expose all route and component wiring, so uncertain links are omitted.
Main entry points: App.tsx Application shell · dataService.ts Application data service · server.ts API and WebSocket · ESP_Melhorado.ino ESP32 helmet
Components 21
Helmet telemetry
- ESP32 helmet
esp32/ESP_Melhorado.ino
Backend services
- API and WebSocket
server.ts - Resend email
Operations console
- Application shell
src/App.tsx - Live dashboard
src/components/Dashboard.tsx - GPS map
src/components/Map.tsx - Login and registration
src/components/Login.tsx - Registration form
src/components/Register.tsx - Password recovery
src/components/ForgotPasswordModal.tsx - User and role management
src/components/UserManagementModal.tsx - Employee management
src/components/EmployeeManagementModal.tsx - Helmet management
src/components/HelmetManagementModal.tsx - Safety analytics
src/components/SafetyAnalyticsModal.tsx - Profile management
src/components/ProfileModal.tsx - Privacy consent
src/components/CookieConsentBanner.tsx
Persistence and security
- Application data service
src/services/dataService.ts - Supabase client
src/services/supabaseClient.ts - Supabase database
- Local storage fallback
src/services/dataService.ts - Privacy and security
src/utils/security.ts
Other components
- Operator
Connections 24
- Operator → ESP32 helmet: wears
- ESP32 helmet → API and WebSocket: posts telemetry
- API and WebSocket → Application shell: streams telemetry
- Application shell → Live dashboard: renders
- Application shell → GPS map: renders
- Application shell → Login and registration: renders
- Application shell → Registration form: renders
- Application shell → Password recovery: renders
- Application shell → User and role management: renders
- Application shell → Employee management: renders
- Application shell → Helmet management: renders
- Application shell → Safety analytics: renders
- Application shell → Profile management: renders
- Application shell → Privacy consent: renders
- Application shell → Application data service: subscribes to
- Application shell → Application data service: saves users
- User and role management → Application data service: manages users
- Employee management → Application data service: saves employees
- Application data service → Supabase client: uses
- Supabase client → Supabase database: connects
- Application data service → Local storage fallback: falls back to
- Application data service → Privacy and security: protects personal data
- API and WebSocket → Supabase database: reads and writes
- API and WebSocket → Resend email: sends recovery email