PACKAGE · SEARCH

flexsearch

Next-Generation full-text search library for Browser and Node.js

WEEKLY DOWNLOADS 1.3M
STARS 13.8K
FORKS 528
OPEN ISSUES 40
GZIP SIZE 17.5 kB
UNPACKED SIZE 2.3 MB
DEPENDENCIES 1
LAST UPDATED 1y ago
DOWNLOAD TRENDS

flexsearch downloads · last 12 months

Download trends for flexsearch1 download series from Nov 2025 to Oct 2026. Use left and right arrow keys to inspect monthly values.01.6M3.2M4.8M6.3MNov 2025FebMayAugOct 2026
flexsearch
ABOUT FLEXSEARCH

FlexSearch is a JavaScript full-text search library for browser and Node.js environments. It indexes text so applications can retrieve relevant documents from user queries, providing an in-process search option instead of sending every lookup to a separate search service.

Its design centers on configurable text search and search-oriented use cases, including fuzzy matching. The package is intended for JavaScript developers who want to add search to web or server-side applications and control how text is indexed and queried; its Elasticsearch-related topics describe its search domain, not a claim of compatibility with Elasticsearch.

FlexSearch’s central workflow is to create an index, add searchable content, and query that index. This keeps indexing and retrieval within the application’s JavaScript runtime, making it possible to connect search results to the application’s own document data and interface. Check the documentation for the exact API and configuration options that match your version before selecting an indexing strategy.

The browser and Node.js support makes FlexSearch relevant to client-side search interfaces as well as server-side JavaScript workflows. Its web-worker topic also points to worker-based use as part of its ecosystem; confirm the supported setup and data-transfer requirements for your target environment before relying on that pattern. It is a search library, not a hosted indexing service or a complete search UI.

The listed gzip bundle size is 17.5 kB, while the unpacked package size is 2.3 MB; these figures describe different measurements and should not be treated as interchangeable. Version 0.8.212 is listed with Apache-2.0 licensing, 467.5K weekly downloads, 13.8K GitHub stars, 529 forks, 39 open issues, and a last-updated date of 2026-06-28. Evaluate index memory use and query behavior with your own documents and workload, since no such measurements are provided here.

WHEN TO USE
  • Add full-text search to a browser application by indexing text in JavaScript and querying the index from the search interface.
  • Build Node.js features that search application text without routing each query to an external search service.
  • Use fuzzy-search capabilities when the search experience should account for imperfectly typed queries; verify the matching behavior against your own query examples.
  • Keep search indexing and retrieval in the same application workflow by creating an index, adding documents, and querying it as data changes.
  • Explore worker-based search in a web application where the package’s web-worker ecosystem is relevant, after checking the required setup for your version.
  • Compare client-side and server-side JavaScript search approaches using the same full-text-search library across browser and Node.js environments.
WHEN NOT TO USE
  • Choose a hosted search service if your application requires managed indexing, distributed search infrastructure, or operations handled outside the JavaScript process; FlexSearch is a library, not a hosted service.
  • Use a database’s built-in text search if search must be evaluated alongside database queries and you do not want a separate in-process index to maintain.
  • Avoid FlexSearch when you require a documented Elasticsearch-compatible API or integration; the provided package information does not establish compatibility, so verify requirements or select a compatible search system.
  • Prefer a basic substring or field filter if the interface only needs literal matching and does not benefit from full-text indexing or fuzzy search.
  • Do not adopt it without workload testing when memory limits or index size are strict; the provided bundle and unpacked-size figures do not describe runtime index memory use.
  • Choose a server-side search design rather than browser indexing if your requirements do not permit search data to be present in the client; keep the index on the server or use a managed service.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

COMPARISONS 4
flexsearch vs fuse.js ★ 20.5K · 20.5M/wk flexsearch vs minisearch ★ 6.2K · 6.7M/wk flexsearch vs meilisearch ★ 871 · 968.8K/wk flexsearch vs algoliasearch ★ 1.4K · 9.7M/wk