Giter Site home page Giter Site logo

rajkishancode / dub Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dubinc/dub

0.0 0.0 0.0 17.05 MB

An open-source link shortener with built-in analytics + free custom domains.

Home Page: https://dub.co

License: GNU Affero General Public License v3.0

JavaScript 0.81% TypeScript 89.38% CSS 0.44% MDX 9.37%

dub's Introduction

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

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

Twitter Hacker News License

Introduction · Local Development · 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

Local Development

To develop Dub locally, you will need to clone this repository and set up all the env vars outlined in the .env.example file.

Once that's done, you can use the following commands to run the app locally:

yarn
yarn build
yarn dev

We're planning to add a proper, well-documented self-hosting guide for Dub soon – stay tuned!

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.

Repo Activity

Dub.co repo activity – generated by Axiom

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.

dub's People

Contributors

steven-tey avatar snazzah avatar max-programming avatar fmerian avatar tomheaton avatar ynbh avatar vinaykulk621 avatar msmps avatar matytyma avatar desyed avatar itsmingjie avatar matthewstanciu avatar jparkrr avatar chronark avatar theabhayprajapati avatar eltociear avatar imbios avatar mxkaske avatar shuding avatar styfle avatar vahnag avatar cosmiclasagnadev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.