Fuse.js
Web framework / library · Free
A client-side fuzzy search library for data arrays: helps add typo-tolerant search and field weights without a separate server.
Also known as: krisk/Fuse; fusejs; fuzzy-search-library

What you can use for free
Code and local use under Apache-2.0.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Add typo-tolerant search to local data
- Connect fuzzy queries and ranked results to the search UI
Example workflow
A possible workflow; this is not a report of hands-on testing.
Add typo-tolerant search to local data.
Before you start
- Web application source code and the intended workflow.
- The project's framework and runtime version.
Steps
- Choose searchable fields and weights for the dataset.
- Connect fuzzy queries and ranked results to the search UI.
- Add real data and error handling; check the production build.
Check your result
- The workflow works after a page refresh and with invalid data.
- The bundle, server rendering, and supported browsers suit the project.
Choosing Fuse.js
Add typo-tolerant search to local data
Choose this when
- Add typo-tolerant search to local data
- Connect fuzzy queries and ranked results to the search UI
Requirements
- For the worker version, pass serializable data and options and handle results asynchronously.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: Apache-2.0 for the code; third-party components retain their own terms.
- The README primarily recommends Fuse for small/medium datasets; speed claims cannot be applied to every corpus and device.
Frequently asked questions
What can you use for free in Fuse.js?
Code and local use under Apache-2.0.
What additional costs might arise with Fuse.js?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for Fuse.js?
Apache-2.0 for the code; third-party components retain their own terms.
How do you get started with Fuse.js?
Choose searchable fields and weights for the dataset. Connect fuzzy queries and ranked results to the search UI. Add real data and error handling; check the production build.
What changes when using FuseWorker instead of standard Fuse?
Fuse performs fuzzy search in JavaScript without runtime dependencies, in the browser and on the server. FuseWorker moves search into Web Workers and provides an asynchronous API. Functions such as sortFn, getFn, or keys[].getFn cannot be sent to the worker: options must be serializable. Standard Fuse offers weighted keys and extended search operators.
License
Apache-2.0 for the code; third-party components retain their own terms.
Apache 2.0 — permissive license with patent terms
You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.
License termsTechnologies and topics
- Fuse.js
- web
- Development