From Calibre to Meilisearch

After a short while of thinking about how best to write something that will load Calibre's data and send it to Meilisearch, and then thinking about what a hassle it'd be to have to remember to run it after every change, I thought: hey, what if I wrote a Calibre plugin? How hard could it be?