DevLeonardoCommunity / github-stats

Aggregating and displaying YOUR GitHub Stats in meaningful metrics (we learn web development in the meantime)
https://public-github-stats.vercel.app
MIT License
71 stars 36 forks source link

Define a mode without login #6

Closed Balastrong closed 1 year ago

Balastrong commented 1 year ago

Currently, we need to login with GitHub to get the token used to perform API calls having a much higher limit (5000 calls per hour vs 60 for unauthenticated - docs).

However, a simple usage of this application might stay well below 60 calls per hour so it makes sense to have an unauthenticated mode.


Bonus for development, find a way to use a GH_TOKEN from the env when the user is not logged. Could also be a login mode enabled only in DEV, that's still up to discussion. Suggestions are welcome!