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?

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 9 months ago*

Search incorporating the static site generators as keywords; there’s some JavaScript stuff for that which you may be able to modify. Example https://github.com/christian-fei/Simple-Jekyll-Search

I am not a frontend person.

  • source