MiniLink is a modern URL shortener built with Next.js that allows users to shorten long URLs and track link analytics.
If a user is signed in, they can view total click counts for their shortened links through a personal dashboard.
👉 https://mini-link-five.vercel.app/
- 🔗 Instantly shorten long URLs
- 👤 Secure authentication with NextAuth
- 📊 Track total clicks (for logged-in users)
- 📈 User dashboard for managing links
- 🔔 Beautiful alerts using SweetAlert2
- ⚡ Fast performance with Next.js 16 & React 19
- 📊 Integrated Vercel Analytics
- 🗄️ MongoDB database with Mongoose
- Next.js 16
- React 19
- NextAuth.js
- MongoDB + Mongoose
- Vercel Analytics
- Lucide React
- React Hot Toast
- SweetAlert2
Clone the repository:
git clone https://github.com/SaadkamalShaikhdev//MiniLink.git
cd minilinkInstall dependencies:
npm installnpm run devOpen:
http://localhost:3000
- User enters a long URL.
- MiniLink generates a unique short slug.
- The short link redirects to the original URL.
- Each click is stored in the database.
- Logged-in users can see total clicks in their dashboard.
- Non-logged-in users can still use shortened links, but analytics are not saved.
app/
├── page.js
├── dashboard/
├── api/
components/
models/
lib/
MiniLink is deployed on Vercel:
👉 https://mini-link-five.vercel.app/
- Custom short URLs
- QR code generation
- Advanced analytics (device, country, IP)
- Link expiration
- Public API support
SaadKamal
Full Stack Developer passionate about building scalable and modern web applications.