Hacker News new | ask | show | jobs
by woodruffw 1477 days ago
Very cool. I had no idea GitHub's API kept history statistics for stars!
1 comments

I don't think it does...
It looks like they're using the `starred_at` timestamp, which is indeed provided by GitHub's stars API[1].

Edit: the code in question[2].

[1]: https://docs.github.com/en/rest/activity/starring#custom-med...

[2]: https://github.com/bytebase/star-history/blob/c8c66678db8015...

Yeah and therefore, it's not the actual history because it only tracks the dates of when the people who have currently starred it have started starring it. It's a detail, but if someone unstars, it will be treated as if that person had never starred the project in the first place. Or in other terms, whatever graph is shown, you will never see it go down.
Ah my mistake! Thanks!