Caution
Unfortunately GitHub restricted access to stargazers. The public endpoint is no longer available. Use the GitHub Action below to generate starlines for your own repositories.
Generates stargazer history badges (SVGs) for GitHub repositories and gists.
Note
The starline x-axis is scaled logarithmically and the y-axis is scaled by square root.
Add a workflow to your repository that runs the action and commits the outputs:
name: Update Starline
on:
schedule:
- cron: '0 0 * * 0' # weekly
workflow_dispatch:
jobs:
starline:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v7
with:
ref: starlines
- uses: qoomon/starlines@main
- uses: qoomon/actions--setup-git@v1
- run: |
git add starlines
git commit -m "chore: update starline" || true
git push The action writes starline.svg and starline-cache.json directly to the workspace root. If starline-cache.json already exists (e.g. committed from a previous run), it is used to resume incremental fetching.
| Input | Required | Description |
|---|---|---|
resource |
✅ | Owner (owner), repository (owner/repo), or gist (owner/gist-id@gist). When only an owner is specified, a starline.svg is generated for each of their repositories and gists, plus an aggregated starline.svg combining stars from all of them. |
github-token |
✅ | GitHub token with read access to the target repository or gist stargazers |
- Heavily inspired by spark
- especially the badge design is a copy of spark