Right by default
On 3,000 simulated blind-test guesses, 97.6% of right answers were accepted and 0% of wrong ones.
Fuzzy string matching for JavaScript and TypeScript. Typos, accents, word order, numbers in words and noise like "(feat. X)" are handled for you, in about 10 kB with zero dependencies.
$ npm i fuzzy-toolkitMatching letters show here.
frvingt et un21estreinta y dos32deeinundzwanzig21itventitré23nleenentwintig21entwenty one21frquatre-vingt-dix90enthe BeatlesBeatles=== says no. Your users meant yes.'Bohemian Rhapsody' === 'bohemian rapsody'
false A right answer, marked wrong.
check('bohemian rapsody', 'Bohemian Rhapsody')
correct · 94.12 One letter off, still the right song.
One smart score that forgives the way humans really type, and a function for each job.
On 3,000 simulated blind-test guesses, 97.6% of right answers were accepted and 0% of wrong ones.
Prefixes, typos and acronyms, with the letters to highlight.
Written in TypeScript. Every option autocompletes.
ESM and CommonJS, Node 18+ and every browser. Language packs only weigh in when you import them.
The music preset drops featurings, "Remastered" and leading articles.
An MCP server for Claude, Cursor and VS Code, and ai-setup to teach your assistant the API.
300 typed queries with a typo, over 23,450 song titles. fuzzy-toolkit finds more than Fuse.js, 7 times faster.
Methodology and all resultsNode 22, median of 7 runs, public data. Run npm run bench:versus yourself.
No configuration to learn before the first result.
import { check } from 'fuzzy-toolkit' check('bohemian rapsody', 'Bohemian Rhapsody')
→{ verdict: 'correct', score: 94.12 }
dedupe, group, join, search and compare, straight from your terminal. CSV, JSON or plain text in, the same format out.
Command line recipeEvery version is published from GitHub Actions with npm provenance. Check it with npm audit signatures.
Nothing else gets installed with it. CI fails if one sneaks in.
Golden results, 98% coverage and fuzz tests on random Unicode, on Node 18 to 24.
Passing badge, Scorecard checked weekly, CodeQL on every change.
Install it, import one function, done. The guide takes five minutes.
Built in the open. Meet the contributors · Support the project on Ko-fi