All Projects → Tsuk1ko → cfworker-url-shortener

Tsuk1ko / cfworker-url-shortener

Licence: MIT license
部署在 Cloudflare Workers 的短网址服务

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
HTML
75241 projects

Projects that are alternatives of or similar to cfworker-url-shortener

supaflare
URL shortener / redirection service powered by Supabase, Cloudflare Workers, Workers KV and Cloudflare Pages.
Stars: ✭ 51 (-1.92%)
Mutual labels:  url-shortener, cloudflare-workers
Golang Url Shortener
URL Shortener written in Golang using Bolt DB or Redis. Provides features such as Deletion, Expiration, OAuth and is of course Dockerizable.
Stars: ✭ 240 (+361.54%)
Mutual labels:  url-shortener
Shlink Web Client
A React-based client application for Shlink
Stars: ✭ 81 (+55.77%)
Mutual labels:  url-shortener
Urlshorting
A simple but powerful URL shortener
Stars: ✭ 150 (+188.46%)
Mutual labels:  url-shortener
Sheets Url Shortener
A simple short URL redirect service built on top of Google Sheets, and runs for cheap on Google Cloud Run serverless.
Stars: ✭ 89 (+71.15%)
Mutual labels:  url-shortener
Node Bitly
A Bit.ly library for node.js - This project is looking for a new maintainer
Stars: ✭ 167 (+221.15%)
Mutual labels:  url-shortener
Url Shortener
Web application that will help you in shortening your url
Stars: ✭ 65 (+25%)
Mutual labels:  url-shortener
Sharex
ShareX is a free and open source program that lets you capture or record any area of your screen and share it with a single press of a key. It also allows uploading images, text or other types of files to many supported destinations you can choose from.
Stars: ✭ 18,143 (+34790.38%)
Mutual labels:  url-shortener
Dogbin
The sexiest pastebin and url shortener ever
Stars: ✭ 237 (+355.77%)
Mutual labels:  url-shortener
Point
Create and manage shortened URLs with GitHub pages.
Stars: ✭ 146 (+180.77%)
Mutual labels:  url-shortener
Serverless Url Shortener
URL shortener for AWS Lambda and S3
Stars: ✭ 146 (+180.77%)
Mutual labels:  url-shortener
Filite
A simple, light and standalone pastebin, URL shortener and file-sharing service
Stars: ✭ 125 (+140.38%)
Mutual labels:  url-shortener
Sharex Upload Server
AKA ShareS - Feature full & Stable ShareX and file server in node. Includes images, videos, code, text, markdown rendering, password protected uploads, logging via discord, administration through Discord, url shortening, and a full front end. Use standalone or via reverse proxy
Stars: ✭ 180 (+246.15%)
Mutual labels:  url-shortener
Prestashop Clean Urls
Prestashop module. This override module allows to remove IDs from URLs
Stars: ✭ 87 (+67.31%)
Mutual labels:  url-shortener
Sleeky
🎨 A sleek and simple frontend & backend theme for YOURLS
Stars: ✭ 245 (+371.15%)
Mutual labels:  url-shortener
Shorty
🔗 A URL shortening service built using Flask and MySQL
Stars: ✭ 78 (+50%)
Mutual labels:  url-shortener
Fossurl
Your Own Url Shortner Without any fancy server side processing and support for custom url , which can even be hosted on GitHub Pages
Stars: ✭ 131 (+151.92%)
Mutual labels:  url-shortener
Shorty
A simple URL shortener for PHP
Stars: ✭ 156 (+200%)
Mutual labels:  url-shortener
keeplinkin
🔗 A Flask and Redis based fast, feature rich and free URL shortener site.
Stars: ✭ 21 (-59.62%)
Mutual labels:  url-shortener
Azurlshortener
An simple and easy Url Shortener
Stars: ✭ 247 (+375%)
Mutual labels:  url-shortener

cfworker-url-shortener

部署在 Cloudflare Workers 的短网址服务

利用 Cloudflare 的 Workers 路由配置,可以将 / 路由到 GitHub Pages,/* 路由到 Cloudflare Workers,这样首页就不会占用 Workers 资源了

frontend

标准的 Vue 项目,没什么好说的

附带 GitHub Actions 自动部署到 gh-pages 分支,但首次可能需要自己去 Settings 里启用一下 GitHub Pages

Secrets

  • ADDITION_HEAD - 会被添加到 </head> 前,可放置统计代码等

backend

利用 Cloudflare Workers 提供的免费 KV 来储存,原网址长度最长 1024,产生的短网址 ID 为长度为 6 的 Base56 23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz

优先采用哈希算法生成 ID,每个 URL 能够通过哈希算法产生 4 个 ID,若全部已被占用则使用随机生成的 ID,最多尝试 1000 次

KV

新建一个命名空间,绑定到 URL_DB 变量即可

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].