sallar/github-contributions-chart
关于
:octocat: 生成一张包含所有 Github 贡献记录的图片
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- -2
- 15天
- 0
- 1个月
- 0
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文:octocat: GitHub Contribution Chart Generator 
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
探索相关项目
加载中…