zuraffa_wasm

WebAssembly for the Zuraffa ecosystem: a pure-Dart port over an injected platform channel with federated android, ios, and macos adapters.

Part of the zuraffa_wasm federated monorepo, built on the Zuraffa framework.

Use

final service = WasmService(port: myPlatformPort);
final module = await service.compile(id: 'demo', bytes: moduleBytes);
final results = await service.call(
    id: 'demo', export: 'run', args: [WasmI32(1)]);
await service.unload(id: 'demo');

Wire the platform adapter for the running platform first — e.g. registerAndroidWasmDependencies(getIt, channel: ...) from the adapter package — then resolve WasmService, or call registerWasmDependencies(getIt, port: ...) directly. Without a wired port every call surfaces the typed port_not_wired failure.

Develop

dart pub get
dart test

Libraries

zuraffa_wasm
zuraffa_wasm — Wasm support for the Zuraffa ecosystem.