How to Add a Contribution Graph Card to Your GitHub Profile README
The contribution graph card embeds your GitHub contribution calendar directly in your README as a styled SVG card. Unlike the activity graph (which shows the past 31 days as a bar chart), the contribution card shows the full past year as the familiar green-square calendar — the same view visible on your public profile page, now embeddable anywhere. This guide uses the github-readme-stats project to generate a full-year contribution calendar card for your README.
Quick Setup Steps
- 1
Step 1: Open your GitHub profile repository and edit README.md.
- 2
Step 2: Add the activity graph for a 31-day contribution visualization: [](https://github.com/YOUR_USERNAME)
- 3
Step 3: Add count_private=true to your stats card URL to include private repository contributions.
- 4
Step 4: Enable 'Include private contributions on my profile' in your GitHub profile settings.
- 5
Step 5: Commit and push. Combine stats card + streak card + activity graph for a comprehensive contribution overview.
What Is the Contribution Graph Card?
GitHub's contribution graph shows a full year of daily contribution activity as a grid of colored squares, where darker green indicates more contributions. The github-readme-stats project can render this same visualization as a self-contained SVG card that embeds in your README.
This card is most useful when GitHub's native contribution graph (which appears below your README on your profile page) is not prominent enough or when you want to include it in a repository README rather than only on your profile. It is also useful for highlighting contribution data alongside explanatory text — for example, noting that a particularly active period corresponds to a specific project launch or contribution sprint.
How to Add the Contribution Card
The github-readme-stats project exposes contribution data through its main stats card. To display your contribution calendar visualization, use the activity graph service instead, which provides the most similar rendering:
[](https://github.com/YOUR_USERNAME)
For a contribution count card using github-readme-stats:

The show=reviews,discussions,prs,issues parameter displays additional contribution types beyond commits, creating a more comprehensive view of your activity.
Customizing Contribution Display
For a contribution-focused stats layout, combine the stats card with the streak card and the activity graph in a vertical arrangement:
<div align="center">
<img src="https://github-readme-stats.vercel.app/api?username=YOUR_USERNAME&theme=tokyonight&count_private=true&include_all_commits=true" height="150" />
<img src="https://streak-stats.demolab.com?user=YOUR_USERNAME&theme=tokyonight" height="150" />
</div>
[](https://github.com/YOUR_USERNAME)
This three-card approach covers all dimensions of contribution data: cumulative totals (stats card), consistency (streak card), and recent activity pattern (activity graph). Together they answer 'does this developer actually ship code?' from three complementary angles.
Troubleshooting Contribution Cards
If contribution counts appear low, add both count_private=true and include_all_commits=true to your stats card URL. Without these parameters, only public repository contributions in the current calendar year are counted — many developers who work primarily in private repos will appear much less active than they actually are.
If the activity graph appears but shows large gaps, this reflects actual contribution history. The graph cannot fill in missing data — if you did not commit code on certain days, those days remain blank. Gaps are honest representations of your actual activity pattern.
For developers whose primary work platform is not GitHub (GitLab, Bitbucket, internal systems), add a note in your README: 'Most of my work is in private/internal repositories.' This provides context that prevents the sparse contribution graph from being misinterpreted.
Frequently Asked Questions
How do I add a contribution graph to my GitHub README?
Use the activity graph service: `[](https://github.com/YOUR_USERNAME)`. For a full contribution calendar, the native GitHub profile page shows it below your README automatically — but the activity graph embeds a 31-day bar chart version.
Why doesn't my contribution graph show all my commits?
Add count_private=true and include_all_commits=true to your github-readme-stats URL. The contribution graph from activity graph service reads your public profile contributions. Private repository contributions show only if 'Include private contributions' is enabled in your GitHub profile settings.
Can I embed the full-year contribution calendar in my README?
The github-readme-activity-graph shows the past 31 days. For a full-year calendar view, the lowlighter/metrics project with plugin_calendar: yes enabled generates a full-year contribution calendar as part of its comprehensive metrics SVG. It requires a GitHub Actions setup but provides the most accurate full-year calendar.
How do I make my contribution graph look better?
Consistent daily contributions create the most visually impressive graph. Focus on making small, meaningful commits regularly rather than large batch commits. Enable private contributions in your GitHub profile settings so work done in private repos appears in your public graph.
From Our Blog
- Complete Guide to GitHub Badges for Your README
Learn how to add shields.io badges, GitHub stats cards, and tool badges to your GitHub profile README. Includes ready-to-use code for 50+ popular technologies.
- Best GitHub README Widgets and Tools: The Complete 2026 List
A curated list of the best GitHub profile README widgets — from snake animations to Spotify players, stats cards to 3D contribution graphs. Includes setup instructions for each.
- How to Add GitHub Stats Cards to Your README (2026 Guide)
Step-by-step guide to adding GitHub stats cards, language cards, streak stats, and WakaTime cards to your GitHub profile README using github-readme-stats.
Generate Your GitHub Profile README
Generate a GitHub profile README featuring Contribution Graph Card with AI
Try It Free — No Sign UpMore Widget Guides
How to Add Spotify Now Playing
Step-by-step guide to adding Spotify Now Playing to your GitHub README
How to Add WakaTime Coding Stats
Step-by-step guide to adding WakaTime Coding Stats to your GitHub README
How to Add Snake Contribution Animation
Step-by-step guide to adding Snake Contribution Animation to your GitHub README
How to Add Profile Views Counter
Step-by-step guide to adding Profile Views Counter to your GitHub README
How to Add Typing SVG Animation
Step-by-step guide to adding Typing SVG Animation to your GitHub README
How to Add GitHub Streak Stats
Step-by-step guide to adding GitHub Streak Stats to your GitHub README