Open-source link attribution platform for short links, conversion tracking, and affiliate programs, built with Next.js and TypeScript.
- Stars
- 95
- Forks
- 15
- Open issues
- 2
- Last commit
- 26 days ago
What is it?
Slugy is a self-hostable URL shortener and link management app built with Next.js and TypeScript. It creates short links with custom slugs, optional expiration and password protection, and lets you connect your own domain for branded links.
Beyond click counts, Slugy attributes signups to the short link that drove them (Pro plan) and ties Shopify orders back to the clicks that led to them (Growth plan). It also offers QR code generation, bio link pages, and a browser extension for shortening links from the current page.
The stack uses Neon Postgres with Prisma, Upstash Redis, Inngest for background jobs, Tinybird for analytics, Resend for email, and Polar for billing, with Better Auth handling sign-in. Deployment is designed around Vercel, and the project is MIT licensed.
Key features
- 01Short links with custom slugs, expiration, and password protection
- 02Custom domain support for branded links
- 03QR code generation and customization
- 04Click analytics with referrers, countries, and devices
- 05Lead and Shopify revenue attribution to the links that drove them
- 06Bio link pages and a browser extension
Use cases
- Marketing teams tracking which campaigns produce signups or sales
- Businesses that want short links on their own domain
- Developers who want a self-hosted, MIT-licensed link shortener on Next.js
Quick start
- 1
Clone the repository and install dependencies
git clone https://github.com/slugylink/slugy.git && cd slugy && npm install - 2
Copy the example environment file and fill in required variables such as DATABASE_URL and BETTER_AUTH_SECRET
cp .env.example .env.local - 3
Generate the Prisma client and push the database schema
npx prisma generate && npm run db:push - 4
Start the local development server and open http://localhost:3000
npm run dev
Things to know
- Needs a Postgres database and an Upstash Redis account to run fully.
- Self-hosting is not a complete one-command production deployment; docker-compose is for development only.
In collections
Topics
FAQ
- What is slugy?
- Open-source URL shortener with branded links, custom domains, QR codes, and click, lead, and revenue tracking. Slugy is a self-hostable URL shortener and link management app built with Next.js and TypeScript. It creates short links with custom slugs, optional expiration and password protection, and lets you connect your own domain for branded links.
- Is slugy free to use? What license does it have?
- slugy is open source under the MIT license. Check the license terms before using it in commercial products.
- Is slugy still maintained?
- Actively maintained. The last commit to slugy was on Oct 12, 2026.
- What can I use slugy for?
- Marketing teams tracking which campaigns produce signups or sales Businesses that want short links on their own domain Developers who want a self-hosted, MIT-licensed link shortener on Next.js
- How do I install slugy?
- Clone the repository and install dependencies: git clone https://github.com/slugylink/slugy.git && cd slugy && npm install Copy the example environment file and fill in required variables such as DATABASE_URL and BETTER_AUTH_SECRET: cp .env.example .env.local Generate the Prisma client and push the database schema: npx prisma generate && npm run db:push Start the local development server and open http://localhost:3000: npm run dev
- Where can I get slugy?
- The source code and installation instructions are on GitHub: https://github.com/slugylink/slugy
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
All-in-one self-hostable domain service platform combining short links, disposable email inboxes, subdomain DNS management, file storage and an open API, with an admin panel.
An open-source, modular Next.js SaaS starter with auth, organizations, Stripe billing, an admin panel, docs, blog and changelog, each toggleable.
An open source CRM built around AI agents that research contacts, record evidence and run on their own schedule.
Open-source project management app for boards and cards, positioned as a self-hostable alternative to Trello.
Open-source, self-hosted scheduling platform (MIT-licensed community fork of Cal.com) for booking meetings and managing calendars.