概要
Transform long URLs into beautiful, trackable short links with Slugy ✨
Web・アプリ開発できること
- 🔗 Link shortening - Short, branded links with custom slugs, expiration & password protection
- 🌍 Custom domains - Connect your own domain for fully branded links
- 📱 QR codes - Generate and customize QR codes for any link
- 📊 Click analytics - Clicks, referrers, countries, devices & more
計測したスター増加
- 24時間
- 0
- 7日間
- 履歴を収集中
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル
Slugy — Open-Source URL Shortener & Link Analytics
Open-source link management that tracks clicks, leads, and revenue.
Create branded short links, manage custom domains, generate QR codes, and see which campaigns generate signups and sales — not just clicks. Free to start, with lead conversion tracking on Pro and revenue attribution on Growth.
Website: https://slugy.co Try Slugy: https://app.slugy.co/signup
See Slugy in Action
Live demo: https://slugy.co · App: https://app.slugy.co/signup
Product screenshots live here once captured from a real running instance — see
docs/screenshots.mdfor the required captures (link creation; clicks, leads, and revenue dashboard). No mockups.
Why Slugy?
| Feature | Slugy (Open Source) | Dub.co | Bitly |
|---|---|---|---|
| License | MIT | AGPLv3 / Commercial | Proprietary |
| Self-hosting | Yes, documented (guide) | Complex | No |
| Free tier | 10 links/mo, 1k clicks, 1 domain | 25 links/mo, 1K events, 3 domains | 5 links/mo, 2 QR/mo |
| Custom domains | Included from free | 3 on free | Growth ($29/mo) and up |
| Lead tracking | Pro ($8/mo) | Business ($90/mo) and up | Not offered |
| Revenue attribution | Growth ($29/mo) | Business ($90/mo) and up | Not offered |
| Entry price | $0 / $8 / $29 | $0 / $30 / $90+ | $0 / $10 / $29+ |
Competitor figures from public pricing pages, checked 9 October 2026 — verify before deciding.
✨ Features
| Feature | Description |
|---|---|
| 🔗 Link shortening | Short, branded links with custom slugs, expiration & password protection |
| 🌍 Custom domains | Connect your own domain for fully branded links |
| 📱 QR codes | Generate and customize QR codes for any link |
| 📊 Click analytics | Clicks, referrers, countries, devices & more |
| 🎯 Lead tracking | Attribute signups to the short link that drove them (Pro) |
| 💰 Revenue attribution | Attribute Shopify orders/sales back to the click that drove them (Growth) |
| 🌐 Bio links | One personalized page for all your links (bio.slugy.co) |
| 📦 Browser extension | Shorten links without leaving the page |
| 💳 Subscriptions | Plans and billing powered by Polar |
🛠 Tech Stack
| Category | Tool |
|---|---|
| Framework | |
| Language | |
| Styling | |
| Auth | |
| ORM | |
| Database | |
| Cache / Queue | |
| Background jobs | |
| Analytics | |
| Storage | |
| Billing | |
| Monitoring | |
| Hosting |
🚀 Getting Started
Prerequisites
- Node.js 20+
- A Postgres database (Neon recommended)
- Upstash Redis account (for caching / rate limits)
- Optional: Tinybird, Resend, Polar, Cloudflare R2, Vercel or Netlify accounts for full functionality
Deployment targets: Vercel is the primary host and Netlify is a hot standby, so a usage limit on one can be worked around by re-pointing DNS at the other. See
docs/netlify-deployment.mdfor the setup and the switch runbook. Cloudflare Workers is retired (free-plan CPU limits); its config is kept for reference only.
Self-hosting scope:
docker-compose.ymlprovisions local Postgres + a Neon-compatible proxy for development only — it is not a complete single-command production deployment of Slugy. The app itself (npm run dev) still needs the env vars in.env.example. Seedocs/self-hosting.mdfor mandatory vs optional dependencies, limitations, and support boundaries.
1. Clone and install
git clone https://github.com/slugylink/slugy.git
cd slugy
npm install
2. Configure environment
cp .env.example .env.local
Fill in .env.local — at minimum:
DATABASE_URLBETTER_AUTH_SECRETUPSTASH_REDIS_REST_URL/UPSTASH_REDIS_REST_TOKENNEXT_PUBLIC_ROOT_DOMAIN,NEXT_PUBLIC_APP_URL
See .env.example for the full list.
3. Set up the database
npx prisma generate
npm run db:push
# or, for migrations:
npm run db:migrate
Optional seed:
npm run seed
4. Run locally
npm run dev
Open:
- Marketing site: http://localhost:3000
- App: http://app.localhost:3000
Local subdomains (
app.localhost) require custom-domain routing configured innext.config.ts. Ifapp.localhost:3000does not resolve, add127.0.0.1 app.localhostto your hosts file.
Useful scripts
npm run dev # start dev server
npm run build # production build
npm run start # start production server
npm run lint # run ESLint
npm run db:studio # open Prisma Studio
📁 Project Structure
src/
app/ # Next.js App Router routes (root, app, api)
components/ # Reusable UI components
lib/ # Helpers, clients, utils
content/ # Blog / marketing content
prisma/ # Schema and migrations
extension/ # Browser extension source
scripts/ # Maintenance scripts
tinybird/ # Analytics pipes and datasources
🤝 Contributing
Contributions are welcome. To contribute:
- Fork the repo
- Create a branch:
git checkout -b feat/my-change - Make your changes with Prettier / ESLint passing (
npm run lint) - Commit and push
- Open a pull request against
main
Please open an issue first for large changes so we can discuss the approach.
💖 Sponsor
If Slugy helps you, consider sponsoring:
Supported by:
🔗 Connect
📄 License
MIT © Slugy — see LICENSE.
Built with 🐌 by the Slugy team
関連プロジェクトを探す
読み込み中…