# react-github-activity-calendar

> ![npm](https://img.shields.io/npm/dm/react-github-activity-calendar) [![npm](https://img.shields.io/npm/v/react-github-activity-calendar)](https://www.npmjs.com/package/react-github-activity-calendar) [![Made by Justin Charo](https://img.shields.io/badge/

Latest version **3.0.2** (published 2024-10-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-github-activity-calendar
pnpm add react-github-activity-calendar
yarn add react-github-activity-calendar
bun add react-github-activity-calendar
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.2 |
| Published | 2024-10-08 |
| First published | 2023-02-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 55.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Justin Charo |
| Maintainers | jcharo |
| Keywords | react, components, ui, responsive, calendar, react-activity-calendar, react-github-calendar, contributions-tracker, github-activity, github-contributions, github |

## Links

- npm: https://www.npmjs.com/package/react-github-activity-calendar
- Repository: https://github.com/jcharo1/react-github-activity-calendar
- Homepage: https://github.com/jcharo1/react-github-activity-calendar#readme
- Issues: https://github.com/jcharo1/react-github-activity-calendar/issues
- npm.io page: https://npm.io/package/react-github-activity-calendar

## Dependencies (1)

- [core-js](https://npm.io/package/core-js.md) ^3.32.0

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 3.0.2 (latest) — 2024-10-08
- 3.0.1 — 2024-10-07
- 3.0.0 — 2024-10-07
- 2.2.0 — 2023-10-19
- 2.1.7 — 2023-10-13
- 2.1.6 — 2023-08-23
- 2.1.5 — 2023-08-23
- 2.1.4 — 2023-08-16
- 2.1.3 — 2023-08-16
- 2.1.2 — 2023-08-16
- 2.1.1 — 2023-08-11
- 2.1.9 — 2023-08-11
- 2.0.9 — 2023-08-10
- 2.0.7 — 2023-08-10
- 2.0.6 — 2023-08-10
- … 10 more at https://npm.io/package/react-github-activity-calendar/versions

## README

![npm](https://img.shields.io/npm/dm/react-github-activity-calendar)
[![npm](https://img.shields.io/npm/v/react-github-activity-calendar)](https://www.npmjs.com/package/react-github-activity-calendar)
[![Made by Justin Charo](https://img.shields.io/badge/Made%20by-Justin%20Charo-blue)](https://justin.charo.gg/)
[![npm version](https://badge.fury.io/js/react-github-activity-calendar.svg)](https://badge.fury.io/js/react-github-activity-calendar)
![npm](https://img.shields.io/npm/dm/react-toastified)

# React Github Activity Calendar

React component for displaying a user's Github activity in a calendar format.

https://www.npmjs.com/package/react-github-activity-calendar

## View on my Portfolio 😉

https://justin.charo.gg/

## Installation

To install the package, run:

```bash
npm install --save react-github-activity-calendar

```

## Usage/Examples

To use the Graph component in your React project, import it and include it in your component's render method:

```javascript
import { Graph } from "react-github-activity-calendar";

function App() {
  const githubApiKey = ""; // <your-github-api-key>
  const githubUserName = ""; // <github-username>
  const bgcolor = "";
  const textColor = "";

  return (
    <div className="App">
      <Graph
        userName={githubUserName}
        backgroundColor={bgcolor}
        githubApiKey={githubApiKey}
        color={textColor}
        enableAnimations={false} // optional prop to disable animations
      />
    </div>
  );
}

export default App;
```

## Props

- `userName` (required): The Github username for which to display activity.
- `githubApiKey` (required): Your Github API key. It is requried that you generate your own API key from Github and pass it as a prop to the component If no API key is provided, the component will not be able to make requests to the Github API, to display your activity. I have provided steps to generate your api token below.
- `backgroundColor` (optional): The background color of the calendar (hex color code, e.g. `#ffffff`).
- `color` (optional): The color of the text and github icon(hex color code, e.g. `#000000`).

## Generating a Github API Key

In case you forget where to see your tokens: https://github.com/settings/tokens
To generate a Github API key, follow these steps:

- 1. Sign in to your Github account.
- 2. Go to your Settings page.
- 3. Click on Developer settings in the left-hand menu.
- 4. Click on Personal access tokens in the left-hand menu.
- 5. Click on Generate new token.
- 6. Give your token a name and select the scope to read:user.
- 7. Click on Generate token.
- 8. Copy the token and keep it somewhere safe.

## Authors

- [@jcharo1](https://www.github.com/jcharo1)

## Screenshots

![App Screenshot](https://github.com/jcharo1/react-github-activity-calendar/blob/main/github.png)

---
_Source: https://npm.io/package/react-github-activity-calendar · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
