{"id":23600217,"url":"https://github.com/timharek/wcarbon","last_synced_at":"2025-10-28T22:09:02.649Z","repository":{"id":40592067,"uuid":"507678596","full_name":"timharek/wcarbon","owner":"timharek","description":"Access Website Carbon's API for checking carbon emissions for websites with Deno.","archived":false,"fork":false,"pushed_at":"2024-06-01T18:59:32.000Z","size":123,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T00:14:14.816Z","etag":null,"topics":["cli-app","co2-emissions","co2-footprint","deno","deno-cli","typescript","website-carbon"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timharek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-06-26T20:33:55.000Z","updated_at":"2024-11-18T19:07:26.000Z","dependencies_parsed_at":"2023-02-18T00:15:28.349Z","dependency_job_id":"9ca1c838-739e-49ec-ac40-83655c70a9df","html_url":"https://github.com/timharek/wcarbon","commit_stats":{"total_commits":53,"total_committers":2,"mean_commits":26.5,"dds":"0.018867924528301883","last_synced_commit":"c9b43dd68cc186b868148e1e97b653f3b883c69c"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timharek%2Fwcarbon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timharek%2Fwcarbon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timharek%2Fwcarbon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timharek%2Fwcarbon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timharek","download_url":"https://codeload.github.com/timharek/wcarbon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238389338,"owners_count":19463747,"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":["cli-app","co2-emissions","co2-footprint","deno","deno-cli","typescript","website-carbon"],"created_at":"2024-12-27T11:49:09.340Z","updated_at":"2025-10-28T22:08:57.617Z","avatar_url":"https://github.com/timharek.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest version](https://deno.land/badge/wcarbon/version)](https://deno.land/x/wcarbon)\n[![sourcehut](https://img.shields.io/badge/repository-sourcehut-lightgrey.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSINCiAgICB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCI+DQogIDxkZWZzPg0KICAgIDxmaWx0ZXIgaWQ9InNoYWRvdyIgeD0iLTEwJSIgeT0iLTEwJSIgd2lkdGg9IjEyNSUiIGhlaWdodD0iMTI1JSI+DQogICAgICA8ZmVEcm9wU2hhZG93IGR4PSIwIiBkeT0iMCIgc3RkRGV2aWF0aW9uPSIxLjUiDQogICAgICAgIGZsb29kLWNvbG9yPSJibGFjayIgLz4NCiAgICA8L2ZpbHRlcj4NCiAgICA8ZmlsdGVyIGlkPSJ0ZXh0LXNoYWRvdyIgeD0iLTEwJSIgeT0iLTEwJSIgd2lkdGg9IjEyNSUiIGhlaWdodD0iMTI1JSI+DQogICAgICA8ZmVEcm9wU2hhZG93IGR4PSIwIiBkeT0iMCIgc3RkRGV2aWF0aW9uPSIxLjUiDQogICAgICAgIGZsb29kLWNvbG9yPSIjQUFBIiAvPg0KICAgIDwvZmlsdGVyPg0KICA8L2RlZnM+DQogIDxjaXJjbGUgY3g9IjUwJSIgY3k9IjUwJSIgcj0iMzglIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjQlIg0KICAgIGZpbGw9Im5vbmUiIGZpbHRlcj0idXJsKCNzaGFkb3cpIiAvPg0KICA8Y2lyY2xlIGN4PSI1MCUiIGN5PSI1MCUiIHI9IjM4JSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSI0JSINCiAgICBmaWxsPSJub25lIiBmaWx0ZXI9InVybCgjc2hhZG93KSIgLz4NCjwvc3ZnPg0KCg==)](https://sr.ht/~timharek/wcarbon)\n[![GitHub mirror](https://img.shields.io/badge/mirror-GitHub-black.svg?logo=github)](https://github.com/timharek/wcarbon)\n\n# wcarbon\n\nAccess [Website Carbon's API](https://api.websitecarbon.com/) for checking\ncarbon emissions for websites.\n\n## Usage\n\n### Example for site\n\n```ts\nimport { site } from \"jsr:@timharek/wcarbon\";\n\nconst siteUrl = \"example.org\";\nconst result = await site(siteUrl);\n```\n\n### Example for data\n\n```ts\nimport { data } from \"jsr:@timharek/wcarbon\";\n\nconst result = await data({ bytes: 1024, hasGreenHosting: false });\n```\n\n## CLI\n\n### Installation\n\n```sh\ndeno install --allow-net=api.websitecarbon.com \\\n   -n wcarbon jsr:@timharek/wcarbon/cli\n```\n\n### Usage\n\n```bash\n$ wcarbon timharek.no\n$ wcarbon site timharek.no\n$ wcarbon data 2048\n$ wcarbon -h # for all available flags and commands\n```\n\n## Development\n\n1. Install [Deno](https://deno.land)\n1. Run `deno task setup:hooks`\n1. Now you can get to work! :sunglasses:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimharek%2Fwcarbon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimharek%2Fwcarbon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimharek%2Fwcarbon/lists"}