{"id":13809269,"url":"https://github.com/kawarimidoll/deno-github-contributions-api","last_synced_at":"2026-03-08T04:01:41.657Z","repository":{"id":38172171,"uuid":"381615254","full_name":"kawarimidoll/deno-github-contributions-api","owner":"kawarimidoll","description":"The unofficial get api of GitHub contributions with Deno 🦕","archived":false,"fork":false,"pushed_at":"2023-09-16T00:50:13.000Z","size":605,"stargazers_count":164,"open_issues_count":2,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T21:45:19.773Z","etag":null,"topics":["contribution-graph","contributions","curl","deno","deno-deploy","github","github-api","typescript"],"latest_commit_sha":null,"homepage":"https://github-contributions-api.deno.dev/","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/kawarimidoll.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}},"created_at":"2021-06-30T07:34:57.000Z","updated_at":"2025-06-09T10:27:12.000Z","dependencies_parsed_at":"2024-01-08T07:59:44.652Z","dependency_job_id":"59e53355-767d-4f20-b313-2b76f26fa057","html_url":"https://github.com/kawarimidoll/deno-github-contributions-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"kawarimidoll/deno-dev-template","purl":"pkg:github/kawarimidoll/deno-github-contributions-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kawarimidoll%2Fdeno-github-contributions-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kawarimidoll%2Fdeno-github-contributions-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kawarimidoll%2Fdeno-github-contributions-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kawarimidoll%2Fdeno-github-contributions-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kawarimidoll","download_url":"https://codeload.github.com/kawarimidoll/deno-github-contributions-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kawarimidoll%2Fdeno-github-contributions-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273088773,"owners_count":25043560,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"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":["contribution-graph","contributions","curl","deno","deno-deploy","github","github-api","typescript"],"created_at":"2024-08-04T01:02:13.784Z","updated_at":"2026-03-08T04:01:41.649Z","avatar_url":"https://github.com/kawarimidoll.png","language":"TypeScript","readme":"# deno-github-contributions-api\n\n[![ci](https://github.com/kawarimidoll/deno-github-contributions-api/workflows/ci/badge.svg)](.github/workflows/ci.yml)\n[![deno deploy](https://img.shields.io/badge/deno-deploy-blue?logo=deno)](https://github-contributions-api.deno.dev)\n[![LICENSE](https://img.shields.io/badge/license-MIT-brightgreen)](LICENSE)\n\nGet your GitHub contributions data powered by Deno!\n\n![gif](resources/t-rec.gif)\n\n## Usage\n\n### as API\n\nIn your terminal:\n\n```\n$ curl https://github-contributions-api.deno.dev\n# Then follow the messages...\n```\n\nOf course, you can access the endpoint from the web browser:\nhttps://github-contributions-api.deno.dev\n\n### as deno module\n\nIn your deno script file:\n\n```ts\nimport { getContributions } from \"https://github.com/kawarimidoll/deno-github-contributions-api/raw/main/mod.ts\";\n\nconst username = \"your-github-username\";\nconst token = \"xxxxxxxxxxxxxxxxxxxxxxx\";\n\nconst contributions = await getContributions(username, token);\n\nconsole.log(contributions.toTerm({ scheme: \"random\" }));\n```\n\nYou can see an example in\n[main.ts](https://github.com/kawarimidoll/deno-github-contributions-api/blob/main/main.ts)\n\nThe personal access token which has a \"read:user\" scope is required.\n\nGenerate your token from this page: https://github.com/settings/tokens/new\n\n## Local Development\n\n1. Copy `.envrc.example` to `.envrc` and set your GitHub personal access token:\n\n```sh\ncp .envrc.example .envrc\n# Edit .envrc and set your token\n```\n\n2. Load environment variables with [direnv](https://direnv.net/):\n\n```sh\ndirenv allow\n```\n\n3. Start the development server:\n\n```sh\ndeno task dev\n```\n\n## Extra\n\nIf you are using [GitHub CLI](https://github.com/cli/cli), you can call this API\nfrom [gh-graph](https://github.com/kawarimidoll/gh-graph).\n\n\u003cdetails\u003e\n  \u003csummary\u003eAcknowledgements\u003c/summary\u003e\n  \u003ca href=\"https://twitter.com/deno_land/status/1420387162206478340\"\u003e\n    \u003cimg src=\"resources/tweet.webp\" alt=\"tweet\"\u003e\n  \u003c/a\u003e\n\u003c/details\u003e\n\n\u003c!-- ## TODO               --\u003e\n\u003c!-- - add more tests      --\u003e\n\u003c!-- - add Month/Day names --\u003e\n\n---\n\n```ts\nif (this.repo.isAwesome || this.repo.isHelpful) {\n  star(this.repo);\n}\n```\n\n\u003c!-- this part is inspired by https://github.com/bhumijgupta/Deno-news-cli --\u003e\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkawarimidoll%2Fdeno-github-contributions-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkawarimidoll%2Fdeno-github-contributions-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkawarimidoll%2Fdeno-github-contributions-api/lists"}