Skip to content

A simple tool to poll and save GitHub Repo data like Stars and Forks and other metrics for displaying in a chart.

License

Notifications You must be signed in to change notification settings

documenso/stargrazer

Repository files navigation

StarGrazer - GitHub Stats Collector/ Aggreator

🦺 This is experimental code, that has not been tested extensively.
  • We are running this on render.com
  • One database
  • One webservice
  • One cronjob service
  • We run this once a day, but aggregate to monthly so far
  • Forks and Merges sadly can't be retrieved for older dates and tracking will start in August 2023
  • Feel free to suggest changes/ addition, we can't guarantee how time we will put into this
  • Also feel free to use, but please mind that this is not thoroughly tested code

Endpoints

  • /api/poll: Trigger datapoint collection for this moment
  • /api/stat: Get a monthly aggregated timeline of previously collected stats. Highest value for month is used.

Example Data for /stats:

{"2023-8":{"stars":2465,"forks":150,"openIssues":66},"2023-7":{"stars":2250,"forks":0,"openIssues":0},"2023-6":{"stars":2070,"forks":0,"openIssues":0},"2023-5":{"stars":1260,"forks":0,"openIssues":0},"2023-4":{"stars":90,"forks":0,"openIssues":0},"2023-3":{"stars":0,"forks":0,"openIssues":0}}

About

A simple tool to poll and save GitHub Repo data like Stars and Forks and other metrics for displaying in a chart.

Resources

License

Stars

Watchers

Forks

Packages

No packages published