Hmmm…I might just do this in golang.

If it has functionality similar to java.util.zip, I could build the ePub with it too.

Hmmm.