@runanywhere/core
v0.20.27
Published
Core SDK for RunAnywhere React Native - includes RACommons bindings, native bridges, and public API
Downloads
1,512
Maintainers
Readme
@runanywhere/core
Core React Native SDK for RunAnywhere — public API, model lifecycle, events, and native bridge to runanywhere-commons.
Installation
npm install @runanywhere/[email protected] react-native-nitro-modulescd ios && pod install && cd ..For iOS microphone capture, add NSMicrophoneUsageDescription to your app's Info.plist. See the React Native SDK README for full setup.
Usage
import { RunAnywhere, SDKEnvironment } from '@runanywhere/core';
await RunAnywhere.initialize({
environment: SDKEnvironment.SDK_ENVIRONMENT_DEVELOPMENT,
});
console.log('Ready:', RunAnywhere.isInitialized);Install backend packages (@runanywhere/llamacpp, @runanywhere/onnx, etc.) and use core APIs for models and inference. See the React Native SDK README.
Hermes: consume SDK
AsyncIterablestreams with manual[Symbol.asyncIterator]()loops, notfor await...of.
Support
License
RunAnywhere License. See LICENSE.
