I have read the github api docs and I haven't found any streaming api like twitter streaming api.
I want to implement public github repository feed via js on client side without a server.
Is it possible?
Should I create a server and github app and authenticate my server on github so I can make all requests through it?
There is no streaming API for GitHub. I doubt they have plans of adding one either to be frank.
Your initial request can get the last 30 events and then poll with the ETag header of that request for updates. You'll need to be authenticated (somehow, not necessary via an app) to make it work. Considering each request should come from a different IP address I would hazard a guess that the rate-limits wouldn't be applied globally to all visitors regardless of who they're authenticating as. That, however, would be an excellent question for the API support team at GitHub.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With