iGdu

耕读

Learner and Observer, be happy to share useful things.

Cloudflare Workers Excellent Project Collection (Continuously Updated)

Cloudflare is a great internet company dedicated to building a better internet. Currently, they provide powerful and efficient services, many of which are available for free, such as free CDN, DNS services, and the Worker service that will be introduced in this article.

1. What is Cloudflare Workers#

Cloudflare Workers is a (serverless) platform that allows you to run JavaScript. For more details, please refer to the official website.

2. Why use Cloudflare Workers#

Because it is powerful and free. Its strengths include DDoS attack protection and high uptime. It also offers both free and paid versions, with the free version generally sufficient for personal use. Additionally, it can allocate a domain name without the need for additional purchases.
Of course, if you encounter a situation where Cloudflare Worker cannot be accessed, you can consider binding your own domain name. Here, I recommend purchasing a cheap .xyz domain or applying for a free eu.org domain.

3. What can Cloudflare Workers do#

Cloudflare Workers can do everything that JavaScript can do. Note: Cloudflare Workers have a daily limit of 100,000 free requests, which is generally sufficient for personal use. Additionally, Cloudflare also offers a paid version at $5 per month for 10 million requests.

4. Excellent collection of Cloudflare Workers projects#

4.1 Nodes#

Project modified by 3K: https://github.com/3Kmfi6HP/EDtunnel

Project created by Zizifn: https://github.com/zizifn/edgetunnel/blob/main/src/worker-vless.js

Deploy custom subscription service: https://github.com/mjjonone/sub-worker/blob/main/_worker.js

4.2 Website Building#

Building a blog using Workers:#

Option 1: Build a blog using Worker's KV as a database. Source code: gdtool/Cloudflare-workers-blog. Installation tutorial available here.
Option 2: Build a blog system using Workers+GitHub. Source code: kasuganosoras/cloudflare-worker-blog.

Building a directory site using Workers:#

Build a directory site using Workers. Source code: sleepwood/CF-Worker-Dir.

Building an image hosting service using Workers:#

Source code: iiop123/workers-image-hosting.
Demo: https://img.231516.xyz/ (my own image hosting service).

Building a URL shortening service using Workers:#

Source code 1: https://github.com/igengdu/short/ (recommended, my free URL shortening service is based on this open-source project: https://d.igdu.xyz).
Source code 2: Url-Shorten-Worker, tutorial.
Source code 3: xyTom/Url-Shorten-Worker.
Source code 4: Closty/duanwangzhi.
Source code 5: Short-url, tutorial.

Monitoring website status using Workers:#

Source code: eidam/cf-workers-status-page (You can also use Uptimerobot to monitor website health status. Source code: yb/uptime-status; tutorial: tutorial).

Building a temporary email service using Workers:#

Source code: dreamhunter2333/cloudflare_temp_email.

Building an RSS feed generator using Workers:#

Source code: https://github.com/yllhwa/RSSWorker (includes tutorial).

Deploying Copilot service using Workers:#

Copilot (formerly New Bing) can be used to try ChatGPT4. Currently, you can deploy a locally available Copilot service using Workers.
Source code: Harry-zklcdc/go-proxy-bingai (includes tutorial).
Demo: trial.
Other ways to deploy Copilot trial.

Deploying Telegram Bot service using Workers:#

Source code: Tsuk1ko/cfworker-telegraf.
Tutorial: moe.best.

4.3 Proxy#

Gh-proxy: Accelerate GitHub projects, https://github.com/hunshcn/gh-proxy.
Jsproxy: https://github.com/EtherDream/jsproxy/tree/master/cf-worker.
Workers-Proxy: https://github.com/klightso/Workers-Proxy-1; reference tutorial.

4.4 Cloud Storage File Listing#

Building a Google Drive listing service using Workers#

Source code 1: https://github.com/xunyixiangchao/goindex.
Source code 2: https://github.com/yanzai/goindex.
Source code 3: Aicirou/goindex-theme-acrou.
Source code 4: https://github.com/maple3142/GDIndex.

Building an OneDrive listing service using Workers#

Source code 1: spencerwooo/onedrive-cf-index.
Source code 2: Eggsmemory/OneDrive Index Cloudflare Worker.

Update Notes#

This article was initially written in June 2023, collecting all the Workers projects available at that time. It has been revised, updated, and supplemented to its current form. Original article link.
On December 30, 2023, some links and invalid codes were modified and organized.
On March 9, 2024, additional content was added and project order was adjusted:
Added sections on deploying custom subscriptions, building RSS feed generators, and proxying Copilot.

If you have any new excellent Workers projects or find any broken links, please feel free to contact me.

References:#

Source 1: Awesome Cloudflare Workers#

Source 2: Vipkj.net#

Source 3: Littlefox.me#

Source 4: Linux.do#

Source 5: iGengdu.com#

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.