Skip to content

Star History chart broken: api.star-history.com outage breaks homepage card and README embed #671

Description

@scttbnsn

The Star History chart on the homepage (apps/web/src/components/star-history-chart.tsx) and in the README renders as a broken image. Upstream cause: api.star-history.com is failing globally — arbitrary repos return 404/500 ("GitHub restricted starred-data access", their tokens are rate-limited; star-history/star-history#548 filed today), and star-history.com itself shows "Your GitHub token is invalid or expired". starchart.cc is also failing (400).

Fix: self-host the chart. A Next route handler (/api/star-history?theme=light|dark) fetches stargazer timestamps from the GitHub API server-side (optional GITHUB_TOKEN, graceful fallback, edge-cached 6h with stale-while-revalidate) and renders the SVG in the site's own ocean palette. Homepage component and README <picture> element point at our own origin — no third party left in the path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixed-pending-releaseFixed on a branch or unreleased build; pending tagged release or confirmation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions