Skip to content

uttkarshsharma/urlshort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

🔗 URL Shortener

A simple URL shortener built with:

  • 🌐 Cloudflare Workers (Backend)
  • 💅 Bootstrap + JS (Frontend)

🌍 Live Demo

Try it here: shortenlinkz.pages.dev

🚀 How It Works

  • 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

🛠️ Tech Stack

  • Cloudflare Workers + KV
  • HTML, CSS (Bootstrap), JavaScript

📁 Folder Structure

url-shortener/
├── frontend/
│   ├── index.html
│   └── script.js
├── backend/
│   └── cloudflare-worker.js

📦 Deployment

Frontend: Host via Cloudflare Pages or GitHub Pages
Backend: Deploy to Cloudflare Workers with KV binding

✨ Credits

Made with ❤️ by Uttkarsh

About

A simple, fast, and free URL shortener built using Cloudflare Workers (for backend with KV storage) and a responsive HTML/CSS/Bootstrap frontend. Create and share short links easily — all serverless and scalable!

Topics

Resources

Stars

Watchers

Forks

Contributors