Hacker Newsnew | past | comments | ask | show | jobs | submit | meto's commentslogin

https://pagefind.app/ static site search


I use Astro SSG and Cloudflare Pages. I use https://github.com/cloudcannon/pagefind for search on my Astro setup. You can test the search functionality here https://tinyrocket.pages.dev/.

From its repo: "Pagefind runs after any static site generator and automatically indexes the built static files. Pagefind then outputs a static search bundle to your website, and exposes a JavaScript search API that can be used anywhere on your site."

Pagefind is cool!


I don’t want to force JavaScript onto my users and wrote my own full-text search for Hugo that is skinned with your Hugo theme for a seamless look (only the URL changes):

https://GitHub.com/fazalmajid/fts5index

Demo: use the search sidebar on blog.majid.info.

But yes, what you describe is how search works on Sphinx-generated documentation sites and is quite impressive technology even before WASM.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: