charliegerard/gaze-detection
A JavaScript library that uses TensorFlow.js face landmark models to detect eye gaze direction for gaze-controlled experiences.

Velocity · 7d
+0.3
★ / day
Trend
→steady
star history
This library enables gaze tracking directly in the browser using TensorFlow.js. It loads pre-trained face landmark detection models to identify where the user is looking—right, left, up, or straight. The package handles camera setup and provides a simple API to get real-time gaze predictions via requestAnimationFrame, making it accessible for web developers to build accessibility or interaction tools powered by eye tracking.