Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

dub

> 前端框架
Open source

The modern link attribution platform. Loved by world-class marketing teams like Framer, Perplexity, Superhuman, Twilio, Buffer and more.

24.2K stars0 likes0 views
WebsiteGitHub

About

The modern link attribution platform. Loved by world-class marketing teams like Framer, Perplexity, Superhuman, Twilio, Buffer and more.

Dub

The open-source link attribution platform.
Learn more »

Introduction · Tech Stack · Self-hosting · Contributing


Introduction

Dub is the modern, open-source link attribution platform for short links, conversion tracking, and affiliate programs.

Our platform powers 100M+ clicks and 2M+ links monthly, and is used by world-class marketing teams from companies like Twilio, Buffer, Framer, Perplexity, Vercel, Laravel, and more.

Tech Stack

  • Next.js – framework
  • TypeScript – language
  • Tailwind – CSS
  • Prisma – ORM
  • Upstash – redis
  • Tinybird – analytics
  • PlanetScale – database
  • NextAuth.js – auth
  • BoxyHQ – SAML/SSO
  • Turborepo – monorepo
  • Stripe – payments
  • Resend – emails
  • Vercel – deployments

Self-Hosting

You can self-host Dub for greater control over your data and design. Read this guide to learn more.

Contributing

We love our contributors! Here's how you can contribute:

  • Open an issue if you believe you've encountered a bug.
  • Follow the local development guide to get your local dev environment set up.
  • Make a pull request to add new features/make quality-of-life improvements/fix bugs.

Recommended Versions

Package Version
node v23.11.0
pnpm 9.15.9

Common Local Development Issues

  • The table <table-name> does not exist in the current database. - Run pnpm prisma:push push the state of the Prisma schema file to the database without using migrations files.
  • The project is not building correctly locally - verify your versions of node and pnpm match the recommended versions above. Delete all node_modules, .next, and .turbo directories in the apps and packages directory. You may now reinstall node_modules by running pnpm install and attempt to rebuild the project with pnpm build.

Dev Seed Script

This script seeds the database with development data for testing and development purposes.

Basic seeding (adds data without deleting existing data):

bash
cd apps/web
pnpm run script dev/seed

Truncate database before seeding (deletes all existing data first):

bash
cd apps/web
pnpm run script dev/seed --truncate

When using --truncate, the script will ask for confirmation before deleting any data.

Repo Activity

License

Dub Technologies, Inc. is a commercial open-source company, which means some parts of this open-source repository require a commercial license. The concept is called "Open Core" where the core technology (99%) is fully open source, licensed under AGPLv3 and the last 1% is covered under a commercial license ("/ee" Enterprise Edition) which we believe is entirely relevant for larger organisations that require enterprise features. Enterprise features are built by the core engineering team of Dub Technologies, Inc., which is hired full-time.

Issues· 150 open

View all issuesOpen on GitHub
  • #4576

    Domain Transfer Leaves `linksUsage` & `totalLinks` Permanently Desynchronized

    Updated Sep 29, 2026
  • #4575

    Runtime `PrismaClientValidationError` in Payout Reconciliation Cron Job

    Updated Sep 28, 2026
  • #4571

    Deferred deep linking: /track/open IP fallback can return the wrong link and never consumes clicks

    Updated Sep 25, 2026
  • #4568

    [FEATURE] Add analytics investigation capabilities to the Dub MCP server

    Updated Sep 25, 2026
  • #4495

    Local dev: blank `STRIPE_SECRET_KEY` in `.env.example` causes 500 on workspace API routes

    Updated Sep 24, 2026
  • #4463

    Add PageContent wrapper to Referrals page

    Updated Sep 6, 2026
  • #182

    [Feature] 301 and 302 redirect

    enhancementUpdated Sep 4, 2026
  • #4337

    Open Redirect via Unrestricted redir_url Parameter on All Short Links

    Updated Sep 4, 2026
  • #4388

    Prevent arbitrary redirects through `redir_url` on short links

    Updated Sep 4, 2026
  • #4406

    [BUG] on safari it doesn't work

    Updated Aug 27, 2026

> Tags

TypeScriptclickhousemysqlnextjsopen-source

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架