{"repo":"m31coding/fuzzy-search","free":true,"listed":false,"github":"https://github.com/m31coding/fuzzy-search","clone":"git clone https://github.com/m31coding/fuzzy-search.git","description":"A fast, accurate and multilingual fuzzy search library for the frontend.","language":"TypeScript","stars":1125,"topics":["fuzzy","fuzzy-search","javascript","search","string-matching","typescript","prefix-search","substring-search","suffix-array"],"license":"MIT","category":"dev-tools","readme_excerpt":"Frontend Fuzzy + Substring + Prefix Search @m31coding/fuzzy-search is a frontend library for searching objects with ids (entities) by their names and features (terms). It is - Fast: A query takes usually well below 10 ms. - Accurate: Powered by a suffix array and n-grams with a novel approach of character sorting. - Multilingual: The language-agnostic design of the algorithm enables operation across all languages. - Flexible: Entities and their terms can be inserted, updated and removed. - Reliable: Well tested standalone library with no dependencies. - Universal: Works seamlessly in both frontend and backend (Node.js) environments. - Related blog post - Try the demo Installation Install the package via npm: The following files are available in the dist folder for different use cases: - fuzzy-search.module.js (ESM) - fuzzy-search.cjs (CommonJS) - fuzzy-search.umd.js (UMD) - fuzzy-search.modern.js (Modern mode) - fuzzy-search.d.ts (TypeScript definitions) This library uses microbundle. Please consult their documentation for more information on how to use the different files. Usage The most important definitions can be found in the folder interfaces. For creating a searcher, use the SearcherFactory. Here is a basic usage example (esm module syntax): The following parameters are available when creating a query: Parameter Type Default Description --------- ---- ------- ----------- string string - The query string. topN number 10 The maximum number of matches to return. Provide In","default_branch":null,"files":null,"tree":[],"storefront":"/r/m31coding","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/m31coding/fuzzy-search/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}