Number one this week, FlexSearch is a highly customizable library to perform full-text searches in the browser or in Node.js.

It works in 2 steps:

  • First you provide an array of simple JavaScript objects to build the search index, specifying some options including the fields to index.
  • Once the index is built, you can get the results that match a given query very fast.

It’s possible to combine several queries, assigning different “relevance score” depending on the matching conditions.

According to the benchmarks results mentioned by the documentation, it’s the fastest library in its category. During my tests in Node.js, I got search results in less than 2ms, searching through the 1500 projects tracked by Best of JavaScript.

FlexSearch
FlexSearch
+2.4 k
Next-Generation full text search library for Browser and Node.js
React
React
+636
A declarative, efficient, and flexible JavaScript library for building user interfaces.
ApexCharts
ApexCharts
+540
📊 Interactive SVG Charts
Vue.js
Vue.js
+502
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
VS Code
VS Code
+463
Visual Studio Code
Ink
Ink
+433
🌈 React for interactive command-line apps
x-spreadsheet
x-spreadsheet
+424
A web-based JavaScript(canvas) spreadsheet
react-testing-library
react-testing-library
+412
🐐 Simple and complete React DOM testing utilities that encourage good testing practices.
Awesome
Awesome
+368
Curated list of awesome lists
33 JS Concepts
33 JS Concepts
+322
📜 33 concepts every JavaScript developer should know.