@orieg/expanse-wasm
v0.5.0
Published
WebAssembly bindings for Expanse: clean-room, pure-Rust Judy arrays for browser and edge runtimes
Downloads
409
Readme
@orieg/expanse-wasm
WebAssembly bindings for expanse-trie. Suitable for Edge runtimes (Cloudflare Workers, Fastly, Deno Deploy, Vercel) and modern browsers.
Installation
npm install @orieg/expanse-wasmQuickstart
import { WasmExpanseSet, init_panic_hook } from '@orieg/expanse-wasm';
// Initialize panic hook for better error messages
init_panic_hook();
const set = new WasmExpanseSet();
set.add(42n);
console.log(set.contains(42n)); // trueSupported Data Structures
WasmExpanseSet:u64valuesWasmExpanseMap:u64tou64mapWasmExpanseStrMap:Stringtou64mapWasmExpanseBytesMap:&[u8]tou64mapWasmExpanseBlobMap:u64to&[u8]map with hot metadata
