iamgajanan70/sleepDetector — reverse-engineered prompt
Reverse engineered prompt
Build me a browser based drowsiness detector called Sentinel that works from a simple HTML, CSS, and JavaScript setup.
It should use the webcam to watch the user’s face in real time, track facial landmarks, and detect when their eyes are closed or their head position suggests they’re falling asleep. When sleep is detected, it should immediately trigger a loud alarm using a local MyMusic.mp3 file and show a strong red visual warning on the screen.
Make the interface feel like a futuristic cyberpunk monitoring dashboard, with the camera view, live status indicators, animated HUD effects, scanlines, and responsive panels. Include controls on the page so I can adjust the sleep delay threshold and eye sensitivity without editing code.
Everything should run locally in the browser for privacy, with no backend. It should ask for camera permission, handle the browser audio unlock by letting the user click the dashboard first, and work by opening index.html in a modern browser.
Want more depth? Deep Reverse