A fast and simple URL shortening API built with Node.js, Express, TypeScript, and MongoDB.
Create shortened links, redirect users to the original URL, and track the number of clicks.
- 🔗 Create shortened URLs
- ⚡ Fast redirects
- 🧬 Unique short code generation using NanoID
- ✅ URL validation
- 📊 Click tracking
- 🗄️ MongoDB database storage
- 🔒 Prevent duplicate short codes
- ⏱️ Automatic timestamps
- User sends a URL to the API
- API validates the URL
- A unique short code is generated
- The URL is stored in MongoDB
- User receives a shortened URL
- Visiting the shortened URL redirects to the original website
- Each visit increments the click counter