openflarestack Star this repo
  1. Catalog
  2. Files & storage
  3. CDN Worker
Ranked 120 of 234

CDN Worker

SerenModz21/cdn-worker

A simple CDN for uploading and serving media files using Cloudflare Workers and R2.

What it sets up in your account

  • KV
    KV namespace
    A key value store for settings and fast lookups.
  • R2
    R2 bucket
    Storage for files and uploads.
Category
Files & storage
Licence
MIT
Stars
27
Last commit
2 days ago

Use it with AI or code

  • Markdown for AIPaste into ChatGPT, Claude or any LLM./apps/cdn-worker.md
    Open
  • JSON APIFree, no key, CORS open./api/v1/apps/cdn-worker.json
    Open

More in the API docs and llms.txt.

Keeping it up to date

The Deploy button copies the repo into your GitHub. Run this in your copy whenever a new version comes out.

terminal
git remote add upstream https://github.com/SerenModz21/cdn-worker.git
git pull upstream main
npx wrangler deploy

CDN Worker questions

What is CDN Worker?

A simple CDN for uploading and serving media files using Cloudflare Workers and R2. It runs on Cloudflare Workers in your own account.

What does CDN Worker set up in my Cloudflare account?

KV namespace and R2 bucket. They are created in your account, so the data stays yours.

How do I deploy CDN Worker?

Press Deploy to Cloudflare. Cloudflare copies the repository into your GitHub account, creates what it needs and deploys it with Workers Builds.

Is CDN Worker free and open source?

Yes. It’s published under the MIT licence. Running it uses your own Cloudflare account, and small setups usually fit in the free plan.

How do I update CDN Worker?

Pull from the original repository and redeploy: add https://github.com/SerenModz21/cdn-worker.git as an upstream remote, run git pull upstream main, then npx wrangler deploy.