This project uses GitHub's GraphQL API to fetch star counts for repositories. To make this work correctly, you need to set up a GitHub personal access token.
If you're deploying using GitHub Actions, the token is automatically handled by our workflow. You don't need to do anything manually. See GitHub Actions Token Guide for details.
For local development or manual deployments, follow these steps to set up your GitHub token:
- Go to GitHub Personal Access Tokens page
- Click "Generate new token" > "Generate new token (classic)"
- Give it a descriptive name like "AI Data Foundation Star Count"
- Select the following scopes:
read:user
public_repo
- Click "Generate token"
- Copy the generated token (you'll only see it once!)
There are two ways to add your token for local development:
Create a .env.local
file in the root of the project:
VITE_GITHUB_TOKEN=your_github_token_here
Replace your_github_token_here
with the token you generated.
If you're deploying this site on a platform like Vercel or Netlify, add the environment variable VITE_GITHUB_TOKEN
in your deployment settings.
- Never commit your token to the repository
- The token only needs read access to public repositories
- If you accidentally expose your token, revoke it immediately and generate a new one
If you see GitHub API errors in the console:
- Check that your token is correctly set up
- Verify that the token has the correct permissions
- Check if you've hit GitHub's API rate limits
For more information, see GitHub's GraphQL API documentation.