
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-perch-eye
Advanced tools
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.
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.
Install the native module:
npm install react-native-perch-eye
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.
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();
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);
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);
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);
addImage method error codes :
// Returned string:
"SUCCESS" |
"FACE_NOT_FOUND" |
"FILE_NOT_FOUND" |
"TRANSACTION_NOT_OPEN" |
"SDK_NOT_INITIALIZED" |
"INTERNAL_ERROR"
FAQs
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.
We found that react-native-perch-eye demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.