Skip to content
프로젝트

sallar/github-contributions-chart

GitHub에서 보기

소개

:octocat: 모든 Github 기여 내역을 이미지로 생성

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
-2
in 15 days
0
in 1 month
0

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

:octocat: GitHub Contribution Chart Generator GitHub license

Generates an image of all your GitHub contributions since you have signed up, so you can use it in social media.

The API for this project lives in the src/pages/api directory since GitHub doesn't provide a way to access user statistics through it's official API.

The drawing mechanism lives in the sallar/github-contributions-canvas repository.

Requirements

  • Node.js 24 (see .nvmrc) and Yarn 1.22.22.
  • A valid github account.
  • Open activity in setting (Settings > Public profile > Contributions & Activity).
    • Make profile private and hide activity

Install

Enable Yarn with Corepack and install the locked dependencies:

$ corepack enable
$ yarn install --frozen-lockfile

How to run

Running locally:

$ yarn dev

Deployment

This project is deployed on Vercel. The Node.js runtime is pinned to 24.x in package.json.

Build and run the production server locally:

$ yarn build
$ yarn start

Tests

Browser checks cover responsive controls, keyboard theme selection, chart rendering, PNG/JSON downloads, and missing profiles in Chromium and mobile WebKit, in light and dark mode. Contribution responses are fixtures so the checks do not depend on GitHub availability. API tests verify calendar date ranges and flat/nested JSON using HTML fixtures.

$ yarn playwright install --with-deps chromium webkit
$ yarn test:api
$ yarn build
$ yarn test

CI runs the same production build and browser checks on pull requests.

Adding themes

Add your theme to sallar/github-contribution-canvas repo and also send a PR here to add the name of the theme to the list.

Example

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Changelog

Every release, along with the migration instructions, is documented on the GitHub Releases page.

License

MIT license

Powered by Vercel

관련 프로젝트 살펴보기

불러오는 중…