{"id":13616423,"url":"https://github.com/xyTom/Url-Shorten-Worker","last_synced_at":"2025-04-14T00:32:16.323Z","repository":{"id":38799810,"uuid":"318784429","full_name":"xyTom/Url-Shorten-Worker","owner":"xyTom","description":"A URL Shortener created using Cloudflare worker","archived":false,"fork":false,"pushed_at":"2024-04-29T14:29:47.000Z","size":910,"stargazers_count":1609,"open_issues_count":25,"forks_count":1245,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-04-06T08:09:53.917Z","etag":null,"topics":["api","bitly","cloudflare-worker","cloudflare-workers","javascript","serverless","shorten-urls","shortener","tinyurl","url-shortener"],"latest_commit_sha":null,"homepage":"https://lnks.eu.org","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/xyTom.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":"2020-12-05T12:36:06.000Z","updated_at":"2025-04-04T10:20:00.000Z","dependencies_parsed_at":"2024-01-14T19:12:20.161Z","dependency_job_id":"ba24baa2-c46c-4299-9741-34387b076af3","html_url":"https://github.com/xyTom/Url-Shorten-Worker","commit_stats":{"total_commits":28,"total_committers":8,"mean_commits":3.5,"dds":0.25,"last_synced_commit":"dc585e502b6e2409db203d06fa49412648ae530a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyTom%2FUrl-Shorten-Worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyTom%2FUrl-Shorten-Worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyTom%2FUrl-Shorten-Worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyTom%2FUrl-Shorten-Worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyTom","download_url":"https://codeload.github.com/xyTom/Url-Shorten-Worker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248709592,"owners_count":21149179,"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":["api","bitly","cloudflare-worker","cloudflare-workers","javascript","serverless","shorten-urls","shortener","tinyurl","url-shortener"],"created_at":"2024-08-01T20:01:28.322Z","updated_at":"2025-04-14T00:32:16.296Z","avatar_url":"https://github.com/xyTom.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Url-Shorten-Worker\nA URL Shortener created using Cloudflare Worker\n\n# API\n\n[API Documentation (API文档)](docs/API.md)\n\n# Getting start\n### 去Workers KV中创建一个命名空间\n\nGo to Workers KV and create a namespace.\n\n![](docs/kv_create_namespace.png)\n\n### 去Worker的Settings选选项卡中绑定KV Namespace\n\nBind an instance of a KV Namespace to access its data in a Worker.\n\n![](docs/worker_settings.jpg)\n\n### 其中Variable name填写`LINKS`, KV namespace 选择你刚刚创建的命名空间\n\nWhere Variable name should set as `LINKS` and KV namespace is the namespace you just created in the first step.\n\n![](docs/worker_kv_binding.png)\n\n### 复制本项目中的`index.js`的代码到Cloudflare Worker \n\nCopy the `index.js` code from this project to Cloudflare Worker. \n\n### 点击Save and Deploy\n\nClick Save and Deploy\n\n# Demo\nhttps://lnks.eu.org/\n\nNote: Because someone abuse this demo website, all the generated link will automatically expired after 24 hours. For long-term use, please deploy your own.\n\n注意：所有由Demo网站生成的链接24小时后会自动失效，如需长期使用请自行搭建。\n\n# crazypeace 修改版\n\nhttps://github.com/xyTom/Url-Shorten-Worker/tree/crazypeace\n\n支持功能：1、自定义短链 2、页面缓存设置过的短链 3、长链接文本框预搜索localStorage 4、增加删除某条短链的按钮 5、密码保护\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FxyTom%2FUrl-Shorten-Worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FxyTom%2FUrl-Shorten-Worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FxyTom%2FUrl-Shorten-Worker/lists"}