Skip to content

fetch GitHub star count dynamically in docs header#1202

Merged
ctate merged 2 commits intomainfrom
ctate/star
Apr 9, 2026
Merged

fetch GitHub star count dynamically in docs header#1202
ctate merged 2 commits intomainfrom
ctate/star

Conversation

@ctate
Copy link
Copy Markdown
Collaborator

@ctate ctate commented Apr 9, 2026

Summary

  • Replace the hardcoded "27k" star count in the docs header with a live fetch from the GitHub API (stargazers_count), revalidated every 24 hours via Next.js fetch caching
  • Convert the Header component from a client component to an async server component
  • Gracefully hide the count if the API is unreachable or returns an error

Replace the hardcoded "27k" star count with a live fetch from the
GitHub API, revalidated every 24 hours via Next.js fetch caching.
Gracefully hides the count if the API is unreachable.
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 9, 2026

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

Project Deployment Actions Updated (UTC)
agent-browser Ready Ready Preview, Comment Apr 9, 2026 7:02am
agent-browser-env-demo Ready Ready Preview, Comment Apr 9, 2026 7:02am

@ctate ctate merged commit fa043a4 into main Apr 9, 2026
13 checks passed
@ctate ctate mentioned this pull request Apr 12, 2026
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