🚀 Launch Week is coming June 23-27.
Get updates.
Back to templates

URL Shortener

Build an URL shortener with Dub and Tinybird

URL Shortener

Dub is an open-source link management platform for tracking link clicks and conversions.

You can use the managed cloud version at Dub.co or host it yourself.

Set up Dub locally

Read this guide to set up Dub locally.

Host Dub yourself

Read this guide to host it yourself.

Customize the Tinybird project

If you are just interested in the Tinybird project, you can find it here

Build locally like any other Tinybird project:

Copy
cd packages/tinybird
tb local start
tb login
tb dev

When you are ready deploy to cloud:

Copy
tb --cloud deploy

Generate mock data

You can find sample mock data for local development in the data-generator folder.

Alternatively, you can generate mock data by running the generate.js script in that folder:

Copy
npm install
node generate.js

Skip the infra work. Ship your first API today.

Read the docs
Tinybird wordmark