Pagefind
A strong pick. 1st of 10 search libraries and clients.
Pagefind is a Rust command-line tool that indexes a built static site into small chunks, plus a browser search API and UI that load only what each query needs. Today it is the strongest choice for full-text search on static sites, docs and blogs. It is not a general in-app record search library, and it has no typo tolerance.
Best for: Teams that build static sites, docs or blogs and want full-text search without a server, even on large or multilingual sites.
Scores
Overall7.9
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.5, likely 6.5 to 8.0
It is clearly the best pick in this category for static-site search. It is light, scales to large sites, is actively developed and is the default of a major docs framework. It does not do the general in-app search job that Fuse.js, MiniSearch or the server clients do, and it has no typo tolerance. Its main risk is the small maintainer base.
- github.com/Pagefind/pagefind/releases: Steady releases without breaking changes
- npm downloadsLast4Weeks: Fast growth, much of it through Starlight
- dev.to/morinaga/static-site-search-for-astro-in-2026-why-i-picked-pagefind-over-algolia-and-lunr-6dg: Chosen over Lunr and Algolia; fuzzy matching is missing
GPT-6.2 Sol: 8.3, likely 7.2 to 9.2
Pagefind is a first choice for new static documentation sites because it turns built content into searchable pages with modest browser downloads and no search server. Recent fixes and production use make it a strong choice for that job. MiniSearch fits small in-memory collections that need fuzzy matching, and Meilisearch fits records that must be updated independently of the site build. Large-site build costs and the lack of typo tolerance keep Pagefind below the top of the broader search category.
- github.com/Pagefind/pagefind/releases/tag/v1.6.0: Current stable release improves search and indexing and fixes reported bugs.
- starlight.astro.build/reference/configuration/#pagefind: A current documentation framework builds its default search on Pagefind.
- devinthemtn.gryffontech.com/posts/static-site-report: Independent comparison describes the tradeoffs of on-demand chunks and in-memory search.
- github.com/lucaong/minisearch: MiniSearch supports fuzzy full-text matching on in-memory records.
- github.com/meilisearch/meilisearch-js: The JavaScript client writes and queries records against a running search server.
Needed by many4.1
How many developers need a tool for this job?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
Pagefind serves one clear niche in this category: search over pre-built static sites, such as docs, blogs and marketing sites. That group is large, but Pagefind cannot search app data at runtime the way Fuse.js, MiniSearch or the server clients can. It works with any static site generator, which keeps it from being narrower.
- github description: "Static low-bandwidth search at scale"
- dev.to/morinaga/static-site-search-for-astro-in-2026-why-i-picked-pagefind-over-algolia-and-lunr-6dg: The index exists only after a site build
- gohugo.io/tools/search: Hugo lists it among its client-side search options
GPT-6.2 Sol: 4.2, likely 3.1 to 5.3
Static documentation, blogs, and knowledge bases are a clear niche across several frameworks. Pagefind can index custom records, but search still runs against a prebuilt index in the browser. Developer surveys show demand for site generators, but give little indication of how many sites need full-text search.
- 2024.stateofhtml.com/en-US/other_tools: Survey respondents regularly use Astro, Eleventy, Hugo, and other site generators.
- pagefind.app/docs/node-api: The indexer accepts rendered HTML and custom records.
- pagefind.app/docs: The standard workflow publishes the search index as static assets.
Helps a lot8.3
How well does it do the job for those who need it?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
For static sites, it does the job better than the peers that load the whole index. Chunked indexes, BM25 ranking, filters, metadata search, multilingual segmentation, a Web Worker and a ready-made UI make it complete. It has no fuzzy matching, and users find keyword ranking weak for semantic queries. One Hugo user found Fuse.js more accurate on a small site.
- github.com/Pagefind/pagefind/releases: v1.5/v1.6 add the Component UI, Web Worker search, ~45% smaller chunks and ICU4X segmentation
- dev.to/morinaga/static-site-search-for-astro-in-2026-why-i-picked-pagefind-over-algolia-and-lunr-6dg: Initial load under 30KB; no fuzzy matching
- effect.website/blog/how-mixedbread-transformed-our-search: The Effect team left it over weak handling of semantic queries
- discourse.gohugo.io/t/client-side-search-update/52536: Users call it fast and good for multilingual sites; one found Fuse.js more accurate
- npm hasTypes: Ships TypeScript types
GPT-6.2 Sol: 8.5, likely 7.4 to 9.4
On-demand index chunks, Web Worker search, and heading-level results make Pagefind particularly good at searching large static sites. Version 1.6.0 improves multilingual segmentation and fixes ranking and index-loading bugs. The documented CLI and typed Node API give coding agents clear integration examples, although agent reliability has no direct measurement here. Typo tolerance is still missing, and results from individual sites give limited evidence about performance across workloads.
- github.com/Pagefind/pagefind/releases/tag/v1.6.0: Improved multilingual segmentation, broad queries, and retry handling.
- github.com/Pagefind/pagefind/releases/tag/v1.5.0: Introduced Web Worker search, smaller index chunks, and the component UI.
- pagefind.app/docs/api: Documents the generated browser API and heading-level results.
- pagefind.app/docs/node-api: Shows how to build an index and handle indexing errors from Node.
- npm hasTypes: The npm package ships type declarations.
- github.com/Pagefind/pagefind/issues/2: The request for general typo tolerance remains open.
Holds up over time7.5
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It had 294 commits and 5 releases in the last year, with v1.6.0 out this month. Changes are careful: none were labelled breaking, and the old UIs remain supported. Risk comes from relying on one main maintainer and from unclear funding since it became independent of CloudCannon. Starlight's default use of it ties it to a growing ecosystem.
- github commitsLastYear: 294 commits, 5 releases
- github latestRelease: v1.6.0 on 2026-11-01
- pagefind.app: Independent project, first built at CloudCannon; no current sponsor named
- summary.ecosyste.ms/projects/372523: Liam Bigelow is the dominant committer
GPT-6.2 Sol: 8.0, likely 6.8 to 9.0
Pagefind had 294 commits and five GitHub releases in the past year, with stable 1.6.0 arriving in November. A reported Linux indexing regression was patched the following day, and the older search UIs stayed supported when the new one shipped. Community fixes and CloudCannon's development sponsorship help, while the size of the release team and the funding commitment remain unclear.
- github commitsLastYear, releasesLastYear, latestRelease: 294 commits, five GitHub releases, and stable 1.6.0 on November 1.
- github.com/Pagefind/pagefind/issues/1119: A user reported the Linux indexing slowdown on April 11.
- github.com/Pagefind/pagefind/blob/main/CHANGELOG.md: The April 12 patch fixed the slowdown, and 1.5 kept the older UIs supported.
- github.com/Pagefind/pagefind/milestones: Public milestones track search ranking and maintenance work.
- pagefind.app: Lists CloudCannon as a development sponsor.
Used widely5.1
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Downloads grew 15x in a year, from 0.97M to 14.7M per 4 weeks. That is far above the median ratio of 4.1. Much of this comes in through Astro Starlight, which installs it by default, so many installs are not direct choices. The ecosyste.ms dependents count of 48 repos is low, probably because most use is through generators or the CLI. Tens of thousands of sites likely use it.
- npm downloadsLast4Weeks: 14.7M, against 0.97M a year ago
- medianDownloadsRatio: Ratio of ~15 against a median of 4.1
- dependents: 48 repos and 3 packages, low against peers
- starlight.astro.build/guides/site-search: Starlight ships Pagefind as its default search
- github stars: 5,570 stars
GPT-6.2 Sol: 4.2, likely 3.1 to 5.5
Four-week npm downloads rose 15.1× year over year, exceeding the 4.1× catalog median and every peer in the bundle. Starlight installs Pagefind automatically, and repeated builds inflate the count. Wappalyzer detects it on over a thousand live sites, while ecosyste.ms finds just 48 dependent repositories and three packages, well below most peers. A few thousand deployments is a reasonable estimate, with substantial uncertainty about how many teams chose Pagefind directly.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: 14.74 million versus 0.97 million downloads, the fastest growth among listed peers.
- github stars, dependents, peers: 5,570 stars, 48 tracked repositories, and three tracked packages.
- bluesky posts, hackerNews stories, peers: Eleven Bluesky posts lead this peer set, with little Hacker News discussion.
- github.com/withastro/starlight/blob/main/packages/starlight/package.json: Starlight installs Pagefind as a regular dependency.
- wappalyzer.com/technologies/search-engines/pagefind: Independent detection confirms use on over a thousand live sites.
Vouched for7.6
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Astro Starlight made it the default search, and Hugo's docs list it among their search tools. Codeberg's docs use it, and the project shows demos on MDN and Godot content. Independent write-ups recommend it over Lunr and Algolia for static sites. There is no survey data, and at least one notable docs team moved away from it.
- starlight.astro.build/guides/site-search: Starlight's default search
- codeberg.org/Codeberg/Documentation/pulls/840: Codeberg's documentation depends on it
- blog.openreplay.com/add-search-website-without-backend: Independent guide recommends it for larger static sites
- bluesky top: Zach Leatherman (Eleventy) praised the new UI
GPT-6.2 Sol: 8.2, likely 7.1 to 9.2
Astro Starlight uses Pagefind by default, and Kubernetes and Git use it in production for their documentation. A user measured faster indexing after upgrading to 1.5.2, while Micro.blog reports that indexing can lengthen publishing for blogs with thousands of posts. These are concrete deployment results, though evidence from broad satisfaction surveys and repeatable cross-tool benchmarks is thin.
- starlight.astro.build/reference/configuration/#pagefind: Astro Starlight enables Pagefind search by default.
- github.com/kubernetes/website/blob/main/netlify.toml: Kubernetes generates the Pagefind index in its production build.
- github.com/git/git-scm.com/blob/gh-pages/ARCHITECTURE.md: Git's public documentation uses Pagefind for search.
- github.com/Pagefind/pagefind/discussions/1123: One user measured a threefold indexing speedup after upgrading from 1.4.0.
- help.micro.blog/t/pagefind-site-search/4131: Micro.blog supports Pagefind and reports extra publishing time for large blogs.
Safe8.2
How safe is it to depend on?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
The package has zero runtime dependencies and an MIT licence. It runs at build time and ships static files to the browser. Its one moderate advisory, a DOM-clobbering XSS, was fixed quickly in v1.1.1, and nothing new has appeared in 24 months. There is no Scorecard data, and the npm package installs prebuilt platform binaries, which leaves some risk in how releases are published.
- advisories: 1 moderate advisory from 2024, fixed in v1.1.1
- npm dependencies: 0 dependencies
- github license: MIT
- scorecard: No Scorecard data
GPT-6.2 Sol: 8.3, likely 7.2 to 9.3
The MIT-licensed npm wrapper has no regular dependencies and installs a first-party native binary for the platform. GitHub Actions publishes the wrapper and binaries with npm provenance. The sole reported moderate XSS advisory was patched in 1.1.1 by public disclosure, and the snapshot lists no advisories in the past two years. OpenSSF Scorecard coverage and the number of people with release access remain unverified.
- npm license, dependencies, advisories, scorecard: MIT, zero regular dependencies, one older advisory, and no Scorecard result.
- github.com/Pagefind/pagefind/blob/v1.6.0/wrappers/node/package.json: Platform binaries are first-party optional npm dependencies.
- raw.githubusercontent.com/Pagefind/pagefind/v1.6.0/.github/workflows/release.yml: The release workflow publishes npm artifacts with provenance.
- github.com/Pagefind/pagefind/security/advisories/GHSA-gprj-6m2f-j9hx: The published advisory identifies 1.1.1 as the patched version.
Good
- The index is split into chunks and loaded on demand, so the first load stays small even on sites with many thousands of pages.
- It works with any static site generator, because it indexes the built HTML after the build.
- Multilingual support, including CJK and Thai segmentation, works without extra setup.
- It is actively maintained, and v1.5 and v1.6 added a web-component UI, Web Worker search and smaller indexes.
Bad
- It has no fuzzy or typo-tolerant matching, so a misspelled query returns nothing.
- It only searches an index built ahead of time, so it does not fit searching live app data or records in memory.
- Keyword ranking struggles with semantic queries, and some docs teams have moved to vector search for that reason.
- Work depends mostly on one lead maintainer, and since the project left CloudCannon, who funds it is not clear.
The numbers
- npm downloads, 4 weeks
- 15M ×15 in a year
- GitHub stars
- 5.6k
- Commits, 12 months
- 294
- npm version
- 1.6.0 Nov 2026
- Versions, 12 months
- 3
- Advisories, 24 months
- 0 of 1 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
It is written in Rust. The package runs its command-line tool.
Read on 21 November 2026 from GitHub (Pagefind/pagefind), npm (pagefind), 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