I'm trying to do so, at least. Never written an Anki extension before, but this sounds like it was very useful. My initial work is at my fork, will update if I figure it all out