README Generator

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. 1

    Step 1: Open your GitHub profile repository and edit README.md.

  2. 2

    Step 2: Add the activity graph for a 31-day contribution visualization: [![Graph](https://github-readme-activity-graph.vercel.app/graph?username=YOUR_USERNAME&theme=tokyo-night&area=true)](https://github.com/YOUR_USERNAME)

  3. 3

    Step 3: Add count_private=true to your stats card URL to include private repository contributions.

  4. 4

    Step 4: Enable 'Include private contributions on my profile' in your GitHub profile settings.

  5. 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:

[![Contribution Graph](https://github-readme-activity-graph.vercel.app/graph?username=YOUR_USERNAME&theme=tokyo-night&area=true&hide_border=true)](https://github.com/YOUR_USERNAME)

For a contribution count card using github-readme-stats:

![Contributions](https://github-readme-stats.vercel.app/api?username=YOUR_USERNAME&show=reviews,discussions,prs,issues&theme=tokyonight&count_private=true&include_all_commits=true&hide_rank=true)

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>

[![Activity](https://github-readme-activity-graph.vercel.app/graph?username=YOUR_USERNAME&theme=tokyo-night&area=true&hide_border=true)](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: `[![Graph](https://github-readme-activity-graph.vercel.app/graph?username=YOUR_USERNAME&theme=tokyo-night&area=true)](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

Generate Your GitHub Profile README

Generate a GitHub profile README featuring Contribution Graph Card with AI

Try It Free — No Sign Up