@bzg do you need backwards compatibility with versions of Discourse which don’t have plugin api support, because I’ve run into a little problem trying to achieve that:
Otherwise, I’m mostly done. I still need to blow the cobwebs out of my docker environment to test the plugin in a production environment, and to ensure the functionality now matches the functionality before, but once I’ve done that I think I’m all done and I’ll send a pull request your way.