@destack/runtime
v0.55.3
Published
Destack runtime client for JavaScript and TypeScript
Downloads
13
Maintainers
Readme
@destack/runtime
Destack runtime client for TypeScript and JavaScript.
This package provides unified backend selection across Node-API and WebAssembly environments.
Compatibility packages also ship in compat/destack-js and compat/destack-ts.
Installation
npm install @destack/runtimeAPI
import { createClient } from "@destack/runtime";
const client = await createClient("napi");
console.log(client.backend);
console.log(client.version());Explicit backends
import { createNapiClient } from "@destack/runtime/napi";
import { createWasmClient } from "@destack/runtime/wasm";
const napiClient = await createNapiClient();
const wasmClient = await createWasmClient();