An efficient, client-side JavaScript search library for indexing and querying JSON objects with stemming, stop words, and TF-IDF ranking.
Js Search is a client-side JavaScript library that enables efficient full-text search on JavaScript objects and JSON data directly in the browser. It solves the problem of implementing fast, feature-rich search without server dependencies by building search indexes locally and supporting advanced features like stemming, stop word filtering, and TF-IDF ranking.
Frontend developers building applications that require client-side search functionality, such as data dashboards, documentation sites, or interactive web apps with local datasets.
Developers choose Js Search for its performance advantages over alternatives like Lunr JS, its small file size, and its rich feature set—including configurable tokenization, stemming, and ranking—all while maintaining zero external dependencies.
JS Search is an efficient, client-side search library for JavaScript and JSON objects
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Benchmarks in the README show it outperforms Lunr JS in both index building and search execution, making it faster for client-side use.
Supports TF-IDF ranking, custom tokenizers, stemming, and stop word filtering, providing advanced search capabilities without server dependencies.
Built with ES5 compatibility and works without jQuery or other libraries, ensuring minimal bundle size and broad browser support.
Offers prefix, all-substrings, and exact-word indexing strategies, allowing developers to tailor search behavior to specific needs.
Does not include a built-in stemmer; users must integrate external libraries like porter-stemmer, adding setup complexity and dependency management.
Setting up tokenizers, stop words, and index strategies requires explicit coding, which can be verbose and error-prone for simple search implementations.
Indexing large datasets in the browser can impact initial load times and memory usage, as acknowledged in the philosophy prioritizing runtime performance.
js-search is an open-source alternative to the following products: