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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@redbud-hk/cordova-plugin-gaze

v1.0.7

Published

Eyetracking Plugin for Cordova

Readme

Cordova Plugin Gaze

Eyetracking Plugin for Cordova Projects.

Example Usage

Please run the plugin after deviceReady.


// Prepare the Gaze View
await cordova.plugins["cordova-plugin-gaze"].prepare();

// Get the Frame Size of the Gaze View (Mobile View Size)
const { height, width } = await cordova.plugins["cordova-plugin-gaze"].frame();
console.log(height, width);

// Start Eye Tracking Test
const { data, file } = await 
    cordova.plugins["cordova-plugin-gaze"].start(
            "https://file-examples-com.github.io/uploads/2017/04/file_example_MP4_480_1_5MG.mp4",
            "http://techslides.com/demos/sample-videos/small.mp4",
            "https://www.lotus-qa.com/wp-content/uploads/2020/02/testing.jpg",
            "Start", "Stop", "Loading...", 1.0
    );

console.log('Coordinates:', data);
console.log('File URL:', file);

Plugin Functions

prepare

Initialize the Eye Gaze View. Please run this function before calling other function(s) on this plugin

frame

Get the Height and Width of the Full-Screen View (a.k.a Device Frame Size).

  • Output :
    • height: The Device Frame Height in Number (Double).
    • width: The Device Frame Width in Number (Double).

start

Input :

  1. Eye-Tracking Main Video URL
  2. Ready Video URL (e.g : 3-2-1 Video)
  3. Pause Image URL
  4. Start Button Text
  5. Stop Button Text
  6. Auto Pause / Resume Continuous Period in Seconds

Process :

Start the Eye Tracking Test and play the video. This Function will required the permission for Microphone, Photos, Camera. The function process as follow :

  • Ask for all permission(s)
  • Load the Video from the given URL
  • Turn on the Front Camera for Eye Tracking
  • Show the Start Button

Once the Start Button is clicked, the function continue as follow :

  • Play the Video with Sound
  • Start the Screen Recording
  • Start the Audio Recording
  • Start recording Gaze Coordinates
  • Record the Front Camera AR Video

Once the Video is finished :

  • Stop the Video Player
  • Stop the Screen Recording
  • Stop Front Camera AR Reocrding
  • Stop recording Gaze Coordinates
  • Output the Front Camera AR Recording to Photos

Output :

  • data: The Gaze Coordinate Array in the format of [number, number, number, number] which equals [X-Axis, Y-Axis, Distance in CM, Time since starting in milliseconds]

  • file: The Front Camera AR Recording File Path