I’m looking for a way to add search to a fully static site (think technical documentation) without any server side compute or API.
My idea was to implement one that generates a static index that can be queried by client-side javascript when doing a search, and have the index be organized in such a way that it can be used without having to download the entire thing.
I feel like this should exist already, but I have zero experience here. So, can anyone share suggestions?


Pagefind is an awesome solution and can work with pretty much any static site generator. https://pagefind.app/
For example, I use it here on my site That HTML Blog.
Awesome, this is exactly what I was looking for, thanks!