{"id":49630097,"url":"https://github.com/sammyrobensparadise/github-contributions-counter","last_synced_at":"2026-05-05T10:06:22.868Z","repository":{"id":37828533,"uuid":"258350110","full_name":"SammyRobensParadise/github-contributions-counter","owner":"SammyRobensParadise","description":"A simple Javascript API that will return the public github contributions history for a user based on a universal function","archived":false,"fork":false,"pushed_at":"2023-01-06T21:25:23.000Z","size":13771,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T11:24:43.452Z","etag":null,"topics":["api","contribution-history","contributions","counter","dependencies","github","github-contributions","githubcontributions","javascript","javascript-api","npm","proxy","rest-api","stable"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/github-contributions-counter","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SammyRobensParadise.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-23T22:56:48.000Z","updated_at":"2024-11-24T13:15:00.000Z","dependencies_parsed_at":"2023-02-06T09:16:33.643Z","dependency_job_id":null,"html_url":"https://github.com/SammyRobensParadise/github-contributions-counter","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/SammyRobensParadise/github-contributions-counter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SammyRobensParadise%2Fgithub-contributions-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SammyRobensParadise%2Fgithub-contributions-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SammyRobensParadise%2Fgithub-contributions-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SammyRobensParadise%2Fgithub-contributions-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SammyRobensParadise","download_url":"https://codeload.github.com/SammyRobensParadise/github-contributions-counter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SammyRobensParadise%2Fgithub-contributions-counter/sbom","scorecard":{"id":125604,"data":{"date":"2025-08-11","repo":{"name":"github.com/SammyRobensParadise/github-contributions-counter","commit":"5e32782d91a22b2b7bc6249ad44cfd8b26190017"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/npm-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/SammyRobensParadise/github-contributions-counter/npm-publish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/SammyRobensParadise/github-contributions-counter/npm-publish.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":0,"reason":"18 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T03:45:41.680Z","repository_id":37828533,"created_at":"2025-08-16T03:45:41.681Z","updated_at":"2025-08-16T03:45:41.681Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32644243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","contribution-history","contributions","counter","dependencies","github","github-contributions","githubcontributions","javascript","javascript-api","npm","proxy","rest-api","stable"],"created_at":"2026-05-05T10:06:19.582Z","updated_at":"2026-05-05T10:06:22.860Z","avatar_url":"https://github.com/SammyRobensParadise.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-contributions-counter\n\nA simple Javascript API that will return the public Github contributions history for a user based on a universal function\n\n![github-contributions-counter](https://i.ibb.co/tq8VpG9/github-contributions-counter-logo.png)\n\n\u003cbr\u003e\n\n![version](https://img.shields.io/npm/v/github-contributions-counter?style=for-the-badge)\n\n\u003cbr\u003e\n\n## A Quick Note 👀\n\nThis is a simple REST API wrapper around GitHubs API/V4 contributions graphQL api. Prior to the implementation of the V4 api this package scraped contribution data from GitHub profiles.\n\n## Getting Started\n\n### Install\n\nVia `npm`\n\n```bash\nnpm i github-contributions-counter\n```\n\nVia `yarn`\n\n```bash\nyarn add github-contributions-counter\n```\n\n### Demo\n\n[Demo](https://sammy.world/github-stats)\n\n## Usage\n\n```jsx\nimport { getGithubContributions } from 'github-contributions-counter'\n\ngetGithubContributions({\n  username: 'github_username',\n  token: 'github_token' // secret\n}).then((r) =\u003e {\n  console.log(r)\n})\n```\n\n## API\n\n### Interface\n\n| Parameter | Description | Status | Type |\n| --- | --- | --- | --- |\n| `username` | A valid GitHub username. Organization names are not currently supported | Required | string |\n| `token` | A valid GitHub PAT with `read:usr` permissions. You can find instructions on how to generate a PAT [here](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token). | Required | string |\n\n## Issue Tracker\n\n[Issues](https://github.com/SammyRobensParadise/github-contributions-counter/issues)\n\n## Contributing\n\nContributions are welcomed and encouraged! Refer to [Contribution Guidelines](docs/CONTRIBUTING.md)\n\n## Development\n\n1. Clone\n\n```bash\ngit clone git@github.com:SammyRobensParadise/github-contributions-counter.git\n```\n\n2. Install\n\n```bash\nnpm install\n# or\nyarn install\n```\n\n3. Develop 💻\n\n4. Build using `rollup.js`\n\n```bash\nnpm run build\n# or\nyarn run build\n```\n\n## Info\n\nAuthor: Sammy Robens-Paradise. [sammy.world](https://sammy.world)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammyrobensparadise%2Fgithub-contributions-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsammyrobensparadise%2Fgithub-contributions-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammyrobensparadise%2Fgithub-contributions-counter/lists"}