Hello @piratdavid,
I read in another discussion that you are considering publishing your plugin - have you made up your mind about that? I personally think this is would be a valuable add-on to discourse - especially since there are numerous similar approaches as you have sucessefully implemented - but neither seems to work properly and in a production environment.
Thanks for considering again - sharing is caring : )
cheerio
andré