Offline Hazard Capture Sandbox
When an electrician finds standing water in a sub-basement, cellular signal is usually dead. This sandbox demonstrates how frontline reporting works without an app store download or a login screen. The worker snaps a photo and enters their site badge number. The phone saves the report locally, and pushes it to the project office the moment signal returns.
Turn off your phone or laptop's Wi-Fi, or switch on physical Airplane Mode in quick settings. Because the service worker is active, this page will not display a browser "No Internet" error. You can submit an observation, reload the page with zero signal, and turn Wi-Fi back on to watch the queue push automatically.
Browser Local Storage Queue
0 PendingWhen cellular signal drops, submissions write directly to the browser's local memory. When signal returns, records push automatically.
localStorage's ~5-10MB
per-site quota after just 1 or 2 submissions, and every save there rewrites the entire
queue as one JSON string. This sandbox shrinks each photo on an offscreen
<canvas> element to WebP format (~140KB) and writes it as a raw image
Blob to IndexedDB one queued record at a time, so quota and
rewrite cost stop scaling with queue length.
Gate Induction Resolver (Server)
5 Trades Pre-LoadedThe worker only typed a badge number. When received by the server, the backend resolves the employer, trade contract, and valid certifications:
| Badge | Trade Worker | Subcontractor Firm | Verified Certs |
|---|---|---|---|
| B-4819 | Marcus Vance | Pinnacle Steel Erectors | OSHA 30 · Subpart R |
| B-5102 | Elena Rostova | Apex Mechanical | NFPA 51B (Hot Work Permit Authorizer) · Confined Space |
| B-3921 | David Chen | Liberty Electrical | NFPA 70E Arc Flash |
| B-6044 | Jamar Jackson | Tri-State Concrete | OSHA 10 · Silica |