GitHub has introduced a new API endpoint designed to provide repository star history. This endpoint returns up to 30 weeks of daily star counts in a single request. Crucially, it does not include any individual stargazer identities, focusing solely on the numerical trend of stars over time.
The previous method for obtaining star history involved requesting pages of stargazer records, which included timestamps and user identities. This design led to two main problems: bad actors scraped public stargazer lists for spam and phishing campaigns, and for highly starred repositories, the endpoint caused the database to process thousands of entries for a single page, impacting performance.
The new endpoint improves database efficiency by filtering stars by time before counting them, reducing the amount of data processed. This contrasts with earlier attempts to simply return less data, which did not make the query cheaper. The removal of identity data also mitigates the security risks associated with bulk collection of user information.
Initially, GitHub restricted stargazer and watcher lists to repository administrators and collaborators to address immediate risks. This change disrupted existing tools that relied on the old API to calculate star history. After consulting with maintainers and tool builders, GitHub developed the new aggregate endpoint to provide the curve of star counts, which was the essential data point for understanding project trajectory and interest, without the unnecessary user identities.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
GitHub has released a new API endpoint that provides daily star counts for repositories over 30 weeks in a single request, without including individual stargazer identities. This change addresses previous issues where bulk collection of stargazer identities led to spam and phishing, and improves database performance by reducing the data processed for star history queries.