Skip to content

Powerful, production-eady URL shortening system built for high performance and scalability. Unlike traditional shorteners, it features analytics, caching, and a modern architecture for real world applications.

Notifications You must be signed in to change notification settings

shreyashsng/url-manager-prod-ready

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

URL Manager – Production-Grade URL Shortener πŸš€

A Bitly-like production-ready URL shortener built with modern best practices.
Includes authentication, analytics, Redis caching, secure APIs, and a React dashboard.


πŸ”₯ Features

  • ⚑ Ultra-fast redirects (<5ms cache-hit) using Redis.
  • πŸ“Š Advanced analytics: click tracking, daily trends, referrer, device, and unique visitors.
  • πŸ” Secure APIs: JWT authentication, Zod validation, input normalization.
  • πŸ›‘ Rate limiting: Prevents abuse (25 requests / 15 minutes per user).
  • πŸ–₯ Dashboard (React): Manage links, view stats, track user activity.
  • 🐳 Production practices: Environment-based configs, Prisma migrations, error handling.

Quick Demo

Try out the application instantly using these credentials:

Email: [email protected]
Password: pass1234

πŸ›  Architecture

graph TD
    A[Client: React + Vite + Tailwind] --> B[Express.js API Server]
    B --> C[Redis Cache]
    B --> D[Prisma ORM]
    D --> E[Supabase]
Loading

πŸ“Š Example Analytics

  • Total Clicks
  • Daily Trends
  • Referrer Sources
  • Device Breakdown
  • Unique Visitors

πŸ”’ Security & Production Readiness

  • βœ… Input validation with Zod
  • βœ… Sanitized queries with Prisma
  • βœ… Helmet + CORS + Rate limiting
  • βœ… JWT-based authentication
  • βœ… Redis caching for high-speed lookups
  • βœ… Robust error handling & logging

πŸš€ Roadmap

  • Docker + Nginx for deployment
  • CI/CD setup (GitHub Actions)
  • Custom domains for short links
  • Link expiration & QR code generation

About

Powerful, production-eady URL shortening system built for high performance and scalability. Unlike traditional shorteners, it features analytics, caching, and a modern architecture for real world applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published