{"id":21215273,"url":"https://github.com/jonasdoesthings/github-contributions","last_synced_at":"2026-02-11T09:04:37.858Z","repository":{"id":65770463,"uuid":"598741605","full_name":"JonasDoesThings/github-contributions","owner":"JonasDoesThings","description":"A library for fetching a GitHub user's contribution graph.","archived":false,"fork":false,"pushed_at":"2024-07-24T19:27:11.000Z","size":273,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T09:21:40.403Z","etag":null,"topics":["contributions-graph","github","github-contribution-graph","github-contributions","scraping","typescript-library"],"latest_commit_sha":null,"homepage":"","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/JonasDoesThings.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-07T18:08:47.000Z","updated_at":"2025-01-27T03:47:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe13c669-6222-41d6-a265-6234ce5f9911","html_url":"https://github.com/JonasDoesThings/github-contributions","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"91e712e9d5516025530cda6e24e9baa2534192a0"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasDoesThings%2Fgithub-contributions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasDoesThings%2Fgithub-contributions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasDoesThings%2Fgithub-contributions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasDoesThings%2Fgithub-contributions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JonasDoesThings","download_url":"https://codeload.github.com/JonasDoesThings/github-contributions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245268259,"owners_count":20587585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["contributions-graph","github","github-contribution-graph","github-contributions","scraping","typescript-library"],"created_at":"2024-11-20T21:36:13.686Z","updated_at":"2026-02-11T09:04:37.762Z","avatar_url":"https://github.com/JonasDoesThings.png","language":"TypeScript","readme":"# github-contributions\n**A simple TypeScript library to fetch GitHub's contribution chart for a user**\n\n[![LICENSE](https://img.shields.io/npm/l/@jonasdoesthings/github-contributions?color=%2384cc16\u0026style=flat-square)](./LICENSE)\n[![npm version](https://img.shields.io/npm/v/@jonasdoesthings/github-contributions?color=84cc16\u0026style=flat-square)](https://www.npmjs.com/package/@jonasdoesthings/github-contributions/)\n\n\n## Installation\n`npm install @jonasdoesthings/github-contributions`  \nor  \n`yarn add @jonasdoesthings/github-contributions`\n\n## Usage\n```typescript\nimport {fetchContributions} from '@jonasdoesthings/github-contributions';\n\nfetchContributions(\"JonasDoesThings\").then((contributionsYear) =\u003e {\n  console.log(contributionsYear);\n  console.log(contributionsYear.contributions[14].numberOfContributions);\n});\n\nfetchContributions(\"JonasDoesThings\", 2021).then((contributionsYear) =\u003e {\n  console.log(contributionsYear.totalNumberOfContributions);\n  console.log(contributionsYear.contributions.find((day) =\u003e day.date === '2021-08-29')?.numberOfContributions);\n});\n```\n\n## API\n`fetchContributions(username [string], \u003coptional: year [number]\u003e)`  \nReturns: `Promise\u003cContributionsYear\u003e`.  \n  \nSee [src/types/contribution_year.ts](src/types/contribution_year.ts) for the type definition.  \n\n## Testing\nRun `yarn test` to execute all tests.\n\n## License\nThe project is licensed under the MIT license.    \nCheck the [LICENSE](./LICENSE) file, for the full legal-notice.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasdoesthings%2Fgithub-contributions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonasdoesthings%2Fgithub-contributions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasdoesthings%2Fgithub-contributions/lists"}