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-face-detector-mlkit

v0.1.4

Published

A powerful React Native plugin that integrates Google ML Kit with react-native-vision-camera to enable real-time on-device machine learning features such as face detection, text recognition, barcode scanning, and custom ML model inference — all with high

Readme

react-native-face-detector-mlkit

A powerful React Native plugin that integrates Google ML Kit with react-native-vision-camera to enable real-time on-device machine learning features such as face detection, text recognition, barcode scanning, and custom ML model inference — all with high performance and low latency.

This library provides a seamless interface for capturing frames directly from the camera and processing them using ML Kit APIs, making it ideal for face recognition, liveness detection, document scanning, and smart vision-based apps.

🚀 Installation

npm i react-native-face-detector-mlkit
# or
yarn add react-native-face-detector-mlkit

⚙️ Android Setup

To integrate the native frame processor package on Android, follow these steps:

1. Open MainApplication.java

Navigate to:

android/app/src/main/java/com/yourapp/MainApplication.java

2. Import the Package

Add the following import statement at the top of the file:

import com.facedetector.XyzFrameProcessorPluginPackage;

3. Register the Package

Inside the getPackages() method, add the following line:

packages.add(new XyzFrameProcessorPluginPackage());

Example:

@Override
protected List<ReactPackage> getPackages() {
  @SuppressWarnings("UnnecessaryLocalVariable")
  List<ReactPackage> packages = new PackageList(this).getPackages();
  // Add your custom frame processor package here
  packages.add(new XyzFrameProcessorPluginPackage());
  return packages;
}

📸 Usage Example

import React, { useMemo } from 'react';
import { Camera, useCameraDevices } from 'react-native-vision-camera';
import { useFrameProcessor } from 'react-native-vision-camera';
import { faceDetectorPluggin } from 'react-native-face-detector-mlkit';
import { Worklets } from 'react-native-worklets-core';
import { StyleSheet, View } from 'react-native';

export default function FaceDetectorScreen() {
  const pluggin = faceDetectorPluggin();
  const devices = useCameraDevices();
  const device = devices.front;

  const frameProcessor = useFrameProcessor((frame) => {
    'worklet';
    const faces = pluggin.call(frame);
    console.log(faces);
    console.log('Detected faces landmarks:', faces);
  }, []);

  if (!device) return null;

  return (
    <View style={styles.container}>
      <Camera
        style={StyleSheet.absoluteFill}
        device={device}
        isActive={true}
        frameProcessor={frameProcessor}
        frameProcessorFps={5}
      />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
});

🧠 Features

✅ Real-time on-device ML processing
✅ Seamless integration with react-native-vision-camera
✅ Works with Reanimated 3 and Worklets Core
✅ Lightweight and optimized for performance
✅ Supports both Android and iOS

🔧 Requirements

  • React Native ≥ 0.72
  • react-native-vision-camera ≥ 3.0
  • react-native-reanimated ≥ 3.0
  • react-native-worklets-core ≥ 1.0
  • Android API Level ≥ 23

📄 License

[Add your license here]

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📧 Support

For issues and questions, please open an issue on the GitHub repository.