Skip to content

feat(web): fetch GitHub star count dynamically - #266

Merged
ctate merged 3 commits into
mainfrom
ctate/star
Apr 9, 2026
Merged

feat(web): fetch GitHub star count dynamically#266
ctate merged 3 commits into
mainfrom
ctate/star

Conversation

@ctate

@ctate ctate commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Replace the hardcoded "12k" star count in the header with a live value fetched from the GitHub API
  • Star count is revalidated every 24 hours via Next.js fetch caching
  • Gracefully hides the count if the API request fails; optionally uses GITHUB_TOKEN for higher rate limits

Replace the hardcoded "12k" star count in the header with a live value
from the GitHub API, revalidated every 24 hours. Gracefully hides the
count if the fetch fails.
@vercel

vercel Bot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
json-render Ready Ready Preview, Comment Apr 9, 2026 7:02am
json-render-chat-demo Ready Ready Preview, Comment Apr 9, 2026 7:02am
json-render-dashboard-demo Ready Ready Preview, Comment Apr 9, 2026 7:02am
json-render-game-engine-demo Ready Ready Preview, Comment Apr 9, 2026 7:02am
json-render-image-demo Ready Ready Preview, Comment Apr 9, 2026 7:02am
json-render-no-ai Ready Ready Preview, Comment Apr 9, 2026 7:02am
json-render-react-email-demo Ready Ready Preview, Comment Apr 9, 2026 7:02am
json-render-react-pdf-demo Ready Ready Preview, Comment Apr 9, 2026 7:02am
json-render-react-three-fiber-demo Ready Ready Preview, Comment Apr 9, 2026 7:02am
json-render-remotion-demo Ready Ready Preview, Comment Apr 9, 2026 7:02am
json-render-solid-demo Ready Ready Preview, Comment Apr 9, 2026 7:02am
json-render-svelte-chat-demo Ready Ready Preview, Comment Apr 9, 2026 7:02am
json-render-svelte-demo Ready Ready Preview, Comment Apr 9, 2026 7:02am
json-render-vue Ready Ready Preview, Comment Apr 9, 2026 7:02am

@ctate
ctate merged commit 6e5ea18 into main Apr 9, 2026
21 checks passed
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