Rémi here, really cool! It kind of turned into a rabbit hole on my end: https://github.com/rlouf/sigil