{"id":22933476,"url":"https://github.com/bluebrown/weather-proxy","last_synced_at":"2026-05-01T13:33:07.575Z","repository":{"id":111482268,"uuid":"357691352","full_name":"bluebrown/weather-proxy","owner":"bluebrown","description":"cors proxy for example project","archived":false,"fork":false,"pushed_at":"2021-04-14T12:15:07.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T18:36:19.765Z","etag":null,"topics":["cloudflare","code-challenge","worker"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bluebrown.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE_APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2021-04-13T21:19:02.000Z","updated_at":"2021-04-23T05:09:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"7bc1f1a7-dc5c-4884-9cc6-08452eb52be2","html_url":"https://github.com/bluebrown/weather-proxy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bluebrown/weather-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluebrown%2Fweather-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluebrown%2Fweather-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluebrown%2Fweather-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluebrown%2Fweather-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluebrown","download_url":"https://codeload.github.com/bluebrown/weather-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluebrown%2Fweather-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32499681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["cloudflare","code-challenge","worker"],"created_at":"2024-12-14T11:29:53.165Z","updated_at":"2026-05-01T13:33:07.545Z","avatar_url":"https://github.com/bluebrown.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weather Proxy\n\nCloudflare worker to add cors headers to requests to \u003chttps://www.metaweather.com/\u003e\n\n## Prerequisites\n\nIn order to run this worker you need a free cloudflare account and an access token to manage workers.\n\n## Setup\n\nUpdate the account id in the *wrangler.toml* to your own account id that you can find in cloudflare in the worker tab.\n\n```toml\nname = \"weather-proxy\"\ntype = \"javascript\"\naccount_id = \"your account id\"\nworkers_dev = true\nroute = \"\"\nzone_id = \"\"\n```\n\nIf you are planning to deploy this, and make requests to it, you need to change the variable `ALLOWED_ORIGIN` in the *index.js*\n\n```javascript\nconst ALLOWED_ORIGIN = \"your origin or maybe *\"\n```\n\n## Development\n\nFor local development and deployment to cloudflare use the [wrangler cli](https://developers.cloudflare.com/workers/cli-wrangler)\n\n```console\nwrangler dev\n```\n\n## Deployment\n\nThe project can be deployed directly with wrangler.\n\n```console\nwrangler publish\n```\n\nHowever, there is a workflow in the .github folder that will deploy automatically on release, assuming everything is correctly configured. Meaning if the account id is correct and the access token has been added to the github repositories secrets under the name `CF_API_TOKEN`.\n\n```yml\nname: Deploy\nsteps:\n  - uses: actions/checkout@v2\n  - name: Publish\n    uses: cloudflare/wrangler-action@1.3.0\n    with:\n      apiToken: ${{ secrets.CF_API_TOKEN }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluebrown%2Fweather-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluebrown%2Fweather-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluebrown%2Fweather-proxy/lists"}