A modern, fast URL shortening service built with Next.js. Create short, memorable links in seconds without registration.
- 🚀 Lightning Fast - Generate shortened URLs instantly
- 🔒 No Registration - Start shortening URLs immediately
- 📱 Fully Responsive - Works on desktop, tablet, and mobile
- ♾️ Unlimited URLs - No restrictions on shortened URLs
- 🎨 Modern UI - Clean interface with smooth animations
- 🔄 Custom Short URLs - Choose your own short URL text
- Next.js 15 (App Router)
- Tailwind CSS
- MongoDB
- JavaScript (React)
npm installCreate .env.local:
MONGODB_URI=your_mongodb_connection_string
NEXT_PUBLIC_HOST=http://localhost:3000Create a database named snaplink with a collection url:
{
"url": "https://example.com/very-long-url",
"shortUrl": "abc123"
}npm run devapp/
├── [url]/ # URL redirection
├── about/ # About page
├── api/generate/ # API endpoint
├── contact/ # Contact page
├── shorten/ # URL shortening page
└── page.js # Home page
components/
└── Navbar.js # Navigation
lib/
└── mongodb.js # Database connection
- Go to the "Shorten" page
- Enter your long URL
- Enter your preferred short code
- Click "Generate"
- Share your shortened URL!
{
"url": "https://example.com/long-url",
"shortUrl": "custom-code"
}- Push code to GitHub
- Import to Vercel
- Add environment variables
- Deploy!
MIT License
Built with ❤️ using Next.js