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

react-native-perch-eye

v0.0.2

Published

High-performance React Native SDK for face recognition and verification using native TensorFlow and C++ engine. Extract and compare unique face hashes from images with zero dependencies.

Readme

🧠 Perch Eye SDK React Native Documentation

The Perch Eye SDK for React Native allows you to extract unique face hashes from image sequences and verify them against new images. The SDK is built using TensorFlow and C++ and provides high performance for mobile applications, with zero dependencies.


🔧 Integration

Install the native module:

npm install react-native-perch-eye

🔧 Initialization

import { init, destroy } from 'react-native-perch-eye';

await init();      // Init native engine
await destroy();   // Cleanup

Note: These methods are called natively by the module lifecycle, so manual calls are usually not required.


🚀 Usage

🔐 Enroll - Create Hash From Face Images

To create a face hash from a sequence of base64 images:

import { openTransaction, addImage, enroll } from 'react-native-perch-eye';

await openTransaction();
await addImage(base64Image1);
await addImage(base64Image2);
// ...
const hash = await enroll();

🧪 Verify - Compare New Face With Stored Hash

To compare a new image sequence against a previously created hash:

import { openTransaction, addImage, verify } from 'react-native-perch-eye';

await openTransaction();
await addImage(base64ImageNew);
// ...
const similarity = await verify(hash);

⚡ Compare a list

Compares a list of base64-encoded images against a face hash.

import { evaluate, compareList } from 'react-native-perch-eye';

const hash = await evaluate(base64Images);
const similarity = await compareList(base64Images, hash);

⚡ Optional: Direct Face Comparison

Convenience method: Internally performs:

  • openTransaction()
  • addImage(image1)enroll()openTransaction()addImage(image2)verify()
import { compareFaces } from 'react-native-perch-eye';

const sim = await compareFaces(img1, img2);

❗ Error Codes

addImage method error codes :

// Returned string:
"SUCCESS" |
"FACE_NOT_FOUND" |
"FILE_NOT_FOUND" |
"TRANSACTION_NOT_OPEN" |
"SDK_NOT_INITIALIZED" |
"INTERNAL_ERROR"

✅ Summary

  • Minimal, high-performance Flutter SDK for face hash comparison.
  • Zero dependencies, designed for mobile applications.
  • Works with both base64 and raw RGBA face images.
  • Includes methods for enrolling, verifying, and comparing face hashes.