Skip to content

Self-host the Star History chart - #728

Merged
luokerenx4 merged 1 commit into
devfrom
codex/self-host-star-history
Jul 28, 2026
Merged

Self-host the Star History chart#728
luokerenx4 merged 1 commit into
devfrom
codex/self-host-star-history

Conversation

@luokerenx4

Copy link
Copy Markdown
Contributor

Summary

  • replace the failing third-party Star History embed with a repository-owned static SVG and a live current-stars badge
  • add a reproducible generator that reads authenticated GitHub stargazer timestamps, immediately discards identities, aggregates by UTC day, and renders the OpenAlice-styled chart
  • add focused tests for aggregation, pagination/privacy behavior, and accessible SVG output

Why

The public Star History endpoint returns HTTP 503 because its shared GitHub API tokens are exhausted. GitHub's new restrictions on stargazer-list access also make third-party live history embeds structurally unreliable. A checked-in snapshot preserves the growth slope without making README rendering depend on that service.

User impact

The README keeps a visible historical growth curve. The chart remains available when third-party services are rate-limited, while the Shields badge supplies the live total between snapshot refreshes.

Verification

  • pnpm star-history:generate (6,283 active stargazers, 160 daily aggregate points)
  • pnpm exec vitest run scripts/generate-star-history.spec.ts
  • npx tsc --noEmit
  • pnpm test (353 passed, 1 skipped; 3,367 tests passed, 9 skipped)
  • xmllint --noout docs/images/star-history.svg
  • git diff --check
  • rendered the SVG at 1200×560 with rsvg-convert and visually inspected the result
  • scanned the generated SVG for usernames, raw stargazer fields, and credential material

Boundary touch

  • none (documentation asset and generator only)

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openalice-demo Building Building Preview, Comment Jul 28, 2026 6:57am

Request Review

@luokerenx4
luokerenx4 merged commit c33c32a into dev Jul 28, 2026
11 of 12 checks passed
@luokerenx4
luokerenx4 deleted the codex/self-host-star-history branch July 28, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant