Hacker ApprovedDepartments

Lunr.js

Ranked 4 of 4 full-text search libraries by recommenders

A lightweight client-side full-text search library for static sites, with fuzzy matching, wildcards and field queries. Critics note that the search data file can be large and slow page loads.

A lightweight client-side full-text search library for static sites, with fuzzy matching, wildcards and field queries. Critics note that the search data file can be large and slow page loads.

6 people gave an opinion

recommend it
5
criticize it
1
approval share
83%
Each figure is one person. RecommendsCriticizes

Recommended in 1 of 13 months

  1. November 2025: not recommended
  2. December 2025: not recommended
  3. January 2026: recommended
  4. February 2026: not recommended
  5. March 2026: not recommended
  6. April 2026: not recommended
  7. May 2026: not recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: not recommended
  11. September 2026: not recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 5 people recommend itNeeds 10 or more, not met.
  • 5 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 1 of 13 monthsNeeds 4 or more, not met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Simple, effective client-side search

    “It's simple and effective, but searching the whole content would have required loading more files than I was comfortable with.”

    Comment from 13 Jan 2026 in “You Don't Need Mintlify”
  • Fuzzy search, wildcards and field queries

    “it has lots of options for things like different fields, complex queries, fuzzy searching and wildcards”

    Comment from 4 Jan 2026 in “Jeffgeerling.com has been Migrated to Hugo”
  • Used in production at endoflife.date

    “We use at endoflife.date, and are fairly happy.”

    Comment from 14 Jan 2026 in “You Don't Need Mintlify”

What people warn about

Each mark is one comment

  • Large search data file slows page load

    “downloading and parsing almost 2MB file of search data creates some hiccups on website during load”

    Comment from 13 Jan 2026 in “You Don't Need Mintlify”

Other full-text search libraries people recommend

The three most recommended other full-text search libraries, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Lunr.js compared with 3 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Apache Lucene12380%6—Approved
Tantivy80100%6——
PHP-fts60100%1——
Lunr.jsThis page5183%1——
See all 4 full-text search libraries, ranked

What people said

5 of the 6 comments that mention it, newest first. Each links to the original comment.

“We use at endoflife.date, and are fairly happy.”

MixedComment from 14 Jan 2026 in “You Don't Need Mintlify”

“for static search you could use lunr.js”

RecommendsComment from 13 Jan 2026 in “Show HN: Self-host Reddit – 2.38B posts, works offline, yours forever”

“downloading and parsing almost 2MB file of search data creates some hiccups on website during load”

CriticizesComment from 13 Jan 2026 in “You Don't Need Mintlify”

“It's simple and effective, but searching the whole content would have required loading more files than I was comfortable with.”

RecommendsComment from 13 Jan 2026 in “You Don't Need Mintlify”

“it has lots of options for things like different fields, complex queries, fuzzy searching and wildcards”

RecommendsComment from 4 Jan 2026 in “Jeffgeerling.com has been Migrated to Hugo”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.