A simple Cloudflare Worker project to download videos from Kommodo.
The Worker receives a video URL from Kommodo, returns the video info, and allows downloading the video.
- Get video info from Kommodo URL
- Supports direct video URL, M3U8 playlists, and HTML pages
- Download video via browser
- CORS enabled for frontend usage
- Simple and lightweight Cloudflare Worker backend
kommodo-download/
├── README.md
├── back-end/
│ ├── wrangler.toml # Cloudflare Worker configuration
│ └── src/
│ └── index.js # Worker code
└── front-end/
├── index.html # Main page
├── about.html
└── static/
├── script.js # Frontend JS
├── style.css
└── images/ # Images and assets
- Install Wrangler CLI (for local development and deployment):
npm install -g wrangler- Configure
wrangler.toml:
name = "kommodo-video-worker"
type = "javascript"
account_id = "YOUR_ACCOUNT_ID"
workers_dev = true
compatibility_date = "2026-03-16"
[vars]
ALLOWED_ORIGIN = "http://127.0.0.1:5500"- Run locally:
- Start Worker:
cd back-end
wrangler dev src/index.js- Serve frontend (example using Python):
cd front-end
python -m http.server 5500- Open
http://127.0.0.1:5500in your browser and test the downloader.
Publish to Cloudflare Workers:
wrangler publishFor production environment with different origin:
wrangler publish --env production- User enters Kommodo video URL in frontend.
- Worker fetches video info (direct link or playlist).
- Frontend displays video thumbnail and download button.
- User clicks download to save video.
- Only works with Kommodo URLs that provide publicly accessible video links.
- Ensure
ALLOWED_ORIGINinwrangler.tomlmatches your frontend origin for CORS. - The project is lightweight and meant for simple video downloading.
---
If you want, I can **also make a shorter “one-screen” version** of this README with only the essentials for quick setup — less than a page.
Do you want me to do that too?
