Modern open-source link shortener built with Next.js & MongoDB.
Custom domains, analytics, and blazing-fast redirects — all in one place.
Relinxr is an open-source platform for working with links — shortening, tracking, and managing them with simplicity and speed.
It’s built to deliver everything you expect from a modern link shortener like Bitly or TinyURL, but with an open codebase, full transparency, and beautiful UX.
- 🔗 Shorten links instantly — create clean short URLs in a single click
- 📊 Track visits — each redirect is logged in MongoDB with IP and user-agent
- ⚙️ Open API — built with RESTful endpoints for flexibility and integration
- 🌐 Custom domain ready — deploy under your own brand
- 🧩 Full-stack Next.js 15 app — server actions, App Router, TypeScript, Mongoose
- 🪶 Beautiful UI — built with TailwindCSS + smooth interactive components
| Category | Technologies |
|---|---|
| Framework | Next.js 15 (App Router, Server Actions) |
| Frontend | React 18, TypeScript, TailwindCSS |
| Backend | Next.js API Routes, Node.js, Mongoose |
| Database | MongoDB Atlas |
| ORM / ODM | Mongoose |
| Deployment | Vercel |
| Env Config | .env.local + Vercel Environment Variables |
Before running locally, create a .env.local file in the project root
npm install
npm run dev
Relinxr is fully optimized for Vercel.
Steps to deploy:
- 🪣 Push your code to GitHub
- 🔗 Connect the repository on vercel.com
- ⚙️ Add the MONGO_URI variable in your Environment settings
- 🚀 Click Deploy — and you're live!
This project is open-source under the MIT License.
You are free to use, modify, and distribute it.