{"id":23462535,"url":"https://github.com/danielrs/workers-outbound-poc","last_synced_at":"2025-09-11T07:40:36.178Z","repository":{"id":259905821,"uuid":"879786435","full_name":"danielrs/workers-outbound-poc","owner":"danielrs","description":"Proof-of-concept for safer fetches in Outbound Workers.","archived":false,"fork":false,"pushed_at":"2024-10-28T15:06:27.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T06:59:46.551Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielrs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-10-28T14:46:30.000Z","updated_at":"2024-10-28T15:06:31.000Z","dependencies_parsed_at":"2024-10-28T21:48:33.164Z","dependency_job_id":null,"html_url":"https://github.com/danielrs/workers-outbound-poc","commit_stats":null,"previous_names":["danielrs/workers-outbound-poc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrs%2Fworkers-outbound-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrs%2Fworkers-outbound-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrs%2Fworkers-outbound-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrs%2Fworkers-outbound-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielrs","download_url":"https://codeload.github.com/danielrs/workers-outbound-poc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530565,"owners_count":21119595,"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":[],"created_at":"2024-12-24T08:17:40.034Z","updated_at":"2025-04-12T06:59:49.122Z","avatar_url":"https://github.com/danielrs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nProof-of-concept for using the `global_fetch_strictly_public` flag in [Outbound Workers](https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/configuration/outbound-workers/).\n\nThe request flow is:\n\n```\nEyeball -\u003e Dispatcher -\u003e Outbound -\u003e User-worker (fetches from same zone the dispatcher is in)\n```\n\n## Requirements\n\n- [Just](https://github.com/casey/just)\n- [Node.js](https://nodejs.org/en/download/package-manager)\n\n## Steps to set up\n\n### 1. Zone configuration\n\nWe're gonna be using the zone `drivas.xyz` configured as follows:\n\n- Origin Worker on `origin.drivas.xyz/foo` - Always returns `origin FOO`.\n\n- Middleware Worker on `origin.drivas.xyz/foo` - Just wraps the request to the origin.\n\n- AAAA route on `outbound-poc-dispatcher.drivas.xyz` - Make sure our dispatcher is reachable, content is `100::`.\n\n### 2. Make necessary edits\n\nIf you're using a different zone, it might be necessary to edit the following files:\n\n- `outbound-poc-dispatcher/src/wrangler.toml` - Route to your own zone.\n- `outbound-poc-user-free/src/index.js` - Fetch from your own zone.\n- `outbound-poc-user-premium/src/index.js` - Fetch from your own zone.\n\n### 3. Deploy\n\nFirst time:\n\n```\njust -v init\n```\n\nAfter that:\n\n```\njust -v deploy-all\n```\n\n### 4. Visit dispatcher\n\nFree user should behave as any other eyeball request:\n\nhttps://outbound-poc-dispatcher.drivas.xyz/outbound-poc-user-free\n\nPremium user goes directly to the origin:\n\nhttps://outbound-poc-dispatcher.drivas.xyz/outbound-poc-user-premium\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielrs%2Fworkers-outbound-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielrs%2Fworkers-outbound-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielrs%2Fworkers-outbound-poc/lists"}