# React Native AI

A collection of on-device AI primitives for React Native, compatible with the Vercel AI SDK, for running text generation, embeddings, transcription and speech synthesis directly on a user's phone.

React Native AI is a toolkit of on-device AI primitives for React Native apps, designed as a drop-in, Vercel AI SDK-compatible replacement so existing AI SDK code can run against on-device models for privacy-preserving, low-latency inference with no server cost. Apple's built-in Foundation Models, embeddings, transcription and speech synthesis work immediately on iOS with no model download, while other providers, such as llama.rn for GGUF models and MLC LLM, run on-device on iOS and Android.

A companion DevTools package captures OpenTelemetry spans from Vercel AI SDK requests and surfaces them inside Rozenite DevTools, working with both on-device and remote model runtimes, and an Expo example app demonstrates the native-development wiring needed to use it. It is written in TypeScript under the MIT license.

Website: https://react-native-ai.dev
