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

uareu-biometric

v1.0.2

Published

Modern Node.js library for DigitalPersona 4500 biometric devices - FeatureSet matching and comparison

Downloads

16

Readme

UAREU Biometric Library

Modern Node.js library for DigitalPersona 4500 biometric devices, focused on FeatureSet matching and comparison.

Features

  • ✅ FeatureSet matching and comparison
  • ✅ High-performance biometric scoring
  • ✅ TypeScript support with full type definitions
  • ✅ Modern async/await API
  • ✅ Windows x64 support
  • ✅ Lightweight and focused on core functionality

Installation

npm install uareu-biometric

Quick Start

import { FeatureSetMatcher } from 'uareu-biometric';

const matcher = new FeatureSetMatcher();

// Initialize the matcher
await matcher.initialize();

// Compare two FeatureSets
const result = await matcher.matchFeatureSets(featureSet1, featureSet2);

console.log(`Match score: ${result.score}`);
console.log(`Is match: ${result.isMatch}`);
console.log(`Confidence: ${result.confidence}`);

API Reference

FeatureSetMatcher

Main class for biometric matching operations.

Methods

initialize(): Promise<void>

Initializes the biometric engine. Must be called before any matching operations.

matchFeatureSets(fs1: Buffer, fs2: Buffer): Promise<FeatureSetMatch>

Compares two FeatureSets and returns match results.

Parameters:

  • fs1: First FeatureSet as Buffer
  • fs2: Second FeatureSet as Buffer

Returns: Promise

validateFeatureSet(featureSet: Buffer): Promise<boolean>

Validates if a Buffer contains a valid FeatureSet.

getFeatureSetInfo(featureSet: Buffer): Promise<FeatureSetData>

Extracts information from a FeatureSet.

Types

FeatureSetMatch

interface FeatureSetMatch {
  score: number;        // Similarity score (0-100000)
  threshold: number;    // Recommended threshold for matching
  isMatch: boolean;     // Whether it's considered a match
  confidence: number;   // Confidence level (0-1)
}

FeatureSetData

interface FeatureSetData {
  format: number;  // FeatureSet format
  data: Buffer;    // Raw FeatureSet data
  size: number;    // Data size in bytes
}

Requirements

  • Node.js 16.0.0 or higher
  • Windows x64 operating system
  • DigitalPersona SDK compatible FeatureSets

Error Handling

The library provides structured error handling:

import { FeatureSetMatcher, ErrorHandler } from 'uareu-biometric';

try {
  const matcher = new FeatureSetMatcher();
  await matcher.initialize();
  const result = await matcher.matchFeatureSets(fs1, fs2);
} catch (error) {
  if (error instanceof ErrorHandler) {
    console.error('Biometric error:', error.message);
    console.error('Details:', error.originalError);
  } else {
    console.error('Unexpected error:', error);
  }
}

Advanced Usage

For advanced use cases, you can access the underlying UareU library:

import { UareU } from 'uareu-biometric';

const uareu = UareU.getInstance();
await uareu.loadLibs();
// Access low-level functionality...

Platform Support

  • ✅ Windows x64
  • ❌ Windows x32 (not supported)
  • ❌ macOS (not supported)
  • ❌ Linux (not supported)

License

MIT License - see LICENSE file for details.

Contributing

This library focuses exclusively on FeatureSet matching functionality. For bug reports or feature requests related to core matching capabilities, please open an issue.

Support

For technical support or questions about FeatureSet matching, please refer to the DigitalPersona SDK documentation or create an issue in this repository.