A simple URL shortener built with:
- 🌐 Cloudflare Workers (Backend)
- 💅 Bootstrap + JS (Frontend)
Try it here: shortenlinkz.pages.dev
- Users enter a long URL
- The frontend sends a POST request to
/api/shorten - Cloudflare Worker stores the shortened slug in a KV Namespace
- Visiting the slug redirects to the long URL
- Cloudflare Workers + KV
- HTML, CSS (Bootstrap), JavaScript
url-shortener/
├── frontend/
│ ├── index.html
│ └── script.js
├── backend/
│ └── cloudflare-worker.js
Frontend: Host via Cloudflare Pages or GitHub Pages
Backend: Deploy to Cloudflare Workers with KV binding
Made with ❤️ by Uttkarsh