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

identify-biometrics

v1.0.1

Published

A biometric scanning UI component with facial recognition animation for React, Laravel, and vanilla JavaScript

Readme

Identify Biometrics

A comprehensive biometric scanning UI component library with facial recognition animation. Supports React, Next.js, Laravel, and vanilla JavaScript.

Features

  • 🎯 Multi-Framework Support: React, Next.js, Laravel, and vanilla JS
  • 🎨 Amber Color Scheme: Beautiful orange/brown color palette
  • Sequential Animation: Realistic facial feature scanning with orange dots
  • 📱 Responsive Design: Works on both desktop and mobile
  • Success/Error States: Visual feedback for scan results
  • 🎛️ Customizable: Colors, sizes, and animation timing
  • 🔧 TypeScript Support: Full type definitions included

Installation

npm install identify-biometrics

Quick Start

React / Next.js

import React, { useState } from 'react';
import { ReactBiometricScanner } from 'identify-biometrics';

function App() {
  const [isScanning, setIsScanning] = useState(false);
  const [status, setStatus] = useState('idle');

  const handleScanComplete = (result) => {
    console.log('Scan result:', result);
    setStatus(result);
    setIsScanning(false);
  };

  return (
    <div>
      <ReactBiometricScanner
        isScanning={isScanning}
        status={status}
        onScanComplete={handleScanComplete}
        size="medium"
      />
      <button onClick={() => setIsScanning(true)}>
        Start Scan
      </button>
    </div>
  );
}

Laravel Blade

First, publish the service provider:

php artisan vendor:publish --provider="IdentifyBiometrics\IdentifyBiometricsServiceProvider"

Then use in your Blade templates:

<x-biometric-scanner 
    :is-scanning="true"
    status="scanning"
    size="medium"
    class="my-scanner"
/>

Or with custom colors:

<x-biometric-scanner 
    :is-scanning="true"
    status="scanning"
    dot-color="#f59e0b"
    bracket-color="#d97706"
    background-color="#fef3c7"
    size="large"
/>

Vanilla JavaScript

<!DOCTYPE html>
<html>
<head>
    <title>Biometric Scanner</title>
</head>
<body>
    <div id="scanner-container"></div>
    
    <script type="module">
        import { createBiometricScanner } from 'identify-biometrics';
        
        const container = document.getElementById('scanner-container');
        const scanner = createBiometricScanner(container, {
            size: 'medium',
            onScanComplete: (result) => {
                console.log('Scan result:', result);
            }
        });
        
        // Start scanning
        scanner.startScanning();
        
        // Stop scanning
        scanner.stopScanning();
        
        // Reset scanner
        scanner.resetScanning();
        
        // Set error state
        scanner.setError();
    </script>
</body>
</html>

API Reference

Props / Options

| Property | Type | Default | Description | |----------|------|---------|-------------| | isScanning | boolean | false | Whether the scanner is currently active | | status | string | 'idle' | Current status: 'idle', 'scanning', 'success', 'error' | | onScanComplete | function | - | Callback when scan completes with result | | dotColor | string | '#f59e0b' | Color of the scanning dots (amber-500) | | bracketColor | string | '#d97706' | Color of the corner brackets (amber-600) | | backgroundColor | string | '#fef3c7' | Background color (amber-100) | | size | string | 'medium' | Size: 'small', 'medium', 'large' | | className | string | '' | Additional CSS classes |

Methods (Vanilla JS)

| Method | Description | |--------|-------------| | startScanning() | Begin the biometric scan animation | | stopScanning() | Stop the current scan | | resetScanning() | Reset to idle state | | setError() | Set error state | | updateOptions(options) | Update component options | | destroy() | Clean up the component |

Customization

Color Schemes

The package uses an amber color scheme by default, but you can customize all colors:

<ReactBiometricScanner
  dotColor="#f59e0b"        // Orange dots
  bracketColor="#d97706"   // Darker orange brackets
  backgroundColor="#fef3c7" // Light amber background
/>

Sizes

Three predefined sizes are available:

  • small: 200x250px
  • medium: 300x375px (default)
  • large: 400x500px

Animation Timing

The facial feature dots appear sequentially with 200ms intervals, creating a realistic scanning effect. The total scan duration is approximately 4 seconds.

Framework-Specific Notes

React / Next.js

  • Uses styled-components for styling
  • Fully typed with TypeScript
  • Supports all React hooks

Laravel

  • Blade component with server-side rendering
  • Includes JavaScript for client-side interactions
  • Service provider for easy integration

Vanilla JavaScript

  • No dependencies required
  • Works in any modern browser
  • Full programmatic control

Browser Support

  • Chrome 60+
  • Firefox 55+
  • Safari 12+
  • Edge 79+

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License - see LICENSE file for details.

Support

For questions and support, please open an issue on GitHub.