Pagefind
Worth it
Confidence: Medium
Buy if you run a static docs site or blog and want capable search for free . it is the default choice in the Astro/static-site world.
New check
Comparison
Pagefind and Lunr.js both land on Worth it.
Buy if you run a static docs site or blog and want capable search for free . it is the default choice in the Astro/static-site world.
Buy it if you run a blog, docs site, or small-to-medium static site and want free search with no backend.
| Compare | Pagefind | Lunr.js |
|---|---|---|
| Verdict | Worth it | Worth it |
| Best for | Docs-heavy static sites | Docs-heavy static sites |
| Who it's not for | Teams wanting hosted, maintenance-free search | Large content libraries . index bloats the browser |
| Privacy | One medium-severity 2024 CVE (DOM clobbering XSS); project publishes a security page and ships patched betas.³ | No known public vulnerabilities found in the sources reviewed. |
| Support quality | Community GitHub support only; no vendor SLA | Community-only; stale releases, solo maintainer |
| Public sentiment | Developers are broadly happy with Pagefind for Astro and static-site search, with occasional install friction reported on GitHub.⁵ | Developers describe it as a small, capable client-side search engine for static sites, but community threads flag setup steps and scaling limits. |
| Biggest gotcha | CVE-2024-45389 (DOM clobbering to XSS): run a patched release before shipping the UI³ | Latest npm publish was Aug 19, 2020; verify project activity before adopting long-term.12 |