Yeah, totally agree that it could be useful to the community -- open-sourcing it under a permissive license is on our todo list :)
It's a reasonable amount of effort to disentangle it from the rest of our code and build a nice API, so it will be several weeks till we get around to this.