Well done!
Of which there is an existing Node package that links to it: https://github.com/nodegit/nodegit
The caveat is that it stopped being a pure-JS library that boasts in-browser support.
Well done!