TurboQuant WASM is an experimental npm package that brings WASM + relaxed SIMD vector quantization to browsers and Node.js. Based on Google Research's TurboQuant paper (ICLR 2026), it compresses float vectors to ~4.5 bits/dim with ~6x compression while preserving dot products for fast similarity search. The TypeScript API exposes encode/decode/dot operations, leverages f32x4.relaxed_madd FMA instructions, and requires relaxed SIMD support (Chrome 114+, Firefox 128+, Safari 18+, Node 20+). Built with Zig 0.15.2 and verified via golden-value tests against the reference implementation.
Sort: