Lunr
Keep, but not for new work. 10th of 10 search libraries and clients.
Lunr is a small, dependency-free client-side full-text search library with stemming, field boosts and a query language. Its last release was 2.3.9 in August 2020 and there were no commits in the last year. It still works where it already runs, but for new projects MiniSearch, FlexSearch or Pagefind are better picks.
Best for: Projects that already use Lunr, or a docs tool built on it, and need stable search over a static, prebuilt index.
Scores
Overall3.8
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 3.0, likely 2.0 to 4.0
Lunr still works and is safe to keep where it runs, but it has had no release in six years. MiniSearch, FlexSearch and Pagefind do the same job with index updates, better speed or types, and they are maintained. Keep it in existing setups and pick a peer for new work.
- npm latestPublishedAt: It has had no release since 2020.
- peers: MiniSearch, Pagefind and Orama grow far faster.
- discourse.gohugo.io/t/re-hugo-search-tools-lunrjs-appears-abandoned/57022: Users recommend switching to alternatives.
GPT-6.2 Sol: 4.5, likely 3.5 to 5.6
Keep Lunr where its ranked search already works on a small, stable collection. For a new project, MiniSearch offers bundled TypeScript declarations and incremental updates, and Pagefind can reduce how much index data a static site needs to send per search. Lunr’s long release gap weighs most heavily, with room for a higher score when its query syntax and offline behavior are a close fit.
- npm.latestPublishedAt, github.commitsLastYear, peers: Lunr has been quiet for years, and several peers are still shipping.
- github.com/CalebMorris/StaticDocket/blob/master/docs/research/fuzzy-search-libraries.md: A downstream project chose MiniSearch for native types and a prebuilt JSON workflow.
- github.com/lucaong/minisearch/blob/master/src/MiniSearch.ts: MiniSearch exposes incremental document updates in its typed API.
- allaboutken.com/posts/20260228-replacing-lunr-with-pagefind: A static site reduced its initial search download with Pagefind.
- lunrjs.com/guides/searching.html: Lunr’s query language gives small local collections expressive search.
Needed by many4.7
How many developers need a tool for this job?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
In-browser full-text search over a static set of documents is a clear niche, used mostly by docs sites and static blogs. Most apps need either a search server or simple fuzzy filtering instead. Lunr covers only the in-process part of the category.
- category scope: The category also covers server clients such as Elasticsearch, Meilisearch and Typesense, which Lunr does not replace.
- discourse.gohugo.io/t/re-hugo-search-tools-lunrjs-appears-abandoned/57022: It is used mainly for static-site search, for example with Hugo.
GPT-6.2 Sol: 5.4, likely 4.2 to 6.6
Search is a common need in documentation, catalogs, and web apps. Lunr works across frameworks and is most useful when the searchable collection can fit in browser memory. How often that fits depends on collection size, update frequency, and whether the data can be sent to the browser.
- github.com/olivernn/lunr.js: Framework-independent search over local JavaScript documents.
- lunrjs.com/guides/index_prebuilding.html: Prebuilt indexes suit mostly static collections.
- squidfunk.github.io/mkdocs-material/plugins/search: Built-in browser search works for offline documentation.
Helps a lot5.6
How well does it do the job for those who need it?
Claude Opus 5.5: 4.5, likely 3.5 to 5.5
It has real full-text features: stemming, boosts, wildcards, fuzzy matching and field-scoped queries. But the index cannot be changed after it is built, it uses more memory than MiniSearch's, it is slower than FlexSearch, and it ships no types. Peers in the bundle do the same job better for most people.
- lucaongaro.eu/blog/2019/01/30/minisearch-client-side-fulltext-search-engine.html: The index cannot be changed after it is built, and it uses more memory than MiniSearch. Its query language and stemming are strong.
- npm hasTypes: It ships no bundled TypeScript types.
- emersonbottero.github.io/flexsearch/guide/concept.html: A FlexSearch benchmark shows Lunr far behind on throughput.
GPT-6.2 Sol: 6.7, likely 5.6 to 7.8
Version 2.3.9 offers BM25 ranking, a flexible query language, and clear guides for building and loading indexes. Lunr ranked results well in ZBSearch’s benchmark, while MiniSearch used less memory and answered faster on the large test collection. Index updates require a rebuild, and TypeScript declarations come from a separate package. Performance depends heavily on the corpus and query mix.
- lunrjs.com/guides/searching.html: Documents ranking, field syntax, boosts, and fuzzy matching.
- zbsearch.dev/benchmarks: A competing engine’s benchmark found strong Lunr relevance on BEIR datasets.
- zbsearch.dev/benchmarks/large-indexes: At 160,000 passages, median query latency was 284 ms for Lunr and 47 ms for MiniSearch.
- github.com/olivernn/lunr.js/issues/531: A user explains why full rebuilds ruled it out for interactive updates.
- npmjs.com/package/%40types/lunr: Community TypeScript declarations are packaged separately.
Holds up over time2.1
Will it still be a good choice in two years?
Claude Opus 5.5: 1.5, likely 1.0 to 3.0
The last npm release was in August 2020. There were no commits or releases in the last year, and the last push was in July 2024. Users on the Hugo forum call it abandoned and point to Pagefind, FlexSearch and Fuse. It is not archived, which keeps it above zero.
- npm latestPublishedAt: Its last release was 2.3.9 on 2020-08-19.
- github commitsLastYear: There were 0 commits and 0 releases in the last year.
- scorecard Maintained: The Scorecard Maintained check scores 0.
- discourse.gohugo.io/t/re-hugo-search-tools-lunrjs-appears-abandoned/57022: An April 2026 Hugo forum post says six years without activity and recommends alternatives.
GPT-6.2 Sol: 2.7, likely 1.8 to 3.8
Lunr last published in August 2020 and recorded zero commits or releases in the past year. Simple documentation fixes and requests for index updates remain open, while Fuse.js and Pagefind are shipping releases. Existing integrations give the current API staying power, but the timing of a future upstream fix is hard to predict.
- github.commitsLastYear, github.releasesLastYear, npm.latestPublishedAt: No commits or releases in the past year. Last npm publish was in August 2020.
- github.com/olivernn/lunr.js/blob/master/CHANGELOG.md: The changelog ends at the 2.3.9 bug-fix release.
- github.com/olivernn/lunr.js/pulls: Documentation fixes opened in 2024 and 2025 remain open.
- github.com/olivernn/lunr.js/issues/531: The 2024 request for incremental index updates remains open.
- peers: Fuse.js and Pagefind both released in 2026 and recorded substantial commit activity.
Used widely5.4
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
It has 38M downloads in 4 weeks and 42k dependent repos, second only to Fuse.js. But most installs likely come through docs tools that depend on it, and many dependent repos are old static sites. Its download ratio of about 2.5 is well below the median of 4.1, while MiniSearch, Orama and Pagefind grow much faster, so it is losing ground among new projects.
- npm downloadsLast4Weeks: 38.4M now against 15.6M a year ago, a ratio of about 2.46, which is below the median of 4.1.
- dependents repos: 42,125 dependent repos, against 76,600 for Fuse.js and 3,121 for FlexSearch.
- bluesky posts: 0 Bluesky posts and no relevant Hacker News stories.
- npmjs.com/package/docusaurus-lunr-search: Docs plugins install it indirectly.
GPT-6.2 Sol: 5.7, likely 4.6 to 6.9
Ecosyste.ms found 42,125 dependent repositories and 597 packages, putting Lunr behind Fuse.js and well ahead of MiniSearch and FlexSearch in tracked repositories. Four-week downloads grew from 15.6 million to 38.4 million, about 2.46 times the prior year and below the 4.1 catalog baseline. That suggests Lunr is losing ground against the baseline. Repeat builds and installs through packages such as TypeDoc make the share of fresh direct choices hard to estimate.
- dependents, peers: Lunr has 42,125 tracked dependent repositories versus 76,600 for Fuse.js and 1,063 for MiniSearch.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: Download growth was 2.46 times versus the 4.1 catalog baseline.
- raw.githubusercontent.com/TypeStrong/typedoc/master/package.json: TypeDoc installs Lunr as a runtime dependency.
- github.stars, bluesky.posts, hackerNews.top: 9,201 stars, zero tracked Bluesky links, and one unrelated Hacker News match.
Vouched for5.2
Who stands behind it being good?
Claude Opus 5.5: 4.0, likely 3.0 to 5.5
Docs tools such as TypeDoc have used it, along with Docusaurus plugins and many static-site generators, but much of that support dates from years ago. Current independent write-ups list it as legacy and point to MiniSearch, FlexSearch and Pagefind. I found no current survey data or benchmarks that favour it.
- packages.ecosyste.ms/registries/npmjs.org/packages/typedoc/versions/0.23.27: TypeDoc lists lunr ^2.3.9 as a dependency.
- npm-compare.com/elasticlunr,flexsearch,fuse.js,minisearch: It calls peers actively maintained and its fork elasticlunr deprecated.
- MkDocs search plugin: The MkDocs built-in search has historically used lunr.js.
GPT-6.2 Sol: 6.3, likely 5.1 to 7.5
Material for MkDocs uses Lunr for its built-in search, and TypeDoc still ships it. Backstage enables it in the default scaffold and advises against using it in production. A recent site migration reported fast queries after load and switched to Pagefind to reduce the initial download. The State of JavaScript results reviewed provide no Lunr-specific satisfaction measure.
- squidfunk.github.io/mkdocs-material/plugins/search: Lunr powers the built-in documentation search plugin.
- raw.githubusercontent.com/TypeStrong/typedoc/master/package.json: TypeDoc declares Lunr 2.3.9 as a runtime dependency.
- backstage.io/docs/features/search/search-engines: Backstage endorses Lunr for local development and discourages production use.
- allaboutken.com/posts/20260228-replacing-lunr-with-pagefind: Firsthand migration reports fast local queries and lower initial transfer with Pagefind.
- 2025.stateofjs.com/en-US/other-tools: The survey page provides no Lunr-specific result.
Safe6.2
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 5.0 to 7.5
It has zero dependencies, no known advisories and an MIT licence, so the attack surface is small. The OpenSSF Scorecard is 2.5, with no security policy, no branch protection and no maintenance. If a bug is found, a fix is unlikely to come quickly.
- npm dependencies: It has 0 runtime dependencies.
- advisories total: There are 0 known advisories.
- scorecard score: Scorecard 2.5, with a Security-Policy score of 0 and a Branch-Protection score of 0.
GPT-6.2 Sol: 6.3, likely 4.9 to 7.7
The MIT license and zero runtime dependencies keep the package’s supply-chain exposure small, and OSV lists no advisories. OpenSSF Scorecard gives it 2.5 out of 10, with low marks for code review and zeros for branch protection and security policy. npm lists one collaborator, and the long release gap leaves little evidence about how quickly a new issue would be patched.
- npm.dependencies, npm.license, advisories.total: Zero runtime dependencies, MIT license, and zero recorded OSV advisories.
- scorecard.score, scorecard.checks: Code review scored 3. Branch protection and security policy each scored 0.
- npmjs.com/package/lunr?activeTab=versions: The npm listing shows one collaborator and a six-year release gap.
Good
- It has no runtime dependencies and no known advisories in the OSV database.
- It includes stemming, field boosting, wildcards and a Lucene-like query syntax, and lunr-languages adds many languages.
- Its API has not changed since 2020, so tutorials and AI-generated code for 2.3.9 are usually correct.
- Its index can be serialized and prebuilt at build time for static sites.
Bad
- There has been no release since 2020 and no commits in the last year, and 105 issues and 25 pull requests are open.
- Once an index is built you cannot change it, so any update means rebuilding the whole index.
- It ships no TypeScript types, so you need @types/lunr.
- Its index uses more memory than MiniSearch's, and benchmarks show FlexSearch is much faster on large sets.
The numbers
- npm downloads, 4 weeks
- 38M ×2.5 in a year
- GitHub stars
- 9.2k
- Commits, 12 months
- 0
- npm version
- 2.3.9 Aug 2020
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 2.5 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (olivernn/lunr.js), npm (lunr), OSV and the OpenSSF Scorecard.
Search libraries and clients
- 7.9Pagefind
- 7.5Elasticsearch client
- 7.5Meilisearch client
- 7.4Fuse.js
- 7.2Typesense client
- 6.6MiniSearch
- 6.4uFuzzy
- 6.1FlexSearch
- 5.1Orama
- 3.8Lunr