7,363 open-source and SaaS tools, with GitHub stats refreshed every day.

Dub

Open source

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.

dub.co
Dub homepage screenshot
GitHub stars
25k
Last commit
today
Repository age
4 years
Licence
Custom
Self-hosted
Yes

About Dub

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

Good fit for

  • โ†’Tracking which campaigns drive signups
  • โ†’Running a partner or affiliate program
Tags
link-shortener
attribution
analytics
affiliate
marketing
nextjs
typescript
self-hosted

Dub: questions and answers

What is Dub used for?
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. It is a good fit for tracking which campaigns drive signups and running a partner or affiliate program.
Is Dub open source?
Yes. Dub is open source under a custom licence. Its source code is on GitHub at dubinc/dub and is written mainly in TypeScript.
Is Dub free?
Yes. Dub is open source, so the software itself is free to use under the terms of its own licence. A managed cloud version is also available, with paid plans from $90 per month.
Can I self-host Dub?
Yes. Dub can be self-hosted on your own server or infrastructure.
What is Dub an alternative to?
Dub is an open-source alternative to Bitly, Rebrandly, Short.io and impact.com. Other open-source alternatives to Bitly include YOURLS, Kutt and Sink.
Is Dub actively maintained?
Yes. The most recent commit to Dub was on 2 October 2026. The project has 25k stars on GitHub.

Open-source alternatives to Dub

See all

SaaS alternatives to Dub

See all