I'm wrote my own site generator a while back and have always been considering adding in a simple js search, but the client would download the index, which is generated at compile time.
Even for a small blog the index might become decent size, though. I thought maybe a heavily pruned TF-IDF index could be workable though?