Mini URL Shortener - Link Management System
Mini URL Shortener is a clean, production-ready MERN-stack web application designed to solve the problem of unwieldy, messy web links. It allows users to quickly paste any long URL and receive an auto-generated 6-character short link or create their own branded custom alias.
System Architecture
The project follows a clean, decoupled MVC-inspired client-server architecture:
Frontend: Pure React.js with hooks (useState, useEffect) and native browser fetch() — zero heavy UI dependencies.
Backend: Node.js and Express.js REST API handling URL encoding, route redirects, and MongoDB interactions.
Database: MongoDB with Mongoose ODM storing URL mappings, click counts, and access timestamps.
Database Schema
- originalUrl: The destination web link (String, required)
- shortCode: Unique alphanumeric code or custom alias (String, unique)
- clicks: Real-time visit counter (Number, default 0)
- lastAccessedAt: Timestamp of the most recent redirect (Date)
- createdAt: Timestamp of link generation (Date)
Key Highlights
- Fast HTTP 302 Redirection with automatic click tracking and timestamp updates.
- Custom Alias validation (prevents duplicates and invalid characters).
- Real-time Dashboard Metrics: Total links created, total redirects tracked, and top-performing link.
- Instant Clipboard Copy with active visual feedback badge.
- In-Memory Search & Filtering by keyword or short code without extra server queries.
- Pure CSS Responsive Layout optimized for Desktop, Tablet, and Mobile devices.
Target Audience
Perfect for college mini-projects, resume portfolio showcases, web development beginners, and content creators looking for a self-hosted URL shortening service.
Key Features
- ✓Instant URL shortening with auto-generated 6-character unique codes
- ✓Custom readable alias support (e.g. localhost:5000/my-custom-name)
- ✓High-speed HTTP 302 redirection directly to target destination
- ✓Real-time click tracking counter and last-accessed timestamp
- ✓One-click copy to clipboard with instant confirmation badge
- ✓Live search bar to filter stored links by keyword or short code
- ✓Link deletion management with instant UI state synchronization
- ✓Metric cards showing total links, total redirects, and top performer
- ✓100% pure CSS responsive design for mobile, tablet, and desktop
- ✓Line-by-line beginner-friendly and well-documented codebase
Screenshots
What's Included
Standard Purchase Price
₹499.00
Unlock this project for ₹0 Free with an Annual Pass!
Get Free with Annual Pass👑Included with Lite (3) & Max (5) Annual Plans • View Annual Plans →
✅ Instant access after payment
✅ Secure UPI payment
✅ Download link valid 24 hours
✅ Full source code & DB included