• Stars
    star
    9,518
  • Rank 3,738 (Top 0.08 %)
  • Language
    TypeScript
  • License
    GNU Affero Genera...
  • Created over 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An open-source link shortener with built-in analytics + free custom domains.
Dub – an open-source link management tool for modern marketing teams to create, share, and track short links.

Dub

An open-source link management tool for modern marketing teams to create, share, and track short links.

Twitter Hacker News License

Introduction · Deploy Your Own · Tech Stack · Implementation · Contributing


Introduction

Dub is an open-source link management tool for modern marketing teams to create, share, and track short links. Built with Vercel Edge Functions, Upstash Redis, and PlanetScale MySQL.

Here are some of the features that Dub provides out-of-the-box:

Built-in Analytics

Dub provides a powerful analytics dashboard for your links, including geolocation, device, and browser information.

Analytics Dashboard

Custom Domains

You can easily configure custom domains on Dub – just add an A/CNAME record to your DNS provider and you're good to go. This is built on the Vercel Domains API.

Custom Domains

QR Code Generator

You can easily generate and customize QR codes for your links, which can be used for flyers, posters, powerpoint presentations, etc.

QR Code

OG Image Proxy

Add a custom OG image in front of your target URL. Bots like Twitter/Facebook will be served this image, while users will be redirected to your target URL.

OG Image Proxy

Deploy Your Own

Note: one-click deployment is a bit broken at the moment – you'll need to change some of the hard-coded values in the codebase to get it working. We're working on fixing this.

You can deploy your own hosted version of Dub for greater privacy & control. Just click the link below to deploy a ready-to-go version of Dub to Vercel.

Deploy with Vercel

Tech Stack

Implementation

Dub is built as a standard Next.js application with Middleware to handle multi-tenancy, inspired by the Vercel Platforms Starter Kit.

Redis is used as the caching layer for all short links.

Clickhouse (Tinybird) is used as the analytics database for storing link click data.

MySQL is used as the database for storing user data, project data, and link metadata. You can refer to the Prisma schema here.

Contributing

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

  • Open an issue if you believe you've encountered a bug.
  • Make a pull request to add new features/make quality-of-life improvements/fix bugs.

Author

License

Inspired by Plausible, Dub is open-source under the GNU Affero General Public License Version 3 (AGPLv3) or any later version. You can find it here.

More Repositories

1

novel

Notion-style WYSIWYG editor with AI-powered autocompletion.
TypeScript
12,202
star
2

precedent

An opinionated collection of components, hooks, and utilities for your Next.js project.
TypeScript
4,721
star
3

chathn

Chat with Hacker News using natural language. Built with OpenAI Functions and Vercel AI SDK.
TypeScript
1,143
star
4

extrapolate

Age transformation AI app powered by Next.js, Vercel, Replicate, Upstash, and Cloudflare R2 + Workers.
TypeScript
604
star
5

weathergpt

ChatGPT Plugin starter template built with Next.js 13 App Router, Edge Functions, and Vercel
TypeScript
331
star
6

spirals

Generate beautiful AI spiral art with one click. Powered by Vercel and Replicate.
TypeScript
292
star
7

og

Display headlines directly inside your news article's OG images.
TypeScript
172
star
8

shooketh

An AI bot built with the Vercel AI SDK, OpenAI gpt-3.5-turbo, and fine-tuned on Shakespeare's literary works.
TypeScript
123
star
9

novella

Example application using the Novel Editor.
TypeScript
92
star
10

prisma-server-actions

Demo app showing how you can use Prisma in Next.js Server Actions
TypeScript
30
star
11

moviebot

Code repository for Moviebot – an NLP-powered movie recommendation chatbot, written in Python, HTML/CSS and JavaScript & hosted on Vercel + AWS Lambda.
Python
21
star
12

steventey.com

TypeScript
16
star
13

portfolio

Github repo for my personal portfolio website, built with NextJS & Tailwind and proudly deployed on Vercel.
JavaScript
14
star
14

platformize

Official repo for the Platforms on Vercel project. Clone this repo to build your own Substack/Webflow clone with built-in multi-tenancy and custom domains. PRs welcome!
TypeScript
13
star
15

steven-tey.github.io

New personal portfolio website: https://steventey.com/
HTML
5
star
16

gitbook-edge-demo

TypeScript
4
star
17

docs

MDX
3
star
18

nextjs-boilerplate-69

JavaScript
2
star
19

sleek

Source code for Sleek, a web-app that automatically builds product pages, tracks inventory, and sends out newsletters every day.
Python
2
star
20

dub-test

TypeScript
2
star
21

owd-li

Link shortener for One Word Domains (https://www.oneword.domains), built in Flask and hosted on Vercel.
Python
2
star
22

router-bug-repro

JavaScript
1
star
23

edgedb

TypeScript
1
star
24

reviewing-a-pull-request

HTML
1
star
25

qstash-repro

TypeScript
1
star
26

middleware-latency

JavaScript
1
star
27

olaf

Portfolio website for MLH Open-source Olaf Pod! ☃️
JavaScript
1
star
28

missing-auth-header

TypeScript
1
star