Dub
Open-source short links, conversion tracking and affiliate payouts
Tier B · UsefulServiceToolAppdub.co

Dub is a link attribution platform: branded short links with QR codes, geo and device targeting, A/B tests, deep links and custom domains, joined to real-time analytics that follow a click through to a sale. On top of that sits Dub Partners, an affiliate and referral program manager with commission rules, global payouts and embeddable partner dashboards. The core is open source under AGPLv3 (24.4k stars, Next.js + TypeScript + Tailwind + Prisma), with a REST API and first-party SDKs for TypeScript, Python, Go, PHP and Ruby. It is marketing infrastructure, not a design resource — its value to a designer is as a reference Next.js codebase and a referral-flow backend.
npm i dubFor an agent
Reach for Dub when a product needs referral or affiliate attribution wired end to end, not merely a URL shortener — Bitly and a homegrown /r/[code] route are cheaper if all you want is a short link. Integrate with the `dub` npm SDK plus the conversion-tracking endpoints (lead and sale events) rather than only creating links, or you get vanity metrics and no attribution. Two cautions: the self-host path is AGPLv3, which is a real obligation for a closed product, and the hosted plans start at $90/mo, so do not propose it for a side project.
Why it is here. A rare open-source SaaS whose Next.js/Tailwind/Prisma monorepo is worth reading as a production reference, quite apart from the product.
Facts
- License
- AGPL, Commercial license
- Pricing
- Subscription, Free trial, Open source, Freemium
- Framework
- Next.js, React, Python
- Styling
- Tailwind CSS
- Distribution
- Hosted SaaS product, Web app / online tool, Public HTTP API, npm package, GitHub repository
- Platform
- Web, Cross-platform
- Content type
- Code
- Agent readiness
- Public API without auth, Readable open source, Structured documentation, Login required
- Accessibility
- Unknown
- Maturity
- Actively maintained
- Pricing detail
- Dub Partners: Business $90/mo ($2.5K payouts/mo, 500 partners, 5% payout fee); Advanced $300/mo ($15K payouts/mo, unlimited partners, 5% fee); Enterprise custom annual (3% fee). Links quotas bundled: Business 10K links + 250K events/mo, Advanced 50K links + 1M events/mo. 14-day trial on all plans; yearly billing saves 10%.
- GitHub stars
- 24,400
- Package
- dub
Helps you build
7Notable for
- AGPLv3 open-source core, 24.4k stars
- Click-to-sale conversion attribution
- Affiliate payouts and partner dashboards
- SDKs for TS, Python, Go, PHP, Ruby
- Reference-grade Next.js monorepo
Provenance
Verified 2026-08-15. HTTP 200. https://dub.co/, https://dub.co/pricing, https://dub.co/docs/api-reference/introduction, https://github.com/dubinc/dub
Also in Utilities & Naming
6- Beautiful Mermaid · Zero-DOM TypeScript Mermaid renderer with SVG and ASCII output
- Instant Domain Search · Keystroke-speed domain availability across 800+ TLDs, with a free MCP server
- UnoCSS · On-demand atomic CSS engine with swappable presets, ~6kb, no core utilities
- Bannerbear · REST API that renders images, video and PDF from reusable design templates
- cubic-bezier.com · Lea Verou's bezier curve editor: drag the handles, compare against presets, share via URL
- delphitools · ~57 browser-local design utilities: colour, image, type, print, no login