A sleek, fast, and analytics-powered URL shortening platform built with Next.js 16, Drizzle ORM, Neon Postgres, and shadcn/ui.
TinyLink lets you turn long URLs into short, trackable links.
It provides a beautiful UI, powerful analytics, and a clean API — perfect for personal use, teams, or production environments.
- Create short links with custom or auto-generated codes
- Track click statistics and last clicked time
- Search and filter links
- Responsive design with dark mode support
- RESTful API with proper error handling
- Health check endpoint for monitoring
- Clone the repository
- Install dependencies:
bun install - Set up environment variables (see
.env.sample) - Run the development server:
bun run dev - Open http://localhost:3000
POST /api/links- Create a new short linkGET /api/links- List all links (with optional search)GET /api/links/:code- Get link details by codeDELETE /api/links/:code- Delete a linkGET /:code- Redirect to target URL (302)GET /healthz- Health check endpoint
/- Dashboard (create and manage links)/code/:code- View statistics for a specific link/:code- Redirect to target URL
MIT License — use it, fork it, build on it!
We welcome contributions! Please follow the standard Git/GitHub workflow (branching, PRs, merges).
⭐ Star this repo if you like it!
