Architecture
Overview of Webgazer.ts architecture and design decisions.
Core Components
- Trackers - Face and eye feature detection (TensorFlow.js FaceMesh)
- Regressors - Gaze prediction algorithms (Ridge regression variants)
- Filters - Smoothing and noise reduction (Kalman filters)
- Storage - Data persistence (IndexedDB/localStorage)
- Events - Event system for lifecycle management
Design Principles
- TypeScript-first - Full type safety
- Modular - Pluggable trackers and regressors
- Privacy-focused - Opt-in data storage
- Performance - Web Workers, efficient algorithms
- Developer experience - Clear APIs, good documentation
More Details
Coming soon! See the source code for implementation details.