{"id":16331639,"url":"https://github.com/soxft/urlshorter-workers","last_synced_at":"2025-05-15T16:15:15.280Z","repository":{"id":49169285,"uuid":"472673102","full_name":"soxft/Urlshorter-Workers","owner":"soxft","description":"A simple urlshorter based on Cloudflare worekrs","archived":false,"fork":false,"pushed_at":"2022-04-28T17:31:22.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T12:26:45.395Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soxft.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}},"created_at":"2022-03-22T08:20:30.000Z","updated_at":"2024-04-15T16:29:53.000Z","dependencies_parsed_at":"2022-09-07T14:50:52.295Z","dependency_job_id":null,"html_url":"https://github.com/soxft/Urlshorter-Workers","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soxft%2FUrlshorter-Workers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soxft%2FUrlshorter-Workers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soxft%2FUrlshorter-Workers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soxft%2FUrlshorter-Workers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soxft","download_url":"https://codeload.github.com/soxft/Urlshorter-Workers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254374542,"owners_count":22060613,"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-10-10T23:27:54.712Z","updated_at":"2025-05-15T16:15:15.261Z","avatar_url":"https://github.com/soxft.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Urlshorter-Workers\n\n\u003e A simple urlshorter based on cloudflare workers\n\n# Useage\n\n1. 在Cloudflare创建一个 `KV`  及 `Workers`\n2. 修改`Workers`的变量, 将`KV 命名空间绑定` 中 `LINKS` 指向 1 中创建的KV\n3. 将 `index.js` 中`config`对象的`passwd`修改为 您的密码\n4. 上传`index.js` 至您的workers\n\n# Api\n\n\u003e POST /\n\n**请求试例**\n```json\n{\n    \"url\": \"https://baidu.com\",\n    \"passwd\": \"default\"\n}\n```\n\n**期待返回**\n```json\n{\n    \"code\": 0,\n    \"msg\": \"ok\",\n    \"short\": \"abcd\"\n}\n```\n\n# 参考\n\n - [xyTom/Url-Shorten-Worker](https://github.com/xyTom/Url-Shorten-Worker)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoxft%2Furlshorter-workers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoxft%2Furlshorter-workers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoxft%2Furlshorter-workers/lists"}