dubinc

    dubinc/dub

    #491 this week

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

    database
    web
    frontend
    clickhouse
    mysql
    nextjs
    open-source
    planetscale
    TypeScript
    NOASSERTION
    24.8K stars
    3.3K forks
    24.8K GitHub watchers
    Updated 9/17/2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Use Cases & Benefits

    • Provides a modern, open-source platform for link attribution, short links, conversion tracking, and affiliate program management.
    • Enables self-hosting for full data control and integrates with a robust tech stack including Next.js, Prisma, and PlanetScale for scalable analytics.
    • Use for marketing teams needing detailed click and conversion tracking across multiple campaigns and channels.
    • Use for developers building custom short link services with integrated affiliate program support and real-time analytics.
    • Use for organizations requiring a self-hosted solution to maintain data privacy while leveraging advanced link attribution features.

    About dub

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

    Dub

    The open-source link attribution platform.
    Learn more »

    Introduction · Tech Stack · Self-hosting · Contributing

    Twitter Hacker News License


    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

    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:

    PackageVersion
    nodev23.11.0
    pnpm9.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):

    cd apps/web
    pnpm run script dev/seed
    

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

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

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

    Repo Activity

    Dub repo activity – generated by Axiom

    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.

    Discover Repositories

    Search across tracked repositories by name or description