A Bitly-like production-ready URL shortener built with modern best practices.
Includes authentication, analytics, Redis caching, secure APIs, and a React dashboard.
- β‘ 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.
Try out the application instantly using these credentials:
Email: [email protected]
Password: pass1234
graph TD
A[Client: React + Vite + Tailwind] --> B[Express.js API Server]
B --> C[Redis Cache]
B --> D[Prisma ORM]
D --> E[Supabase]
π 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