{"id":25386192,"url":"https://github.com/pikachuim/cfworkerurls","last_synced_at":"2025-10-30T14:30:56.385Z","repository":{"id":273230543,"uuid":"918864142","full_name":"PIKACHUIM/CFWorkerUrls","owner":"PIKACHUIM","description":"A URL Short \u0026 STUN Redirect Service on Cloudflare Worker","archived":false,"fork":false,"pushed_at":"2025-02-11T12:03:20.000Z","size":1098,"stargazers_count":13,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-11T13:22:43.970Z","etag":null,"topics":["cloudflare","cloudflare-kv","cloudflare-workers","css","html","javascript","saas","serverless","typescript"],"latest_commit_sha":null,"homepage":"https://1web.us.kg/","language":"HTML","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/PIKACHUIM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-01-19T04:02:24.000Z","updated_at":"2025-02-11T12:03:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"14a80254-9cc8-48a0-88a1-ce83858973b7","html_url":"https://github.com/PIKACHUIM/CFWorkerUrls","commit_stats":null,"previous_names":["pikachuim/cfworkerurls"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PIKACHUIM%2FCFWorkerUrls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PIKACHUIM%2FCFWorkerUrls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PIKACHUIM%2FCFWorkerUrls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PIKACHUIM%2FCFWorkerUrls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PIKACHUIM","download_url":"https://codeload.github.com/PIKACHUIM/CFWorkerUrls/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238975882,"owners_count":19561784,"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":["cloudflare","cloudflare-kv","cloudflare-workers","css","html","javascript","saas","serverless","typescript"],"created_at":"2025-02-15T10:21:36.470Z","updated_at":"2025-10-30T14:30:50.009Z","avatar_url":"https://github.com/PIKACHUIM.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudflare Worker Short URL Server 短链接服务\n\n利用Cloudflare Worker搭建一个无需服务器的短链接服务，支持：\n1. 缩短您的网址URL，使它更容易书写或者点击访问\n2. STUN服务器NAT端口转发，您无需公网IP即可使用\n3. 支持API自动更新链接，支持到期自动删除\n\n\nBuild a server free short link service using Cloudflare Worker, supporting:\n1. Shorten your website URL to make it easier to write or click to access\n2. STUN server NAT port forwarding, you don't need a public IP to use it\n3. Support API automatic link update and automatic link deletion upon expiration\n\nDemo: https://1web.us.kg/\n\n## Usages / 部署方式\n\n### Clones / 克隆代码\n```\ngit clone https://github.com/PIKACHUIM/CFWorkerUrls.git\ncd CFWorkerUrls\nnpm install\ncp wrangler.toml.example wrangler.toml\n```\n\n### Config / 修改配置\n修改`wrangler.toml`的内容\n - `account_id`: 登录cloudflare，在workers-and-pages查看\n - `FULL_URL`: 完整服务访问地址，比如https://1web.us.kg/\n - `id`: 登录cloudflare-存储与数据库-KV-新建数据库查看ID\n```\naccount_id = \"******************************\"\nFULL_URL= \"https://*********/\"\nid = \"*****************************\"\n```\n\n### Deploy / 部署云端\n```\nwrangler login\nwrangler deploy\n```\n\n### Lucky Webhook\n - 请求类型：POST\n - 请求地址：`https://1web.us.kg/p/`\n```json\n{\n  \"suffix\": \"网站后缀\",\n  \"tokens\": \"更新密码\",\n  \"typing\": \"http\",\n  \"ipaddr\": \"{ip}\",\n  \"porter\": \"{port}\"\n}\n```\n网站后缀和更新密码：https://1web.us.kg/\n\n### 自定义路径\n修改`wrangler.toml`文件：\n```yaml\n...\n[vars]\nEDIT_SUB=true # \u003c--- set true\nEDIT_LEN=8\n...\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpikachuim%2Fcfworkerurls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpikachuim%2Fcfworkerurls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpikachuim%2Fcfworkerurls/lists"}