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

develex-js-sdk

v0.3.9

Published

A TypeScript/JavaScript SDK for integrating eye tracking and gaze-based interactions into web applications. It is part of the develex ecosystem and focuses on gaze data processing for dyslexia interventions and gaze based interactions in web applications.

Readme

DevelexCore

A TypeScript/JavaScript SDK for integrating eye tracking and gaze-based interactions into web applications. It is part of the develex ecosystem and focuses on gaze data processing for dyslexia interventions and gaze based interactions in web applications.

Quick Start

npm install develex-js-sdk
import { GazeManager } from 'develex-js-sdk';

// Create the gaze manager, which serves as the main entry point for all gaze functionality
const gazeManager = new GazeManager();

// Configure and connect to an eye tracker
gazeManager.createInput({
  tracker: 'gazepoint',
  uri: 'ws://localhost:4242',
  fixationDetection: 'device'
});
await gazeManager.connect();
await gazeManager.subscribe();
await gazeManager.start();

// Calibrate window coordinates (essential for proper gaze tracking)
await gazeManager.setWindowCalibration(
  { clientX: 100, clientY: 100, screenX: 150, screenY: 200 },
  { screen: { width: 1920, height: 1080 } }
);

// Register elements for gaze interaction
gazeManager.register({
  interaction: 'dwell',
  element: document.getElementById('myButton'),
  settings: {
    dwellTime: 1000,
    bufferSize: 100,
    toleranceTime: 150,
    onDwellProgress: (event) => {},
    onDwellFinish: (event) => console.log('User dwelled on button!'),
    onDwellCancel: (event) => {}
  }
});

Documentation

Core Features

Multi-Device Support

  • GazePoint - Professional eye tracking devices
  • EyeLogic - Consumer-grade eye trackers
  • ASEE - Advanced eye tracking systems
  • Dummy Input - Testing and development

Gaze Interaction Types

  • Fixation Detection - Identifies when gaze stabilises on elements
  • Saccade Tracking - Monitors rapid eye movements between points
  • Dwell Time - Tracks how long gaze remains on elements
  • Intersection Detection - Real-time gaze-element intersection
  • Validation - Accuracy and precision measurements

Technical Features

  • Real-time Processing - Processes gaze data as it arrives, with configurable detection algorithms
  • Window Calibration - Maps screen coordinates to browser window coordinates
  • Fixation Analysis - Implements fixation detection algorithms for gaze analysis
  • Event-Driven Architecture - Uses an event system for handling gaze interactions

Architecture

The SDK is built around the GazeManager class, which provides a unified interface for all gaze functionality. The main components include:

  • GazeManager - Main class that coordinates all gaze operations and provides the primary API
  • GazeInput - Handles communication with different eye tracking devices
  • GazeInteraction - Contains modules for detecting various types of gaze interactions
  • GazeFixationDetector - Implements algorithms for detecting eye fixations
  • GazeWindowCalibrator - Manages coordinate system calibration between screen and browser window

Most applications only need to use the GazeManager class, which provides a simplified interface for common operations.

Testing

A separate testing interface exists for validating eye tracker functionality. To use it:

  1. Start your eye tracking controller software (such as GazePoint Control)
  2. Start the develex-bridge application
  3. Visit the testing website to validate that everything works correctly

Note: This testing interface is separate from the main SDK and includes additional components for demonstration purposes.

Development

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Run tests
npm test

# Lint code
npm run lint

Publishing

The package publishes to npm automatically when changes are pushed to the main branch. You can also publish manually:

npm publish

License

This project is part of the develex ecosystem. See the main develex repository for licensing information.

Related Projects