nowfound

Dev tools · September 30, 2022

UJ

uFuzzy.js – A tiny, efficient fuzzy search that doesn't suck

Hello HN! I became frustrated with the unpredictible/poor match quality and opaqueness of "relevance scores" in existing fuzzy and fulltext search libs, so I tried something different and this is the result. The main selling point is the result quality / ordering, with best-in-class memory overhead and excellent performance being bonuses. The API is pretty stable at this point, but looking for feedback before committing to 1.0. TL;DR The test corpus is a 4MB json file with 162k words/phrases, so give it a second for initial download. You can also drag/drop your own…

Visit github.comAlternativestop 7% of September 2022

In plain words

uFuzzy.js is a JavaScript library that performs fuzzy and fulltext search on text data. It is designed for developers who need to integrate search functionality into web applications. The library prioritizes search result quality and relevance ordering while maintaining low memory usage and fast performance. Users can test it with a built-in corpus of 162,000 words or upload their own datasets for evaluation.

written from the facts on this page · September 2026

From the sources

In the maker’s words, at launch

Hello HN! I became frustrated with the unpredictible/poor match quality and opaqueness of "relevance scores" in existing fuzzy and fulltext search libs, so I tried something different and this is the result. The main selling point is the result quality / ordering, with best-in-class memory overhead and excellent performance being bonuses. The API is pretty stable at this point, but looking for feedback before committing to 1.0. TL;DR The test corpus is a 4MB json file with 162k words/phrases, so give it a second for initial download. You can also drag/drop your own text/json corpus into the UI to try it against your own dataset. Live demo/compare with a few other libs (there are many more in the codebase, in various states of completion, WIP): https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uF... In isolation for perf assessment: https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uF... To increase fuzziness and get broader results, try setting intraMax=1 (core) and enable outOfOrder (userland): https://leeoniya.github.io/uFuzzy/demos/compare.html?libs=uF... Also play with the sortPreset selector to swap out the default Array.sort() for one in userland that prioritizes typehead-ness (the resultset remains identical). Still TODO: - Example of stripping diacritics - Example of using non-latin charsets - Example of prefix-caching to improve typeahead perf even further - Example of poor man's document search (matching multiple object properties) That's all, thanks!

More dev tools this month

the category →
  • Dograh592

    The open source VAPI alternative

    Dev tools · 25d ago · dograh.com

  • Meridian530

    Don't let your work go unnoticed. Get promoted!

    Dev tools · 20d ago · meridiona.com

  • x1516

    Lovable for iPhone apps go from idea to App Store

    Dev tools · 11d ago · x1.new

  • Open-source GTM skills for technical founders

    Dev tools · 29d ago · gtmcofounder.com

  • OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.

    Dev tools · 1d ago · opentrailpaper.com

  • Nuphos380

    The AI-Native DevOps Workspace.

    Dev tools · 24d ago · nuphos.ai

Launched alongside, September 2022

the whole month →
  • IM

    Life & fun · 2022 · dogbunnypuzzle.com

  • IM

    A couple of years ago, I had an interesting idea. What if there was a marketplace where all the underlying tech was open-source? The order management system, the storefront, customer support, etc. The marketplace would simply connect to the seller’s infra instead of locking them in. If, for some reason, the seller is removed from the marketplace, their software stays with them and they can continue accepting orders directly. This model can be used to disrupt any marketplace from AirBNB to UberEats: building tech for home renters and restaurants and later, leveraging that to build a competing…

    Dev tools · 2022 · openship.org

  • Polywork1,216

    Discover opportunities to collaborate

    Life & fun · 2022

  • xTiles1,035

    Organize your ideas & projects visually

    Work · 2022 · xtiles.app

  • Arcade 2.01,026

    The easiest way to showcase your product

    Life & fun · 2022 · arcade.software

  • Maven977

    100+ live courses taught by experts, education reimagined

    Life & fun · 2022 · maven.com