
Security News
Next.js moves to scheduled security releases
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.
turboquant-search
Advanced tools
Vector search for JSON datasets. Build quantized indexes and search with WASM SIMD.
Vector search for JSON datasets. Build quantized indexes and search with WASM SIMD.
Takes any JSON array, embeds text fields into vectors, compresses them with 3-bit quantization, and runs similarity search entirely via WebAssembly SIMD, in the browser or Node.js.
npm install turboquant-search
import { TurboSearch } from 'turboquant-search';
// Build from any JSON array
const ts = await TurboSearch.from(products, {
fields: ['name', 'description', 'tags'],
});
// Text search
const results = await ts.search('wireless audio bluetooth', { topK: 5 });
// => [{ index: 0, score: 0.94, data: { name: 'Wireless Headphones', ... } }]
// Find similar items
const similar = ts.similar(0, { topK: 5 });
// Save for later
await ts.save('./products.index.json');
// Load a pre-built index
const loaded = await TurboSearch.load('./products.index.json');
// Clean up
ts.destroy();
# Build an index
npx tqs build --input products.json --fields "name,description,tags" --output search.json
# Inspect an index
npx tqs info search.json
TurboSearch.from(data, options)Build a search index from a JSON array.
| Option | Type | Default | Description |
|---|---|---|---|
fields | string[] | required | Fields to embed |
dim | number | 384 | Embedding dimensions |
bits | number | 3 | Quantization bits |
seed | number | 42 | Random seed |
embedder | Embedder | keyword | Custom embedder |
TurboSearch.load(pathOrUrl)Load a pre-built index from a file or URL.
ts.search(query, { topK }) // text search
ts.similar(index, { topK }) // find similar items
ts.vectorSearch(vec, { topK }) // search by embedding
ts.save(path) // save index to disk
ts.size // number of indexed items
ts.destroy() // clean up WASM
// Works with any embedding source: transformers.js, OpenAI, Gemini, Cohere, etc.
import { pipeline } from '@xenova/transformers';
const extractor = await pipeline('feature-extraction', 'Xenova/all-MiniLM-L6-v2');
const ts = await TurboSearch.from(data, {
fields: ['text'],
embedder: {
async embed(text, dim) {
const output = await extractor(text, { pooling: 'mean', normalize: true });
return new Float32Array(output.data);
},
},
});
| Items | Index Size | Search Time |
|---|---|---|
| 100 | ~14 KB | <1ms |
| 10,000 | ~1.4 MB | ~5ms |
| 50,000 | ~7 MB | ~15ms |
| 100,000 | ~14 MB | ~30ms |
MIT
FAQs
Vector search for JSON datasets. Build quantized indexes and search with WASM SIMD.
The npm package turboquant-search receives a total of 1 weekly downloads. As such, turboquant-search popularity was classified as not popular.
We found that turboquant-search demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.