Dub
Dub is an open-source tool that ties marketing results to links, covering short links, conversion tracking and partner programs, with a self-hosting option.
- GitHub stars
- 25k
- Last commit
- today
- Self-hosted
- Yes
- Hosted version
- Available

Dub is an open-source platform for attributing results to links, aimed at marketing teams. It handles short links, tracking of conversions and affiliate programs, so teams can see which campaigns and partners drive results. It is written in TypeScript with Next.js, and the repository metadata lists the license as Other, so check the repository for the exact terms before reuse.
The README documents a stack that includes Tailwind CSS, Prisma, Upstash for Redis, Tinybird for analytics, PlanetScale for the database, NextAuth.js, BoxyHQ for SAML SSO, Turborepo, Stripe, Resend for email and Vercel for deployment. A self-hosting guide is provided for people who want more control over their data and design. Contributors can follow the local development guide, which lists recommended Node.js and pnpm versions and common fixes for build problems. The topics also mention ClickHouse and MySQL.
Key features
- Short links with branded domains
- Conversion tracking for campaigns
- Affiliate program management
- Analytics powered by Tinybird
- SAML SSO support through BoxyHQ
- Self-hosting guide in the documentation
Pricing: Dub Partners plans start at $90 a month (Business) and $300 a month (Advanced), both with a 14-day trial and Dub Links included. Enterprise is custom-priced with a demo.