{"id":21215283,"url":"https://github.com/jonasdoesthings/cf-workers-url-redirect-resolver","last_synced_at":"2026-01-04T13:30:55.231Z","repository":{"id":161172180,"uuid":"600549365","full_name":"JonasDoesThings/cf-workers-url-redirect-resolver","owner":"JonasDoesThings","description":"URL Redirect Resolver using Cloudflare Workers","archived":false,"fork":false,"pushed_at":"2024-07-09T17:46:50.000Z","size":260,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-09T22:23:32.702Z","etag":null,"topics":["cf-workers","cloudflare-worker","cloudflare-workers","serverless"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/JonasDoesThings.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":"2023-02-11T20:44:00.000Z","updated_at":"2024-07-09T17:46:54.000Z","dependencies_parsed_at":"2024-07-09T22:13:33.985Z","dependency_job_id":null,"html_url":"https://github.com/JonasDoesThings/cf-workers-url-redirect-resolver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasDoesThings%2Fcf-workers-url-redirect-resolver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasDoesThings%2Fcf-workers-url-redirect-resolver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasDoesThings%2Fcf-workers-url-redirect-resolver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasDoesThings%2Fcf-workers-url-redirect-resolver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JonasDoesThings","download_url":"https://codeload.github.com/JonasDoesThings/cf-workers-url-redirect-resolver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225634035,"owners_count":17500086,"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":["cf-workers","cloudflare-worker","cloudflare-workers","serverless"],"created_at":"2024-11-20T21:36:34.680Z","updated_at":"2026-01-04T13:30:55.178Z","avatar_url":"https://github.com/JonasDoesThings.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cf-workers-url-redirect-resolver\nA dead-simple cloudflare worker for resolving URL redirects.  \nIt does not perform any caching or whatsoever.  \nIf the passed URL has no protocol, `https://` will be prepended.\n\n## Setup\nSet the environment variable `ACCEPTED_API_TOKENS` to a list of accepted Bearer Tokens seperated by spaces.\n\ne.g. `ACCEPTED_API_TOKENS=\"token1 token2 token3\"`\n\n### Dev\nRun the project locally using `yarn start --local --var ACCEPTED_API_TOKENS:justtesting`\n\n## Usage\nGET `\u003cworker url\u003e/?target=[url to resolve]`  \nSend one of the configured API Tokens as a Bearer Token in the Authorization header.\n\n### Example\nHTTPIE: `http -A bearer -a justtesting \"http://localhost:8787/?target=https://amzn.to\"`  \nCURL: `curl -H \"Authorization: Bearer justtesting\" \"http://localhost:8787/?target=https://amzn.to\"`\n\n## License\nThis work is licensed under the [CC-0 (No Rights Reserved) License](https://creativecommons.org/share-your-work/public-domain/cc0/).  \nDo what you want, I'm not liable for anything you do with this code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasdoesthings%2Fcf-workers-url-redirect-resolver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonasdoesthings%2Fcf-workers-url-redirect-resolver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasdoesthings%2Fcf-workers-url-redirect-resolver/lists"}