A dynamic, customizable image generator for GitHub repositories. Create beautiful, information-rich preview images for any GitHub repository with just a username and repo name.
Inspired by: GitHub Readme Stats,
but rebuilt from scratch with Next.js and focused on generating beautiful, fully-customizable images, rather than just copying GitHub's default style.
- Generate real-time images for any public GitHub repository
- Display comprehensive repository information:
- Repository name and description
- Star count, fork count, and open issues
- Primary programming languages with color coding
- Creation and last updated dates
- GitHub-styled dark theme with professional appearance
- No setup required - works directly via URL
- Easy integration in READMEs, documentation, and websites
- Serverless architecture - fast and scalable
Simply use the API endpoint with any GitHub repository:
https://githubbio.vercel.app/api/repo?username=<USERNAME>&repo=<REPO> Parameters:
| Parameter | Description | Required |
|---|---|---|
username | GitHub username of the repository owner | Yes |
repo | Repository name | Yes |
Embed in Markdown:
HTML:
<img src="https://githubbio.vercel.app/api/repo?username=microsoft&repo=vscode" alt="Repository Preview" />- Click the "Deploy with Vercel" button above, or
- Fork this repository and connect it to Vercel
git clone https://github.com/LucasCur/github-bio.git cd github-bio npm install npm run devOpen http://localhost:3000 to access the preview interface.
GitHub's API has different rate limits depending on authentication:
- Without token (anonymous): 60 requests per hour per IP
- With Personal Access Token: 5,000 requests per hour
For production use, a GitHub token is highly recommended to avoid rate limiting.
- Create a GitHub Personal Access Token
- No special scopes needed for public repositories
- For private repositories, add
reposcope
- Add to your environment variables:
GITHUB_TOKEN=your_github_token_here
- In Vercel, add this as an environment variable in your project settings
Note: The application gracefully handles missing tokens by falling back to anonymous requests, but you may encounter rate limits during high usage.
If you're not deploying to Vercel, you may want to set:
NEXT_PUBLIC_SITE_URL=https://your-domain.comUsed for enhanced security validation so your site can access the route that gets the number of stars THIS repo has, when displaying it on the site's generation page.
Contributions are welcome!
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT License - see the LICENSE file for details.
- README banners for your GitHub repositories
- Documentation and project showcases
- Social media sharing with rich repository previews
- Portfolio websites displaying your projects
- Blog posts about open source projects
