GitHub Contributions Graph

A customizable contribution heatmap with 22 themes, tooltip support, dark mode, and a live legend. Fetches data from GitHub's public contributions API with 24h caching.

Contribution GraphOctNovDecJanFebMarAprMayJunJulAugSep112122410421111241142122522132232112111452237433432222112121141742122212523212242211611121513311111111111224421112211112321111121437751334334522524667121138511326144341413241
438 contributions, last year on GitHub.

Oct 12, 2025 – Oct 16, 2026

Less0 contributions1 contributions2 contributions3 contributions4 contributionsMore
import { GitHubContributions } from "@/components/github-contributions";
 
export default function GitHubContributionsDemo() {
  return <GitHubContributions />;
}

Features

  • Displays the GitHub contributions graph for a user.
  • Supports different themes.
  • Supports different block sizes and margins.
  • Supports showing the count of contributions.
  • Supports tooltips to show the count of contributions on hover.
  • Supports fetching data from GitHub API.

Installation

$ npx shadcn@latest add https://akshitr.com/r/github-contributions.json

Usage

import { GitHubContributions } from "@/components/github-contributions";
<GitHubContributions theme="aurora" username="your-username" />

Component API

GitHubContributions

PropTypeDefaultDescription
theme?string"github"The theme of the graph.
usernamestring"akshit3010"The username of the user.
showCount?booleanfalseWhether to show the count of contributions.
blockMargin?number3The margin between the blocks.
blockSize?number13The size of the blocks.
hideMonthLabels?booleanfalseWhether to hide the month labels.
hideFooter?booleanfalseWhether to hide the footer.

Use Cases

  • Developer Portfolios & Resumes: Demonstrate ongoing open-source commitment and daily coding cadence with live GitHub metrics.
  • Engineering Team Dashboards: Monitor team repository contributions and commit frequencies across sprints.
  • Gamified Habit & Activity Trackers: Adapt the heat map paradigm to visualize daily workouts, study streaks, or writing goals.
  • Community & Contributor Hubs: Celebrate top open-source contributors on project landing pages or community documentation.

Acknowledgments

References