Back to Runanywhere Sdks

@runanywhere/web

sdk/runanywhere-web/packages/core/README.md

0.20.121001 B
Original Source

@runanywhere/web

Core Web SDK for RunAnywhere — backend-neutral lifecycle, model registry, downloads, and browser helpers for on-device AI in WASM.


Installation

bash
npm install @runanywhere/[email protected]

Add @runanywhere/web-llamacpp and/or @runanywhere/web-onnx for inference backends. See the Web SDK README for COOP/COEP headers, Vite config, and bundler setup.


Usage

typescript
import { RunAnywhere, SDKEnvironment } from '@runanywhere/web';

await RunAnywhere.initialize({
  environment: SDKEnvironment.SDK_ENVIRONMENT_DEVELOPMENT,
});

Register backends, then call RunAnywhere.completeServicesInitialization(). See the Web SDK README for full initialization and inference examples.


Support


License

RunAnywhere License. See LICENSE.