Great work! Have you investigated Durable Object?
Hi, thank you very much for sharing this work.
Have you investigated durable object for this? The benefit would be tremendous as durable object are only running in 1 location and they are optimise for write heavy in-memory operations. Your current solution does not allow to update the search index easily (I think) and would load the index in each edge location.
I picture a durable object that extend the search functionality so that the index is created once and an API is created via itty-durable to allow interacting with the index/durable object.
I could not find an example on the internet of a DO inheriting complex logic coming from another npm library (here minisearch). I am curious to know if that works.
Thanks again. Cheers