TypeScript MIT

react-github-calendar

React component to display a GitHub contributions calendar

G

grubersjoe

Dernière activité 28 sept. 2026
grubersjoe/react-github-calendar

659

étoiles

51

forks

1

issues ouvertes

contribution-graphgithubreact

Ce README est souvent en anglais.

React GitHub Calendar

CI npm version

A React component to display your GitHub contributions calendar based on react-activity-calendar and github-contributions-api.

Version 5 has been released 🎉
See the list of breaking changes.

Screenshot

Demo and documentation

Installation

npm install react-github-calendar

Usage

import { GitHubCalendar } from 'react-github-calendar';

<GitHubCalendar username="grubersjoe" />

FAQ

Is server side rendering (SSR) supported?

Yes. However, not with this component because it fetches data client-side. For SSR support, you can fetch the GitHub contribution data from a suitable API server-side and pass it on to the internally used react-activity-calendar component. See the source code as example and the GitHub color theme.

Why is Create React App unsupported?

Create React App (CRA) is considered abandoned, and you probably should not use it anymore (more background). Using this component inside CRA will lead to errors for reasons described in issue #105 of react-activity-calendar. This repo is not for CRA support questions. If you encounter issues, you need to fix those yourself given the maintenance state of CRA. Personally, I would recommend using Vite instead of CRA. It offers everything that CRA does and more.

Development

pnpm install
pnpm dev

Open http://localhost:3000.

Publish a new release

pnpm publish --dry-run
# then
pnpm publish --access=public

Update demo page

pnpm run deploy

Projets similaires

A lightweight calendar heatmap react component built on SVG, customizable version of GitHub's contribution graph.

TypeScriptcalendarheat-mapheatmap
Uuiwjs
285 étoiles28

customizing the GitHub contribution graph, allowing you to draw various patterns on it.在你的GitHub贡献历史上画画!

TypeScriptgithub-contribution-calendargithub-contribution-graphgithub-contributions
Zzmrlft
1,4 k étoiles95

React component for displaying activity data in a calendar (heatmap)

TypeScriptactivitycalendarcomponent
Ggrubersjoe
597 étoiles42