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 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-executorch

v0.1.1

Published

An easy way to run AI models in react native with ExecuTorch

Downloads

238

Readme

React Native ExecuTorch

Software Mansion banner

React Native ExecuTorch is a declarative way to run AI models in React Native on device, powered by ExecuTorch 🚀.

ExecuTorch is a novel framework created by Meta that enables running AI models on devices such as mobile phones or microcontrollers. React Native ExecuTorch bridges the gap between React Native and native platform capabilities, allowing developers to run AI models locally on mobile devices with state-of-the-art performance, without requiring deep knowledge of native code or machine learning internals.

Readymade models 🤖

To run any AI model in ExecuTorch, you need to export it to a .pte format. If you're interested in experimenting with your own models, we highly encourage you to check out the Python API. If you prefer focusing on developing your React Native app, we will cover several common use cases. For more details, please refer to the documentation.

Documentation 📚

Take a look at how our library can help build you your React Native AI features in our docs:
https://docs.swmansion.com/react-native-executorch

Minimal supported versions

The minimal supported version is 17.0 for iOS and Android 13.

Examples 📲

We currently host a single example demonstrating a chat app built with the latest Llama 3.2 1B/3B model. If you'd like to run it, navigate to examples/llama from the repository root and install the dependencies with:

yarn

then run:

cd ios
pod install
cd ..

And finally, if you want to run on Android:

yarn expo run:android

or iOS:

yarn expo run:ios

License

This library is licensed under The MIT License.

What's next?

  • Support for various common use cases such as object detection, segmentation etc.

  • A possibility to run your own ExecuTorch models

  • Join the Software Mansion Community Discord to chat about React Native ExecuTorch or other Software Mansion libraries.

React Native ExecuTorch is created by Software Mansion

Since 2012 Software Mansion is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product – Hire us.

swm