You can also do something like this with static pages using https://pagefind.app/
I built a ChatGPT/claude history search tool and it works surprisingly well.
There are other tools also. Not to detract from this tool but just to inform people about alternatives.