software-mansion/react-native-executorch

★ 1,744⑂ 96

High-performance, privacy-first on-device AI inference library for React Native, powered by PyTorch's ExecuTorch runtime

About software-mansion/react-native-executorch

software-mansion/react-native-executorch is an open-source project on GitHub, mainly written in TypeScript. High-performance, privacy-first on-device AI inference library for React Native, powered by PyTorch's ExecuTorch runtime It currently holds 1,744 stars and 96 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the Local & On-Device AI board.

GitHub Repository Details

Repository software-mansion/react-native-executorch · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

https://github.com/software-mansion/react-native-executorch/blob/HEAD/React Native ExecuTorch Logo



https://github.com/software-mansion/react-native-executorch/blob/HEAD/GitHub - Contributors https://github.com/software-mansion/react-native-executorch/blob/HEAD/GitHub - Stars https://github.com/software-mansion/react-native-executorch/blob/HEAD/Join our Discord community https://github.com/software-mansion/react-native-executorch/blob/HEAD/Documentation https://github.com/software-mansion/react-native-executorch/blob/HEAD/Hire Us


React Native ExecuTorch is an on-device AI inference library for React Native, powered by ExecuTorch — Meta's on-device inference runtime. It lets you run machine learning models directly on the user's phone with zero network calls, full offline capability, and guaranteed privacy. No data ever leaves the device.

The library ships with a curated set of pre-exported models covering computer vision, language models, text-to-speech, transcription, and more — all available in our Hugging Face collection and ready to use out of the box. You can also bring your own .pte models and plug them into existing pipelines or build entirely custom ones from scratch.

To explore all on-device capabilities in an interactive showcase app, check out the React Native ExecuTorch Gallery.

npm version npm nightly CI

Table of Contents

Key Features

Quickstart

1. Installation

Install react-native-executorch alongside its required peer dependencies:

npm install react-native-executorch react-native-worklets react-native-blob-util

or

yarn add react-native-executorch react-native-worklets react-native-blob-util

or

pnpm add react-native-executorch react-native-worklets react-native-blob-util
[!IMPORTANT]
React Native ExecuTorch requires:
- New Architecture enabled
- React Native 0.83+ or Expo SDK 55+ with Development Builds (Expo Go is not supported due to custom C++ native libraries)
- react-native-worklets 0.10 or newer (>=0.10.0 <0.13.0)
- iOS 17.0+ / Android 13+ (minSdkVersion >= 26)
> See the Getting Started Guide and Compatibility table for more details.

2. Run the Model

import { Button, View } from 'react-native';
import { models, useLLMChatSession } from 'react-native-executorch';

export function App() { const session = useLLMChatSession(models.llm.LFM2_5_1_2B.DEFAULT);

const handleGenerate = async () => { if (!session.isReady || !session.sendMessage) return;

const turn = await session.sendMessage( 'Explain on-device AI in one sentence.', (token) => console.log(token) );

console.log('Result messages:', turn.messages); };

return ( ); }

Documentation

Full documentation, guides, architecture deep dives, and API references are available at: docs.swmansion.com/react-native-executorch

Powered by React Native ExecuTorch

React Native ExecuTorch powers Private Mind, a privacy-first mobile AI application available on App Store and Google Play.

https://github.com/software-mansion/react-native-executorch/blob/HEAD/Private Mind promo

Created by Software Mansion

Since 2012, Software Mansion has been building mobile and web apps, contributing to open-source software, and dealing with all kinds of React Native challenges. We are Core React Native Contributors. We can help you build your next AI product – Hire us.

[![swm](https://logo.swmansion.com/logo?color=white&variant=desktop&width=150&tag=react-native-executorch-github 'Software Mansion')](https://swmansion.com)

GitHub Stars & Activity

1,744Stars
96Forks
0Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars1,744
Forks96
Open issues0
Primary languageTypeScript
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

dyad-sh / dyad

TypeScript★ 21,594⑂ 2,640
2

getumbrel / llama-gpt

TypeScript★ 10,937⑂ 704
3

n4ze3m / page-assist

TypeScript★ 8,220⑂ 785
4

OpenCoworkAI / open-codesign

TypeScript★ 7,952⑂ 831
5

open-multi-agent / open-multi-agent

TypeScript★ 6,947⑂ 2,433
6

vas3k / TaxHacker

TypeScript★ 6,713⑂ 1,093
7

buxuku / SmartSub

TypeScript★ 5,277⑂ 401
8

vinta / pangu.js

TypeScript★ 4,828⑂ 315

More AI Rankings