Repository navigation
feat(website): show live GitHub/npm stats and a release stream on the homepage - #4382
Merged
Merged
Conversation
… homepage
The homepage stopped at "here's how to install it" with nothing to show a
visitor that the project has real traction or ships often. Add a stats row
(GitHub stars/forks, release downloads, release count, npm downloads) and a
release stream with relative-date badges, both placed directly under the
install button.
Stats are fetched live at build time (website/src/data/github.ts), same
fail-loud discipline as the existing hub-catalog fetcher: no bundled fixture,
no silent fallback. Labels are deliberately specific ("GitHub release
downloads") rather than a bare "downloads", since the site's own install
button downloads from an R2 bucket that has no tracking at all — a private
admin dashboard covering that real number is scoped separately in
docs/plans/website-admin-dashboard.md.
Contributor
|
Verdict: Approve with suggestions The stats row and release stream look correct, with honest labels, and the pagination and error paths are tested. One deploy risk is worth fixing. 🟡 Production deploys can fail because of GitHub rate limits. The Railway build calls the GitHub API without a token. That limit is 60 requests an hour per IP, and Railway's build machines share outbound IPs with other customers. Someone else's traffic can use up the quota. The next deploy then gets a 403, and because there's deliberately no fallback, the whole website build fails. Set 🟢 Nits:
🔍 Technical details
|
11 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The homepage stopped its argument at "here's how to install it" — nothing on the page showed a visitor that the project has real traction or ships often. This adds a stats row (GitHub stars/forks, release downloads, release count, npm downloads) and a release stream with relative-date badges ("Today" / "N days ago"), both placed directly under the install button.
Numbers are fetched live at build time and labeled honestly: "GitHub release downloads", not a bare "downloads" — the site's own install button actually downloads from a Cloudflare R2 bucket with zero tracking today, so a number implying "everyone who's ever installed GAIA" would overclaim. The real all-source download/traffic dashboard is scoped separately in
docs/plans/website-admin-dashboard.mdrather than folded into this PR.Test plan
cd website && npm test— 109 tests pass, including 17 new tests insrc/data/github.test.tscd website && HUB_CATALOG_URL=https://hub.amd-gaia.ai npm run build— type-checks and builds cleancd website && HUB_CATALOG_URL=https://hub.amd-gaia.ai npm run dev, visit/, confirm the stats row and release stream render under the install button in both light and dark theme