# Lunr: 3.8 out of 10

Keep, but not for new work. 10th of 10 in [Search libraries and clients](https://elestia.ai/opensource/search/index.md).

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

- **Overall: 3.8** (likely 2.8 to 4.8)
  - Claude Opus 5.5 (3.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.
  - GPT-6.2 Sol (4.5): 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.
- **Needed by many: 4.7** (likely 3.6 to 5.8)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (5.4): 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.
- **Helps a lot: 5.6** (likely 4.6 to 6.7)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (6.7): 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.
- **Holds up over time: 2.1** (likely 1.4 to 3.4)
  - Claude Opus 5.5 (1.5): 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.
  - GPT-6.2 Sol (2.7): 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.
- **Used widely: 5.4** (likely 4.3 to 6.5)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (5.7): 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.
- **Vouched for: 5.2** (likely 4.1 to 6.5)
  - Claude Opus 5.5 (4.0): 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.
  - GPT-6.2 Sol (6.3): 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.
- **Safe: 6.2** (likely 5.0 to 7.6)
  - Claude Opus 5.5 (6.0): 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.
  - GPT-6.2 Sol (6.3): 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.

## 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

- Downloads, 4 weeks: 38M
- In a year: ×2.5
- GitHub stars: 9.2k
- Commits, 12 months: 0
- Last npm release: Aug 2020
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/olivernn/lunr.js
- npm: https://www.npmjs.com/package/lunr

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
