This package gives you power of getting your contributions and also the green boxes you've filled in year.
npm install github-contribution-counter
Github Personal Token with permission read:usr
Keep it safe, don't share it with anyone
github-contribution-counter is a promise based contribution counter with support of typescript, esm and commonjs.
import { getGithubContributionsForYear } from "github-contribution-counter";
const username = "githubUsername";
const token = "gh_token";
const year = 2022;
// Get Contributions for year with contribution count
getGithubContributionsForYear(username, token, year);
// Get Overall Contribution
getGithubContributions({
username,
token,
});