All Projects → Closty → duanwangzhi

Closty / duanwangzhi

Licence: MIT License
Shorten your links without serves because it based on Cloudflare workers function with minimalist style.Hope u like:)

Programming Languages

HTML
75241 projects

Projects that are alternatives of or similar to duanwangzhi

cfworker-middware-telegraf
Make telegraf (a telegram bot framework) useable in Cloudflare Workers
Stars: ✭ 23 (-70.89%)
Mutual labels:  cloudflare-workers, cfworker
libDrive
libDrive is a Google Drive media library manager and indexer, similar to Plex, that organizes Google Drive media to offer an intuitive and user-friendly experience.
Stars: ✭ 14 (-82.28%)
Mutual labels:  cloudflare-workers
deno-fetch-event-adapter
Dispatches global fetch events using Deno's native http server.
Stars: ✭ 18 (-77.22%)
Mutual labels:  cloudflare-workers
FaucetCryptoBot
A bot for FaucetCrypto a cryptocurrency faucet. The bot can currently claim PTC ads, main reward and all the shortlinks except exe.io and fc.lc.
Stars: ✭ 69 (-12.66%)
Mutual labels:  shortlinks
inkrss
Notify when rss feeds are updated | RSS 更新通知
Stars: ✭ 234 (+196.2%)
Mutual labels:  cloudflare-workers
miniflare
🔥 Fully-local simulator for Cloudflare Workers
Stars: ✭ 2,811 (+3458.23%)
Mutual labels:  cloudflare-workers
workers-pubsub
Google Pub/Sub API for Cloudflare Workers (and Node.js)
Stars: ✭ 25 (-68.35%)
Mutual labels:  cloudflare-workers
fauna-workers
A template for building fast, globally distributed applications using Cloudflare Workers and Fauna, the data API for modern applications.
Stars: ✭ 35 (-55.7%)
Mutual labels:  cloudflare-workers
relay-starter-kit
💥 Monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, Relay, Material UI.
Stars: ✭ 3,513 (+4346.84%)
Mutual labels:  cloudflare-workers
terraform-cloudflare-maintenance
Terraform module to create a responsive Maintenance Page using Cloudflare Workers.
Stars: ✭ 111 (+40.51%)
Mutual labels:  cloudflare-workers
edge-mock
Tools for testing and developing CloudFlare worker apps.
Stars: ✭ 49 (-37.97%)
Mutual labels:  cloudflare-workers
cfw-easy-utils
An in-depth library to assist with common tasks with CF Workers. Includes utils for responses, cookies, and more!
Stars: ✭ 52 (-34.18%)
Mutual labels:  cloudflare-workers
natural
Fastest Framework for NodeJS. Written in pure ES6+
Stars: ✭ 30 (-62.03%)
Mutual labels:  cloudflare-workers
sunder-worker-template
Template for Sunder in Cloudflare worker with Typescript, ESBuild and Jest
Stars: ✭ 44 (-44.3%)
Mutual labels:  cloudflare-workers
vctr
vctr is a self hosted short link management tool.
Stars: ✭ 14 (-82.28%)
Mutual labels:  shortlinks
crafthead
Super scalable Minecraft avatar generation, built on Cloudflare Workers
Stars: ✭ 67 (-15.19%)
Mutual labels:  cloudflare-workers
anilist-chinese
Translate anime titles on anilist.co to Chinese
Stars: ✭ 21 (-73.42%)
Mutual labels:  cloudflare-workers
workers-jwt
Generate JWTs on Cloudflare Workers using the WebCrypto API
Stars: ✭ 67 (-15.19%)
Mutual labels:  cloudflare-workers
wrangler2
🤠 wrangle your Cloudflare Workers
Stars: ✭ 349 (+341.77%)
Mutual labels:  cloudflare-workers
supaflare
URL shortener / redirection service powered by Supabase, Cloudflare Workers, Workers KV and Cloudflare Pages.
Stars: ✭ 51 (-35.44%)
Mutual labels:  cloudflare-workers

介绍:

20200430_234331_0000副本.png

短网址是指将任何域名更换成一个t.cn/xxxx类的网址。
比如将网址https://www.clost.net转化成https://t.cn/A6wT0J1d

为什么要转换? 一方面,直观来说可以将网址变短,比如分享微信的链接,一大串字符会限制你文章字数;另一方面,可以防红,比如你在你的qq分享你的网站,分享过多会导致腾讯 检测并封除域名便会被显示已被拦截等字样,别人以后就只能复制到你的网址在浏览器打开而不能直接在qq内点开。用短网址就可以很好的防止这一点发生。当然这样的操作是要付费的,因为其本质已经起到cdn的作用了,同样简单的修改源码api接口即可使用,请自行百度。 其实市面上有很多网址缩短源码,但都不够简洁,且需要服务器支撑。如果你喜欢极简风格那就来对了!

演示网址:

s.clost.net

特点:

  1. 极简风格
  2. 将网址转换为https://t.cn/xxx类格式,其他格式或者自己域名请修改代码的api接口,代码中已有注释。
  3. 基于cloudflare的强大功能,无需服务器支撑即可建立短网址网页

教程:

前期准备

  1. 一个cloudflare账号
  2. 拥有自己的域名,freenom免费申请>>

正式部署

一、创建cf(cloudflare)的workers

如何创建cloudflare-workers? 1.进入 cloudflare首页 ,点击进入workers

6010332F-D475-4589-9B0A-19975E67C6EB.png
2.点击创建worker 429F89D4-6A33-4B0E-9FEB-03F61974214A.png

二、编辑worker

如何编辑cloudflare-workers? 在脚本框内填入本项目中以html结尾的代码 ;打开后将其中的所有代码复制并粘贴填入cf-worker的编辑框中。

如图所示

填入代码

这时候便可以访问你的worker,只不过域名不是自定义的。不过也可以使用了。地址便是上图代码上侧的地址,如这是我的worker地址。https://s.clost.workers.dev

三、绑定域名

如何绑定域名? 1.你需要先将你的域名指定任意一个IP地址,但是必须开启默认的代理模式(黄色的云朵图标点亮状态)。然后点击保存。

指定任意一个IP地址并开启代理

2.进入workers界面,添加路由

3224A31E-4D2E-4E4D-8D75-CC13EE6E5796.png
3.添加路由,域名处填写https://你的域名/*(注意/*两个符号务必加上),worker选择你刚刚创建的worker

CA8840DA-3830-42FF-A9C2-FE5937B90A21.png

大功告成,访问你的域名试试吧!

如访问https://s.clost.net

贡献:

Closty

以及待添加的你 ,项目开源,有精美ui欢迎来pull

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].