TurboQuant WASM
Experimental WASM + relaxed SIMD build of TurboQuant for browsers and Node.js, compressing float32 embedding vectors ~6x with fast dot product search on compressed data.
At a Glance
Free and open-source under the MIT License. Use, modify, and distribute freely.
Engagement
Available On
Alternatives
Listed Apr 2026
About TurboQuant WASM
TurboQuant WASM is an npm package that brings the TurboQuant online vector quantization algorithm to browsers and Node.js via WebAssembly with relaxed SIMD acceleration. Based on the Google Research paper "TurboQuant: Online Vector Quantization with Near-optimal Distortion Rate" (ICLR 2026), it compresses float32 embedding vectors approximately 6x (~4.5 bits/dim) without any training step. It supports fast dot product search directly on compressed data, making it ideal for streaming, real-time, and edge deployments.
- No training required — unlike PQ/OPQ, simply call
TurboQuant.init({ dim, seed })and start encoding any vector immediately, with no dataset-dependent configuration. - ~6x compression — reduces 1.5GB float32 indexes (1M × 384-dim) to ~240MB, making large embedding indexes feasible in browsers and on mobile devices.
- Relaxed SIMD acceleration — uses
f32x4.relaxed_maddFMA instructions and SIMD-vectorized QJL sign packing/unpacking for maximum throughput (Chrome 114+, Firefox 128+, Safari 18+, Node.js 20+). - Batch search —
dotBatch()issues a single WASM call for all vectors, delivering up to 83x speedup over loopingdot()calls. - TypeScript API — clean async
TurboQuant.init()/encode()/decode()/dot()/dotBatch()/destroy()interface with full type definitions. - Golden-value tests — byte-identical output with the reference Zig implementation, verified by MSE, bits/dim, and dot product preservation metrics.
- Single npm package —
npm install turboquant-wasmwith embedded WASM binary and zero runtime dependencies. - Live demo — vector search, image similarity, and 3D Gaussian Splatting compression running entirely in the browser.
- MIT licensed — free to use, modify, and distribute; built with Zig 0.15.2 and Bun.
Community Discussions
Be the first to start a conversation about TurboQuant WASM
Share your experience with TurboQuant WASM, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
Free and open-source under the MIT License. Use, modify, and distribute freely.
- Full WASM + relaxed SIMD vector compression
- TypeScript API
- Batch dot product search
- Embedded WASM binary
- No training step required
Capabilities
Key Features
- Online vector quantization (no training step)
- ~6x float32 compression (~4.5 bits/dim)
- Relaxed SIMD (f32x4.relaxed_madd) acceleration
- Fast dot product on compressed vectors
- Batch dot product search (dotBatch)
- TypeScript API with async init
- Embedded WASM binary (no native deps)
- Golden-value tests vs reference Zig implementation
- Browser and Node.js support
- 3D Gaussian Splatting compression demo
