# olivernn/lunr.js

A bit like Solr, but much smaller and not as bright

Repository: https://github.com/olivernn/lunr.js
Canonical: https://ross.abutalabs.com/products/lunrjs
Homepage: http://lunrjs.com
Language: JavaScript
License: MIT
License Family: permissive
Topics: lunr, javascript, search, full-text-search
Last push: 2024-07-31T11:57:09+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5550, "days_push": 763, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9199, forks 551 (observed 2026-08-28T04:10:28.856870+00:00)

## What it is
Lunr.js is a small, dependency-free full-text search library for JavaScript that indexes JSON documents and runs entirely in the browser or on Node.js. It provides ranked search with field scoping, term boosting, fuzzy matching, and support for 14 languages without any server-side search service.

## Use cases
- add full-text search to a static site or blog
- search JSON documents entirely in the browser
- implement offline search with no server
- add client-side search to a documentation site
- fuzzy search over a small in-memory dataset
- avoid running an external search service like Solr or Elasticsearch

## When to choose
- your data is small enough to load fully on the client
- you want search with zero network overhead or offline availability
- you need a lightweight alternative to server-side search engines
- you want simple, dependency-free search in browser or Node.js

## When to avoid
- you need to index large datasets that won't fit in the browser
- you need a scalable, multi-user server-side search service
- you need advanced features like faceting, highlighting, or real-time index updates across clients

## Facets
- artifact type: library
- maturity: maintenance
- function: search-engine, parser
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: full-text-search, client-side-search, static-site-search, fuzzy-search, offline-search, search, nodejs, javascript

## Member repositories
- olivernn/lunr.js (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:28.856870+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:23:18.661201+00:00, confidence not recorded.
  - readme: https://github.com/olivernn/lunr.js (fetched 2026-08-28T04:10:28.856870+00:00, sha 551d9d890139)
  - homepage: http://lunrjs.com (fetched 2026-08-29T08:23:33.440035+00:00, sha 7309f2acac47)
  - site_page: https://lunrjs.com/docs/index.html (fetched 2026-08-29T08:23:33.449041+00:00, sha cb47137ebdba)
- Data as of 2026-08-30T08:39:29.467469+00:00.
