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

@curiouscosmos/react-native-mediapipe

v0.1.2

Published

MediaPipe pose detection for React Native

Downloads

863

Readme

react-native-mediapipe

MediaPipe pose detection for bare React Native apps on iOS and Android.

Expo is not yet supported.

Requirement

  • React Native 0.87.x
  • Node.js 22 or higher
  • iOS 15.1 or higher
  • Android minSdk 24 or higher

Installation

npm install @curiouscosmos/react-native-mediapipe

iOS setup

  1. Add camera usage permission in Info.plist in example/ios

    <key>NSCameraUsageDescription</key>
    <string>This app uses camera to get pose landmarks that appear in the camera feed.</string>
  2. Add the CocoaPods CDN source at the top of your ios/Podfile:

    source 'https://cdn.cocoapods.org/'
  3. Run cd ios && pod install

Note: The MediaPipeTasksVision dependency is pinned in this library. If pod search MediaPipeTasksVision returns no results, the pod resolves via the CDN source above.

pod 'MediaPipeTasksVision', '1.0.0'

Android setup

Add these to your project's manifest.

<uses-feature android:name="android.hardware.camera" />
<uses-permission android:name="android.permission.CAMERA" />

Props

| Prop | Description | |-------------|-------------------------------------------------------------------------------------------------| | width | Sets the camera view width. | | height | Sets the camera view height. | | onLandmark| Callback function to retrieve body landmark data. | | frameLimit| set the frame rate during initialization(ios only). | | face | Toggles visibility of the face in the body model. Affects the data provided by onLandmark. | | leftArm | Toggles visibility of the left arm in the body model. Affects the data provided by onLandmark. | | rightArm | Toggles visibility of the right arm in the body model. Affects the data provided by onLandmark. | | leftWrist | Toggles visibility of the left wrist in the body model. Affects the data provided by onLandmark.| | rightWrist| Toggles visibility of the right wrist in the body model. Affects the data provided by onLandmark.| | torso | Toggles visibility of the torso in the body model. Affects the data provided by onLandmark. | | leftLeg | Toggles visibility of the left leg in the body model. Affects the data provided by onLandmark. | | rightLeg | Toggles visibility of the right leg in the body model. Affects the data provided by onLandmark. | | leftAnkle | Toggles visibility of the left ankle in the body model. Affects the data provided by onLandmark.| | rightAnkle| Toggles visibility of the right ankle in the body model. Affects the data provided by onLandmark.|

Usage

Basic

import { RNMediapipe } from '@curiouscosmos/react-native-mediapipe';

export default function App() {

    return (
        <View>
            <RNMediapipe
                width={400}
                height={300}
            />
        </View>
    )
}

Usage with body prop

Used to show/hide any body part overlay

By default, the body prop is set to true

import { RNMediapipe } from '@curiouscosmos/react-native-mediapipe';

export default function App() {

    return (
        <View>
            <RNMediapipe
                width={400}
                height={300}
                face={true}
                leftArm={true}
                rightArm={true}
                leftWrist={true}
                rightWrist={true}
                torso={true}
                leftLeg={true}
                rightLeg={true}
                leftAnkle={true}
                rightAnkle={true}
            />
        </View>
    )
}

Usage with switch camera method

import { RNMediapipe, switchCamera } from '@curiouscosmos/react-native-mediapipe';

export default function App() {

    const onFlip = () => {
        switchCamera();
    };

    return (
        <View>
            <RNMediapipe
                width={400}
                height={300}
            />

            <TouchableOpacity onPress={onFlip} style={styles.btnView}>
                <Text style={styles.btnTxt}>Switch Camera</Text>
            </TouchableOpacity>
        </View>
    )
}

Usage with onLandmark prop

import { RNMediapipe } from '@curiouscosmos/react-native-mediapipe';

export default function App() {

    return (
        <View>
            <RNMediapipe
                width={400}
                height={300}
                onLandmark={(data) => {
                    console.log('Body Landmark Data:', data);
                }}
            />
        </View>
    )
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.


License

This project is licensed under the terms in LICENSE.