### Install WebEyeTrack via NPM Source: https://redforestai.github.io/WebEyeTrack Use this command to install the WebEyeTrack package in your project. ```bash npm install webeyetrack ``` -------------------------------- ### Initialize WebEyeTrack Client Source: https://redforestai.github.io/WebEyeTrack Initialize the WebcamClient and WebEyeTrackProxy to begin streaming frames for gaze estimation. ```javascript import { WebcamClient, WebEyeTrackProxy } from 'webeyetrack' const webcamClient = new WebcamClient('video'); // id of HTMLVideoElement const webEyeTrackProxy = new WebEyeTrackProxy(webcamClient); ``` -------------------------------- ### Cite WebEyeTrack Source: https://redforestai.github.io/WebEyeTrack Use this BibTeX entry to cite the WebEyeTrack research paper. ```bibtex @misc{davalos2025webeyetrack, title={WEBEYETRACK: Scalable Eye-Tracking for the Browser via On-Device Few-Shot Personalization}, author={Eduardo Davalos and Yike Zhang and Namrata Srivastava and Yashvitha Thatigotla and Jorge A. Salas and Sara McFadden and Sun-Joo Cho and Amanda Goodwin and Ashwin TS and Gautam Biswas}, year={2025}, eprint={2508.19544}, archivePrefix={arXiv}, primaryClass={cs.CV}, url={https://arxiv.org/abs/2508.19544} } ``` -------------------------------- ### Handle Gaze Estimation Results Source: https://redforestai.github.io/WebEyeTrack Define the callback function to process gaze estimation results as they become available. ```javascript webEyeTrackProxy.onGazeResults = (gazeResult: GazeResult) => { console.log(gazeResult) } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.