SkyCheck enables site inspectors and heavy machinery operators to perform rapid, repeatable safety audits in low-connectivity or offline industrial environments. Using a smartphone camera, the system performs real-time edge anomaly classification directly inside the browser, stores inspections in a local sync queue, synchronizes with a central PostgreSQL database when online, and generates AI narrative maintenance briefs.
- Live PWA Frontend (Vercel): https://dist-five-gules-45.vercel.app
- Live API Backend (Railway): https://backend-production-a67b6.up.railway.app
- Backend Health / Demo Authenticator: https://backend-production-a67b6.up.railway.app/api/auth/demo
graph TD
subgraph Client [Browser Client / PWA]
UI[React UI / Slate & Safety Yellow]
TF[TensorFlow.js / Pixel Heuristics Assist]
IDB[Dexie.js / IndexedDB Storage]
SyncClient[Sync Service / Auto Reconciler]
SignUp[SignUp & ForgotPassword OTP Flow]
end
subgraph Cloud [Cloud Services]
LB[Railway Gateway]
API[Spring Boot 3.5 API Server]
Mail[JavaMailSender SMTP / Fallback Logs]
DB[(PostgreSQL Database)]
Gemini[Google Gemini API]
end
UI --> TF
UI --> IDB
IDB --> SyncClient
SyncClient -->|HTTPS REST Batch| LB
LB --> API
API --> DB
API -->|Prompt Context| Gemini
API -->|OTP Dispatch| Mail
Gemini -->|Narrative Brief| API
- Offline First: Service worker caching and PWA manifests enable full app launch and camera functions without active internet connection.
- Client Cache: Powered by Dexie.js (IndexedDB v2 schema) with auto-incrementing IDs for local creations.
- Dynamic visual effects: Features advanced mouse-following border glows, 3D card tilt, particle systems, and hardware-accelerated aurora waves.
- Edge Inference & Heuristic Assist: Runs defect classification on camera feeds. Integrates real-time canvas pixel scanners (color ratio, contrast edge line, shadow/specular highlights) to boost anomaly detection accuracy.
- JPA & Hibernate Persistence: Schema and data initialization mapped cleanly for heavy industrial assets.
- Security & Password Recovery: Gated API routes with stateless JWT tokens, SignUp controls, and an SMTP OTP verification engine.
- Cascading ID Reconciliation: Restores local auto-increment IDs to central database primary keys upon synchronization.
- Navigate to the Live PWA Frontend.
- Click SignUp Profile at the bottom of the login card.
- Fill in the registry form (Name, Username, Email, Role, and Passcode) and submit to create your profile and log in.
- Log out. Click Forgot Passcode? on the login page.
- Enter the registered email address and submit.
- Open your Railway project's
backendlogs (in the Railway dashboard) and locate the printed verification code:==========================================OTP CODE FOR username@email.com IS: XXXXXX========================================== - Enter the OTP code in the app, choose a new passcode, and confirm you can log in with the new credentials.
- Select any machinery and click Start Inspection. Allow camera permissions.
- Corrosion check: Point the camera at a rusted surface, brown box, or orange object -> the classifier dynamically detects color chroma and tags Corrosion.
- Crack check: Point the camera at a blank paper with a bold black line -> the classifier detects high-contrast lines and tags Crack.
- Point at a normal surface -> the classifier resets to Normal.
- On the Dashboard, click Register Asset. Add a machine (e.g.
Volvo Loader, ModelL150, SerialVO-992). - Toggle Developer Tools (F12) -> Network -> Offline. The header shows OFFLINE WORKSPACE.
- Click on the new machine card. Click Add Component to register custom safety checkpoints (e.g.
Engine Fan Belt). - Click Start Inspection to run the safety audit offline. Save it.
- In the machine details, click Delete next to any component to remove it "one by one", or click Decommission Asset to delete the machine.
- Toggle connection back to Online -> click Sync Now. Local changes sync instantly to PostgreSQL on Railway, executing cascading ID maps.
This project was co-developed by a two-member team from the CSBS (Computer Science and Business Systems) department:
- Priyanshu Ghosh (CSBS)
- Riya Gupta (CSBS)
- Free-Tier SMTP / Logs Fallback: To support a 100% free deploy, the mail sender service falls back to logging generated security codes directly to the server logs if active SMTP mail credentials are not provided.
- Camera Simulator: Standard boundary boxes are rendered dynamically around detected pixel segments to provide visual inspector feedback.
- Bypass Access: Quick demo login buttons bypass REST auth queries using preset accounts for judging convenience.