Needs to work on Node.js and the browser. Octo hasn't been updated in 4 years.
https://github.com/github-tools/github looks somewhat promising