{"id":21269711,"url":"https://github.com/denizcdemirci/worker-github-contributions","last_synced_at":"2025-07-11T05:31:18.544Z","repository":{"id":211703689,"uuid":"729568564","full_name":"denizcdemirci/worker-github-contributions","owner":"denizcdemirci","description":"GitHub contribution activity wrapper for Cloudflare Workers","archived":false,"fork":false,"pushed_at":"2023-12-10T10:34:33.000Z","size":25,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-12-11T11:28:00.397Z","etag":null,"topics":["cloudflare","cloudflare-worker-template","cloudflare-workers","github","github-activity-graph","github-api","github-contribution-graph","github-contributions"],"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/denizcdemirci.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}},"created_at":"2023-12-09T16:35:57.000Z","updated_at":"2023-12-11T09:06:59.000Z","dependencies_parsed_at":"2023-12-10T11:27:04.172Z","dependency_job_id":"43415a58-ba00-4f87-b4dd-1bf25c0088f0","html_url":"https://github.com/denizcdemirci/worker-github-contributions","commit_stats":null,"previous_names":["denizcdemirci/worker-github-contributions"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denizcdemirci%2Fworker-github-contributions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denizcdemirci%2Fworker-github-contributions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denizcdemirci%2Fworker-github-contributions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denizcdemirci%2Fworker-github-contributions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denizcdemirci","download_url":"https://codeload.github.com/denizcdemirci/worker-github-contributions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225693748,"owners_count":17509227,"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":["cloudflare","cloudflare-worker-template","cloudflare-workers","github","github-activity-graph","github-api","github-contribution-graph","github-contributions"],"created_at":"2024-11-21T08:10:26.268Z","updated_at":"2024-11-21T08:10:26.686Z","avatar_url":"https://github.com/denizcdemirci.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## worker-github-contributions\n\n[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/denizcdemirci/worker-github-contributions)\n\nThis template is a simple GitHub contribution activity wrapper for Cloudflare Workers. It returns the last year of activity history on GitHub. You can use it to display the contribution activity on your website.\n\nIt uses the [muninn](https://github.com/wopehq/muninn) to parse the HTML response from GitHub.\n\n[`src/index.ts`](https://github.com/denizcdemirci/worker-github-contributions/blob/main/src/index.ts) is the content of the Workers script.\n\nHere is an example of the response to the script:\n\n```json\n[\n  {\n    \"date\": \"2023-11-30\",\n    \"level\": 3,\n    \"count\": 23\n  },\n  {\n    \"date\": \"2023-12-01\",\n    \"level\": 4,\n    \"count\": 35\n  },\n  {\n    \"date\": \"2023-12-02\",\n    \"level\": 1,\n    \"count\": 1\n  }\n]\n```\n\n`level` is the contribution level of the day. It can be between `0` and `4`. `count` is the number of contributions made on that day.\n\n## Setup\n\nTo create a `worker-github-contributions` directory using this template, run:\n\n```sh\n$ npx wrangler generate worker-github-contributions https://github.com/denizcdemirci/worker-github-contributions\n# or\n$ yarn wrangler generate worker-github-contributions https://github.com/denizcdemirci/worker-github-contributions\n# or\n$ pnpm wrangler generate worker-github-contributions https://github.com/denizcdemirci/worker-github-contributions\n```\n\nBefore publishing your script, you need to edit the `wrangler.toml` file. Add your GitHub username `GITHUB_USERNAME` to this file.\n\nOnce you are ready, you can publish your script by running the following command:\n\n```sh\n$ npm run deploy\n# or\n$ yarn run deploy\n# or\n$ pnpm run deploy\n```\n\n## Thanks\n\nSpecial thanks to [aykutkardas](https://github.com/aykutkardas) and [kadiryazici](https://github.com/kadiryazici) for their contributions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenizcdemirci%2Fworker-github-contributions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenizcdemirci%2Fworker-github-contributions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenizcdemirci%2Fworker-github-contributions/lists"}