What problem does it solve?
GitHub now restricts the stargazers API endpoint to a repository's own admins and collaborators, so third-party live chart services like star-history.com and starchart.cc return "Requires authentication" errors for every repo. This Skill replaces those broken embeds with a static SVG generated in-repo using an authenticated token, so the chart never breaks.
Core Features & Use Cases
- Authenticated data fetching: A Python script paginates the GitHub stargazers API with a token and builds a cumulative star-count time series.
- Theme-aware SVG rendering: Produces a light/dark adaptive chart via a
prefers-color-scheme media query, with configurable colors and dimensions.
- Automated weekly refresh: A GitHub Actions workflow regenerates and commits
docs/star-history.svg every Monday using the repo's own GITHUB_TOKEN, with no secrets to configure.
- Use Case: Your README's star-history.com badge shows "Requires authentication". Use this Skill to replace it with a locally committed SVG that auto-updates weekly.
Quick Start
Set up a self-hosted stargazers chart for my repository by copying the generator script and workflow, generating the initial SVG with my GitHub token, and updating the README to point at the local image.