npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

webeyetrack

v0.0.2

Published

A library for real-time eye tracking in the browser

Downloads

201

Readme

WebEyeTrack in JS/TS

Created by Eduardo Davalos, Yike Zhang, Namrata Srivastava, Yashvitha Thatigolta, Jorge A. Salas, Sara McFadden, Cho Sun-Joo, Amanda Goodwin, Ashwin TS, and Guatam Biswas from Vanderbilt University, Trinity University, St. Mary's University

Project | Paper | Demo

NPM Version PyPI - Version GitHub License

The JS/TS implementation of WebEyeTrack uses a Web Worker to offload the AI inference to an isolated worker thread, preventing the main UI thread to become unresponsive. Lastly, we made the webeyetrack independent of a UI framework such as React, Vue, or Angular.

Additionally, you can combine webeyetrack, a gaze estimation JS library, with webfixrt, an online fixation detection JS library, to extract fixation and saccade information as a real-time stream.

Getting Started

Install the npm package running the following command:

npm install webeyetrack

Usage

To use WebEyeTrack, we provide a webcam client solution to support the streaming of frames into the tracker.

const webcamClient = new WebcamClient('video'); // id of HTMLVideoElement
const webEyeTrackProxy = new WebEyeTrackProxy(webcamClient);

Then you define the callback function once gaze estimation results are available:

webEyeTrackProxy.onGazeResults = (gazeResult: GazeResult) => {
  console.log(gazeResult)
}

GazeResult Interface (TypeScript)

| Field Name | Type | Shape / Values | Description | |------------------|-------------------------------|----------------------|-----------------------------------------------------| | facialLandmarks | NormalizedLandmark[] | [N, 5] | Facial landmarks, normalized to screen or image | | faceRt | Matrix | [4, 4] | Face rotation-translation matrix | | faceBlendshapes | Classifications[] | [N, 1] | Blendshape classification outputs | | eyePatch | ImageData | [H=512, W=128, 3] | RGB image of the eye region | | headVector | number[] | [3] | Head direction vector in camera coordinates | | faceOrigin3D | number[] | [3] (X, Y, Z) | 3D origin of the face in space | | metric_transform | Matrix | [4, 4] | Transformation matrix applied to reconstructed face| | gazeState | 'open' | 'closed' | Enum-like Literal | Current eye state (e.g., blink detection) | | normPog | number[] | [2] (X, Y) | Normalized point-of-gaze on the screen | | durations | Record<string, number> | — | Timing metadata for each processing stage (seconds)| | timestamp | number | — | Timestamp in milliseconds of video start (relative) |

The normalized PoG is from range [[-0.5, 0.5], [-0.5, 0.5]] where the origin (0,0) is located at the center of the screen. The positive Y axis is pointing downwards and the positive X axis is pointing toward the right.

Demo

Try out the demo located within the example-app directory by running the following commands:

cd js
# Build the ``webeyetrack`` bundle locally
npm install
npm run build 

# Run the example React app
cd example-app
npm install
npm run start

Then you should be able to visit the React application at https://localhost:3000

Acknowledgements

The research reported here was supported by the Institute of Education Sciences, U.S. Department of Education, through Grant R305A150199 and R305A210347 to Vanderbilt University. The opinions expressed are those of the authors and do not represent views of the Institute or the U.S. Department of Education.

Reference

If you use this work in your research, please cite us using the following:

@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}
}

License

WebEyeTrack is open-sourced under the MIT License, which permits personal, academic, and commercial use with proper attribution. Feel free to use, modify, and distribute the project.