Shywim / github-repo-size

A Firefox addon showing the size of a Github repository.
https://addons.mozilla.org/en-US/firefox/addon/github-repo-size/
MIT License
69 stars 9 forks source link

Migrate to using GraphQL API #20

Closed muety closed 4 years ago

muety commented 4 years ago

You may want to migrate to API version v4, which offers a GraphQL interface. Using a GraphQL query, the amount of traffic to be transferred to get the repo size could be reduced dramatically. You would be able to request only the single size field, instead of the whole > 100 lines long JSON document for each repo.