-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Star history #8
Comments
Thank you @wesngu28 for this great idea! You could use the REST API: or the GraphQL API: {
repository(name: "awesome-selfhosted", owner: "awesome-selfhosted") {
createdAt
stargazers(first: 100) {
edges {
starredAt
}
}
}
} In either case you would have to send many requests for all the 1200 repos with a lot of them more than 10k stars. Other resources I have found: |
Interstingly enough, it seems like star history kind of just gives up after 40k, or at least as far as I can tell. https://star-history.com/#netdata/netdata&Date Looking at netdata, after netdata hits 40k stars in 2019, there's just a line with no points until the current star count. This could probably be implementable with the rest api, and since the star graph would be small and similar in size to the commit graph it wouldn't be so unsightly, but its up to you. |
I will definitly look into how this could be done. I might try to get GitHub to add a GraphQL resolver so this could be done more efficiently. |
An alternative way to display the information would be using a wrapper like the one offered and talked about here https://star-history.com/blog/how-to-use-github-star-history and just embedding the provided image. With pagination it will also limit the amount of requests made at one time |
A feature that I think could be implemented and cool to have would be a star history graph, probably a small one, that would give a brief glance to how a repository may be growing or trending over time.
This data can be pulled using the github api,
by listing stargazers, which can also give the date of a star which lets you reconstruct the repo's star history at various points in time.
EDIT: Not sure if star date is supported by the starrable interface in the graphql api
The text was updated successfully, but these errors were encountered: