Adding stats to my music stack

When I listen to music, I mostly play something from my local collection that I've been amassing since I was a teenager. (That's not to say it's particularly big, though.) I do use

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?