← Back to Leaderboard
Rsoftware-mansion

software-mansion/react-native-executorch

ExecuTorch-backed on-device AI for React Native, from task hooks to custom pipelines

AI FrameworkQuickstart ↓
Engineering Health (Methodology)
B+ · 75/100
Maintenance Activity
● Updated today
Latest Release
v0.11.1
Commercial License Check
Custom / Check Repo

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption14/25
Release Cadence20/20
License Clarity6/20
Local AIGPU
Total Stars
★ 1,801
24h Growth
+1
7d Growth
+4
Forks
101

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

software-mansion/react-native-executorch Star History (2024-11-06 - 2026-12-03) ALL-TIME STAR HISTORY (2024-11 – 2026-12) +1.8k in 757d · avg +2/day 1.9k 951 0 2024-11-06: ★ 12024-12-28: ★ 2362025-02-15: ★ 3122025-04-05: ★ 5362025-05-24: ★ 6982025-07-12: ★ 8122025-08-30: ★ 8932025-10-18: ★ 1,0112025-12-06: ★ 1,0992026-01-24: ★ 1,1772026-03-14: ★ 1,2552026-05-02: ★ 1,4202026-06-20: ★ 1,5792026-08-08: ★ 1,6742026-09-26: ★ 1,7412026-12-03: ★ 1,801 ★ 1.8k 2024-11 2025-11 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

React Native ExecuTorch uses a TypeScript API over native C++ libraries backed by PyTorch's ExecuTorch runtime. The high-level task hooks select catalog models and manage caching and lifecycle. In the chat path, useLLMChatSession exposes download progress and readiness, then sendMessage returns the completed turn while delivering incremental output through a token callback. Inference executes in the native runtime on the phone.

The lower-level API lets application code compose tensor operations, native operators, schema validation, and worklet threading in TypeScript rather than forcing every pipeline through a task hook. A compatible .pte export is the model integration point. The Yarn-locked monorepo separates packages, apps, docs, and third-party code, with root prepare, lint, and typecheck scripts. Integration also requires react-native-worklets and react-native-blob-util.

Key Capabilities & Differentiators

Task coverage spans LLM chat, computer vision, speech, and embeddings. Teams can start with pre-exported models from the models registry, such as models.llm.LFM2_5_1_2B.DEFAULT, or use ExecuTorch Export Recipes to export their own PyTorch models to .pte. This gives teams a short path to a working baseline before taking on custom export and pipeline validation.

The runtime offers XNNPACK for CPU execution, Core ML and MLX on Apple Silicon, Vulkan for Android GPUs, and opt-in QNN on supported Snapdragon NPUs. These are deployment choices, not a guarantee that every export runs on every delegate. Validate the exact model and delegate together: the v0.11.3-libs Vulkan fix for RF-DETR keypoints addressed a reduction over more than 65,535 rows, illustrating why representative input shapes belong in device testing.

Trade-offs & Limitations

Compared with calling a hosted model API, local execution removes per-request cloud inference charges and keeps inference inputs on the phone, but shifts model distribution and runtime costs to the client. Test model storage, peak memory, sustained latency, and thermal behavior on representative phones. The model, input sizes, delegate, and overlapping work determine the practical budget; there is no useful SDK-wide RAM or VRAM figure.

Compared with integrating ExecuTorch natively, the hooks and TypeScript primitives reduce application-side glue for covered tasks, but do not remove native build requirements or backend-specific validation. Offline inference is not a blanket no-network guarantee: pre-exported model downloads send an anonymous event unless disabled. The root LICENSE file is present, but the license metadata is unspecified; verify the SDK, native binaries, and model redistribution terms before commercial release.

Hardware & Deployment Guide

Enable React Native's New Architecture and use React Native 0.83+ or Expo SDK 55+ with a development build; Expo Go cannot load the custom native libraries. Target iOS 17+ or Android 8.0+ (minSdkVersion 26). Install react-native-executorch with react-native-worklets 0.10+ and react-native-blob-util, and put react-native-worklets/plugin last in Babel's plugins array.

There is no inference server to operate, but a download-based install needs to provision model assets before going offline. The v0.11.4-libs release removed macOS metadata from the MLX iOS and Android Vulkan packages without changing their binaries. The v0.11.5-libs release rebuilt core-android-arm64-v8a so that JNI no longer inlines LSE atomics that caused SIGILL on ARMv8.0 CPUs. Track the native library revisions in your build and include older supported Android hardware in release testing.

Integration: Task hooks manage model caching and lifecycle; useLLMChatSession exposes readiness, download progress, and streamed token callbacks.
Custom execution: Compose tensor operations, native operators, schema validation, and worklet threading in TypeScript.
Model packaging: The models registry exposes pre-exported artifacts; ExecuTorch Export Recipes provides a path from PyTorch to .pte.
Hardware routing: XNNPACK for CPU, Core ML and MLX for Apple Silicon, Vulkan for Android GPU, and opt-in QNN for supported Snapdragon NPUs.
Offline boundary: Inference runs locally once assets are present; the anonymous download event can be disabled with setTelemetryEnabled(false).
Native compatibility: v0.11.5-libs rebuilt the Android arm64-v8a core to prevent a JNI SIGILL on ARMv8.0 CPUs.
Best For

React Native teams shipping offline chat, speech, or vision features that need to keep inference inputs on-device and can validate models on their supported phones.

Skip If

You depend on Expo Go or older platform versions, or the required model cannot meet your memory and sustained performance budget on target devices.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Local AIGPU
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

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
react-native-executorch ★1.8k+4TypeScript—ExecuTorch-backed on-device AI for React Native, from task hooks to custom pipel
ludwig11.8k+6PythonApache-2.0YAML-first framework for fine-tuning, training, and serving LLMs and multimodal
transformers169.6k+337PythonApache-2.0A PyTorch model-definition SDK for unified inference and training across modalit
openai-node11.3k+14TypeScriptApache-2.0Generated TypeScript SDK for integrating the hosted OpenAI API

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/software-mansion/react-native-executorch.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

software-mansion/react-native-executorch Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about react-native-executorch

How do I integrate a catalog model or bring my own?

Use a task hook for a catalog model. For example, useLLMChatSession exposes readiness and download progress, and sendMessage accepts a streamed token callback. For a custom PyTorch model, export it to .pte with ExecuTorch Export Recipes and use the lower-level TypeScript APIs where the task hook does not cover your pipeline. Validate the exported model on the intended delegate and devices.

How much memory do I need, and is a mobile GPU required?

There is no single RAM or VRAM minimum for the SDK. Measure peak memory, cold-load time, and sustained inference on your least capable supported phones with the exact model, input sizes, delegate, and number of simultaneous tasks you intend to run. For chat, include realistic conversation lengths and compare sustained performance across delegates rather than assuming a GPU wins.

Can I ship it commercially without running an inference server?

The license metadata is unspecified even though a root LICENSE file exists. Inspect the license terms for the exact SDK version, its bundled native binaries, and each model before redistributing them in a commercial app. No inference server is required. If your release must make no outbound requests, disable the anonymous model-download event with setTelemetryEnabled(false) and verify how model assets are provisioned.

When should I use native ExecuTorch directly or choose a hosted API?

Use this SDK when you want React Native task hooks, model caching, and a TypeScript path for custom pipelines over ExecuTorch. Direct native ExecuTorch integration gives your team ownership of the app-facing API and lifecycle but leaves more integration work to native code. Prefer a hosted API when devices cannot run the required model or centrally managed upgrades matter more than offline operation and keeping inference inputs on-device.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining software-mansion/react-native-executorch? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature software-mansion/react-native-executorch on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare