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

liveness-checker

v0.0.1

Published

Easy to use tool to check user liveness via webcam

Downloads

24

Readme

Liveness Checker

A privacy-focused tool for checking that a user is real using their webcome and local facial recognition. All processing happens on the user's device - no data is ever sent to any servers.

Live Demo

Try the liveness checker directly: https://universal-verify.github.io/liveness-checker/

Integration Examples

See how to integrate the liveness checker into your website: https://universal-verify.github.io/liveness-checker/examples

Installation

npm install liveness-checker

Usage

import livenessChecker from 'liveness-checker';

// Basic usage with async/await
try {
    await livenessChecker.checkLiveness();
    console.log('Liveness check passed');
} catch (error) {
    console.error('Liveness check failed:', error);
}

// Or with .then/.catch
livenessChecker.checkLiveness()
    .then(() => {
        console.log('Liveness check passed');
    })
    .catch((error) => {
        console.error('Liveness check failed:', error);
    });

API Reference

checkLiveness()

Opens the liveness checker in a new tab and returns a Promise that resolves on success or rejects on error (or if the tab is closed or popup is blocked).

Returns
  • Promise<void>: Resolves if the liveness check is successful, rejects with an error code if it fails, the tab is closed, or the popup is blocked.
Possible Rejection Error Codes
  • CANCELLED: The user closed the liveness check tab before completing the process.
  • POPUP_BLOCKED: The browser blocked the popup window from opening.
  • WEBCAM_ERROR: There was an issue accessing the user's webcam (e.g., permission denied or device not found).
  • INTERNAL_ERROR: An unexpected error occurred during the liveness check process.

Privacy

The liveness checker processes all data locally on the user's device:

  • Video from the user's camera is processed in real-time
  • No video or biometric data is ever sent to any servers
  • If directed from another website, only the liveness result is shared
  • All processing happens in the user's browser

Legal

This liveness checker provides a basic level of evidence that a user is physically present and real through facial analysis. For use cases requiring higher confidence, we recommend using a comprehensive identity verification solution like Universal Verify.

The liveness checker is provided "as is" without any warranties, express or implied. Users are responsible for ensuring compliance with applicable laws and regulations regarding identity verification in their jurisdiction.

License

MPL-2.0

Credits

This project uses face-api.js for facial detection and liveness checking. All processing is done locally on the user's device.