A personalized, zero-configuration system to automatically calculate and showcase the top contributors across all your public GitHub repositories directly on your GitHub Profile README.
By splitting the workload between a daily GitHub Action and a lightning-fast Vercel API, this project gives you a production-grade contributor image without ever hitting GitHub API rate limits. Best of all? It requires absolutely zero configuration. Just fork, deploy, and you're done!
👉 Curious about the engineering? Read HOW THIS WORKS.md for a deep dive into how we bypass GitHub's API rate limits and SVG restrictions.
- Zero Config: Automatically knows your GitHub username just by being in your account.
- Profile-Wide Aggregation: Scans all your public repositories to find the top contributors.
- Smart Filtering: Automatically excludes the repository owner and bots.
- 100% GitHub README Safe: Renders as a raw PNG image, bypassing GitHub's strict SVG sanitization rules.
- Lightning Fast: Relies on a scheduled GitHub Action to cache data offline, so the API endpoint renders instantly without hitting GitHub API rate limits.
- Built-in Landing Page: Comes with a stunning, auto-generated documentation website right out of the box!
Setting this up takes less than 2 minutes. Follow these 3 simple steps:
Click the Fork button at the top right of this page to create your own copy of the repository.
This project uses an automatic script to calculate your contributors daily. Since you just forked it, you need to enable it and run it for the first time.
- Go to the Actions tab at the top of your repository.
- Click the green "I understand my workflows, go ahead and enable them" button.
- On the left sidebar, click Aggregate Top Contributors.
- Click the Run workflow dropdown on the right side, and hit the green Run workflow button.
⏳ Wait about 30 seconds for it to finish and show a green checkmark! Your data is now successfully generated.
Now, let's deploy the API that serves the beautiful image and landing page.
- Create a free account on Vercel (log in with GitHub).
- From the dashboard, click Add New... > Project.
- Import your newly forked
top-contributors-apirepository. - Leave everything blank! No environment variables are needed.
- Click Deploy.
🔗 Once finished, Vercel will give you a domain (e.g.,
https://your-app.vercel.app). Copy this URL!
Now that your API is live, you can embed the dynamic image directly into your GitHub Profile README.md!
Copy this markdown snippet and replace the URL with your Vercel URL from Step 3:
## My Top Contributors 🏆
You can customize the image dynamically by adding parameters to the URL.
| Parameter | Default | Description |
|---|---|---|
limit |
5 |
The number of contributors to display. |
size |
80 |
The size of the circular avatars in pixels. |
Show the Top 10 Contributors:
Compact view (Top 3 contributors, tiny 50px avatars):
If you want to modify the code or test the output locally without deploying to Vercel:
# 1. Install dependencies
npm install
# 2. Generate mock data locally (replace your-username)
GH_USERNAME=your-username node scripts/aggregate.js
# 3. Run the local development server
npm run devVisit http://localhost:3000 to view the beautiful landing page and test your API!