{"id":15962950,"url":"https://github.com/mamoruds/redir_page","last_synced_at":"2026-06-17T08:32:18.607Z","repository":{"id":111827865,"uuid":"244486757","full_name":"MamoruDS/redir_page","owner":"MamoruDS","description":"Github page for url redirection","archived":false,"fork":false,"pushed_at":"2023-09-23T08:25:40.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T19:51:07.397Z","etag":null,"topics":["url-redirect"],"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/MamoruDS.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":"2020-03-02T22:13:15.000Z","updated_at":"2023-07-18T09:11:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c48bb75-734e-4e71-8168-3066778e7b33","html_url":"https://github.com/MamoruDS/redir_page","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MamoruDS/redir_page","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MamoruDS%2Fredir_page","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MamoruDS%2Fredir_page/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MamoruDS%2Fredir_page/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MamoruDS%2Fredir_page/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MamoruDS","download_url":"https://codeload.github.com/MamoruDS/redir_page/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MamoruDS%2Fredir_page/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34441284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":["url-redirect"],"created_at":"2024-10-07T16:21:49.178Z","updated_at":"2026-06-17T08:32:18.589Z","avatar_url":"https://github.com/MamoruDS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redir Page\n\nURL scheme is a nice to have feature, but it is not as easy to use as a normal URL, which you can access with a single click on a website or any IM app. This repository allows you to access your URL scheme easily through redirection.\n\n## Usage\n\nYou have the option to use either the Redir Page through GitHub Page or Cloudflare Worker. The GH Pager version will simply open the target URL in your browser, whereas the CF Worker version uses HTTP redirection and offers additional features, such as UA filtering and token authentication.\n\n### Use via GitHub Page\n\n```\nhttps://mamoruds.github.io/redir_page/?redir=\u003cyour_url\u003e\n```\n\nExample:\n\n```\nshortcuts://run-shortcut?name=Show clipboard content\n```\n\nOriginal url should be encoded:\n\n```\nhttps://mamoruds.github.io/redir_page?redir=shortcuts%3A%2F%2Frun-shortcut%3Fname%3DShow%20clipboard%20content\n```\n\n### Use via Cloudflare Worker\n\nFirst, deploy the worker to your Cloudflare account\n\n```shell\ngit clone https://github.com/MamoruDS/redir_page.git \\\n    \u0026\u0026 cd redir_page/worker\n\n# fill in the KV binding in wrangler.toml before publishing\nwrangle publish\n```\n\nYou can now access your URL scheme with the same usage as the GH Pager version\n\n```yaml\nhttps://\u003cworker_route\u003e/?redir=\u003cyour_url\u003e\n\n# example\nhttps://redir.foo.workers.dev/?redir=shortcuts%3A%2F%2Frun-shortcut%3Fname%3DShow%20clipboard%20content\n```\n\nTo enable more advanced features, you can add redir records in the KV. The records are stored in YAML and have the following interface:\n\n```typescript\ntype RedirRec = {\n    value: string\n    fake_value?: string\n    ua_excludes?: string[] // regex patterns\n    require_token?: boolean\n    tokens?: {\n        value: string\n        expire: number // -1 for never expire\n    }[]\n    enabled: boolean\n}\n```\n\nExample:\n\n```yaml\n# key=demo01\nvalue: tg://open\nfake_value: shortcuts://run-shortcut?name=Show clipboard content\nua_excludes:\n  - Macintosh.*Safari\n  - Chrome\n  - Firefox\\/1\\d{2}\nenabled: true\n```\n\n```shell\ncurl -A 'Chrome' -I 'https://redir.foo.workers.dev/?key=demo01'\n# HTTP/1.1 302 Found\n# date: Sun, 09 Apr 2023 10:41:11 GMT\n# location: shortcuts://run-shortcut?name=Show%20clipboard%20content\n# ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamoruds%2Fredir_page","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmamoruds%2Fredir_page","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamoruds%2Fredir_page/lists"}