{"schemaVersion":"1.0","record":{"label":"Fuse.js","description":"JavaScript fuzzy-search library for searching local strings and structured records.","aliases":["Fuse"],"kind":"software","website":"https://www.fusejs.io/","overview":"Fuse.js is a JavaScript library for approximate string matching over lists and selected fields in records. It can support command palettes, filters and lookups without requiring an embedding model. Its character-based matching is distinct from semantic retrieval, and the application remains responsible for providing the searchable dataset.","license":"Apache-2.0","lifecycle":"active","example":false,"features":[{"name":"Fuzzy field search","status":"supported","detail":"Matches selected fields with configurable score, key weight and location behavior.","useCase":"Adding fuzzy lookup and local record search to applications","platforms":["Web","JavaScript","TypeScript","Node.js","Deno"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://www.fusejs.io/fuzzy-search.html","locator":"Threshold, location, distance and field normalization","retrievedAt":"2026-10-07T23:41:11Z","kind":"vendor"},{"url":"https://www.fusejs.io/getting-started.html","locator":"ESM/CJS imports, fields and full/basic builds","retrievedAt":"2026-10-07T23:41:02Z","kind":"vendor"}]},{"name":"Multi-word token matching","status":"supported","detail":"Inspected documentation supports any/all token modes; match the documented version and full build.","useCase":"Adding fuzzy lookup and local record search to applications","platforms":["Web","JavaScript","TypeScript","Node.js","Deno"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://www.fusejs.io/token-search.html","locator":"Per-term matching and any/all modes","retrievedAt":"2026-10-07T23:41:11Z","kind":"vendor"},{"url":"https://github.com/krisk/Fuse/blob/main/package.json","locator":"Inspected version 7.6.0-beta.0 and exports","retrievedAt":"2026-10-07T23:41:21Z","kind":"vendor"}]},{"name":"Worker execution","status":"limited","detail":"Asynchronous browser-worker API returns cloned records; rejects function-valued options and useTokenSearch. Requires an accessible worker script and compatible CSP; not Node.js worker_threads.","useCase":"Adding fuzzy lookup and local record search to applications","platforms":["Modern browsers with Web Workers"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://www.fusejs.io/web-workers.html","locator":"Asynchronous API, structured clones and unsupported function options","retrievedAt":"2026-10-07T23:41:02Z","kind":"vendor"},{"url":"https://github.com/krisk/Fuse/blob/main/package.json","locator":"Inspected version 7.6.0-beta.0 and exports","retrievedAt":"2026-10-07T23:41:21Z","kind":"vendor"}]},{"name":"Semantic similarity","status":"unsupported","detail":"Character-based matching does not establish retrieval by meaning.","useCase":"Adding fuzzy lookup and local record search to applications","platforms":["Web","JavaScript","TypeScript","Node.js","Deno"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://www.fusejs.io/articles/vs-semantic-search.html","locator":"Character matching versus meaning; vendor comparison","retrievedAt":"2026-10-07T23:41:28Z","kind":"vendor"}]}],"alternatives":[],"slug":"fuse-js","draftAlternatives":[{"targetSlug":"flexsearch","status":"limited","detail":"Can replace local search for fuzzy record lookup where its matching and dataset costs are acceptable; index formats, scoring and persistence are not interchangeable.","useCase":"Adding fuzzy lookup and local record search to applications","platforms":["Web","JavaScript","TypeScript","Node.js","Deno"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://www.fusejs.io/getting-started.html","locator":"ESM/CJS imports, fields and full/basic builds","retrievedAt":"2026-10-07T23:41:02Z","kind":"vendor"},{"url":"https://www.fusejs.io/performance.html","locator":"Dataset/key costs and prebuilt indexes","retrievedAt":"2026-10-07T23:41:28Z","kind":"vendor"},{"url":"https://github.com/nextapps-de/flexsearch/blob/master/doc/document-search.md","locator":"Field indexing and document search","retrievedAt":"2026-10-07T23:41:28Z","kind":"vendor"}]}],"evidence":[{"url":"https://www.fusejs.io/","locator":"Local fuzzy search and available builds","retrievedAt":"2026-10-07T23:40:39Z","kind":"vendor"},{"url":"https://www.fusejs.io/getting-started.html","locator":"ESM/CJS imports, fields and full/basic builds","retrievedAt":"2026-10-07T23:41:02Z","kind":"vendor"},{"url":"https://www.fusejs.io/fuzzy-search.html","locator":"Threshold, location, distance and field normalization","retrievedAt":"2026-10-07T23:41:11Z","kind":"vendor"},{"url":"https://www.fusejs.io/token-search.html","locator":"Per-term matching and any/all modes","retrievedAt":"2026-10-07T23:41:11Z","kind":"vendor"},{"url":"https://www.fusejs.io/web-workers.html","locator":"Asynchronous API, structured clones and unsupported function options","retrievedAt":"2026-10-07T23:41:02Z","kind":"vendor"},{"url":"https://www.fusejs.io/performance.html","locator":"Dataset/key costs and prebuilt indexes","retrievedAt":"2026-10-07T23:41:28Z","kind":"vendor"},{"url":"https://www.fusejs.io/articles/vs-semantic-search.html","locator":"Character matching versus meaning; vendor comparison","retrievedAt":"2026-10-07T23:41:28Z","kind":"vendor"},{"url":"https://github.com/krisk/Fuse/blob/main/package.json","locator":"Inspected version 7.6.0-beta.0 and exports","retrievedAt":"2026-10-07T23:41:21Z","kind":"vendor"},{"url":"https://github.com/krisk/Fuse/blob/main/LICENSE","locator":"Apache 2.0 terms","retrievedAt":"2026-10-07T23:41:11Z","kind":"vendor"},{"url":"https://github.com/nextapps-de/flexsearch/blob/master/doc/document-search.md","locator":"Field indexing and document search","retrievedAt":"2026-10-07T23:41:28Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://www.fusejs.io/","locator":"Local fuzzy search and available builds","retrievedAt":"2026-10-07T23:40:39Z","id":"home","title":"Fuse.js overview","kind":"vendor"},{"url":"https://www.fusejs.io/getting-started.html","locator":"ESM/CJS imports, fields and full/basic builds","retrievedAt":"2026-10-07T23:41:02Z","id":"start","title":"Fuse.js getting started","kind":"vendor"},{"url":"https://www.fusejs.io/fuzzy-search.html","locator":"Threshold, location, distance and field normalization","retrievedAt":"2026-10-07T23:41:11Z","id":"fuzzy","title":"Fuzzy search options","kind":"vendor"},{"url":"https://www.fusejs.io/token-search.html","locator":"Per-term matching and any/all modes","retrievedAt":"2026-10-07T23:41:11Z","id":"token","title":"Token search","kind":"vendor"},{"url":"https://www.fusejs.io/web-workers.html","locator":"Asynchronous API, structured clones and unsupported function options","retrievedAt":"2026-10-07T23:41:02Z","id":"worker","title":"FuseWorker","kind":"vendor"},{"url":"https://www.fusejs.io/performance.html","locator":"Dataset/key costs and prebuilt indexes","retrievedAt":"2026-10-07T23:41:28Z","id":"performance","title":"Fuse performance guide","kind":"vendor"},{"url":"https://www.fusejs.io/articles/vs-semantic-search.html","locator":"Character matching versus meaning; vendor comparison","retrievedAt":"2026-10-07T23:41:28Z","id":"semantic","title":"Fuse versus semantic search","kind":"vendor"},{"url":"https://github.com/krisk/Fuse/blob/main/package.json","locator":"Inspected version 7.6.0-beta.0 and exports","retrievedAt":"2026-10-07T23:41:21Z","id":"package","title":"Fuse package manifest","kind":"vendor"},{"url":"https://github.com/krisk/Fuse/blob/main/LICENSE","locator":"Apache 2.0 terms","retrievedAt":"2026-10-07T23:41:11Z","id":"license","title":"Fuse Apache license","kind":"vendor"},{"url":"https://github.com/nextapps-de/flexsearch/blob/master/doc/document-search.md","locator":"Field indexing and document search","retrievedAt":"2026-10-07T23:41:28Z","id":"flex","title":"FlexSearch document search","kind":"vendor"}],"overviewCitations":["home","semantic"],"licenseCitations":["license"],"sections":[{"id":"integration","heading":"Search within an application","paragraphs":[{"id":"integration-detail","content":[{"text":"Applications supply a collection and choose the keys to search. Results identify matching items and can include a relevance score. ESM and CommonJS imports are documented, with full and basic builds exposing different capabilities. The inspected repository manifest and documentation banner identify 7.6.0-beta.0, while some setup examples pin 7.5.0. Generated examples should be matched to an installed release; current worker and token features should not be assumed available in every older package."}],"citations":["start","package"]}]},{"id":"matching","heading":"Why a visible term may not match","paragraphs":[{"id":"matching-detail","content":[{"text":"Threshold, expected location and distance interact in fuzzy matching. With the documented defaults, matches far from the start of a field can be excluded even when the desired characters occur in its text. ignoreLocation removes that positional influence. Key weights and field-length normalization also affect ranking. Tuning a search therefore requires representative queries and fields, rather than treating the first plausible result as a guarantee of relevance."}],"citations":["fuzzy"]}]},{"id":"tokens","heading":"Multi-word queries","paragraphs":[{"id":"tokens-detail","content":[{"text":"Token search treats query words separately and combines their contributions with inverse-document-frequency weighting. Its default any mode can return records matching only part of the query. The all option requires every word to match somewhere in the record, including across separate fields or array elements. This differs from logical operators that combine field-specific clauses. The distinction matters when a search box is intended to narrow a filter instead of rank partial matches."}],"citations":["token"]}]},{"id":"workers","heading":"Workers and API differences","paragraphs":[{"id":"workers-detail","content":[{"text":"The documented FuseWorker shards data across Web Workers. Search returns a promise, results contain structured-cloned records rather than original object references, and resources need terminate when no longer used. It does not expose getIndex or the ordinary remove(predicate) interface; replacing a filtered collection is the documented removal route. Custom sorting or getter functions cannot be transferred and are rejected. Moving a synchronous implementation to workers consequently requires more than adding await. FuseWorker also rejects useTokenSearch because independently computed shard statistics would change token scores. It requires a browser Web Worker environment and an accessible worker script; it does not use Node.js worker_threads. The site’s Content Security Policy must permit the worker to start."}],"citations":["worker"]}]},{"id":"costs","heading":"Dataset and performance considerations","paragraphs":[{"id":"costs-detail","content":[{"text":"Index creation depends on collection size, number of indexed keys and string length. Search work also grows with the indexed entries and query terms. A prebuilt index can move index-construction work away from the interactive path, but does not eliminate the cost of searching the collection. The vendor publishes benchmark examples; no speed, memory or dataset-size guarantee was independently measured for this article."}],"citations":["performance"]}]},{"id":"terms","heading":"License and scope","paragraphs":[{"id":"terms-detail","content":[{"text":"The inspected source uses Apache License 2.0, with its redistribution and notice requirements. Local library use does not require a hosted search account. The separate cloud offering shown on the website is marked forthcoming and should not be treated as an established dependency of the open-source toolkit."}],"citations":["license","home"]}]},{"id":"comparison","heading":"Substitution considerations","paragraphs":[{"id":"comparison-detail","content":[{"text":"Fuse.js can substitute for "},{"text":"FlexSearch","targetSlug":"flexsearch"},{"text":" in application-level record lookup when approximate character matching and its data-loading model fit the task. FlexSearch emphasizes configurable indexes, fields and storage options. Their scoring, queries and index representation require migration work. Fuse's own semantic-search comparison supports the narrower distinction between character similarity and meaning; its broad vendor performance comparisons are not adopted here."}],"citations":["start","flex","semantic"]}]}]},"id":"Q1628","revision":1741,"updatedAt":"2026-10-21T23:43:09Z","sourceUrl":"https://substitutefor.net/entities/Q1628?revision=1741"}}