New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@layers/amba-core-wasm

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@layers/amba-core-wasm

amba SDK Rust core compiled to WASM. Consumed by @layers/amba-web, @layers/amba-node, @layers/amba-react-native.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
-100%
Maintainers
3
Weekly downloads
 
Created
Source

@layers/amba-core-wasm

The amba SDK's Rust core compiled to WebAssembly. Internal package — applications consume one of the friendlier wrappers:

If you're targeting…Use
Browser@layers/amba-web
Node.js@layers/amba-node
React Native (Expo Go + bare RN)@layers/amba-react-native
Expo with config plugin@layers/amba-expo
Any other JS runtimethis package, directly

Direct usage

import init, { AmbaCoreWasm } from "@layers/amba-core-wasm";

await init(); // load the .wasm binary

const core = AmbaCoreWasm.init(
  JSON.stringify({
    api_key: "amba_pk_…",
    sdk_platform: "web",
    sdk_wrapper_version: "custom/1.0.0",
  }),
  window.fetch.bind(window),
);

await core.track("app_opened", JSON.stringify({ source: "deep_link" }));
const user = await core.signInAnonymously();
console.log(user);

Source

The Rust source lives at core/ in this monorepo. To rebuild after Rust changes:

pnpm --filter @layers/amba-core-wasm run build

License

MIT.

FAQs

Package last updated on 14 May 2026

Related posts