vs Dub

Lua vs Dub

This is the comparison where the honest answer is least convenient for us. Dub is open source, self-hostable, developer-first, and well built. Most of the arguments Lua makes against a closed shortener do not land here, because Dub already agrees with them. What is left is a narrower question about scope and how much product you want around the link, and that is the question this page tries to answer rather than dodge.

Why switch

Why people leave Dub

A smaller surface to run

Dub has grown well beyond links into a broader platform. If you want a shortener and its analytics and nothing else, Lua is less to deploy, less to configure and less to keep upgraded.

MySQL as well as PostgreSQL

Lua runs on either, which matters if you self-host onto infrastructure you already have rather than choosing a database for one service.

A Laravel codebase

If your team writes PHP, extending Lua is a Tuesday afternoon rather than a new stack to learn. If your team writes TypeScript, that argument runs the other way and you should weigh it accordingly.

Feature by feature

How Lua compares

Feature comparison between Lua and Dub
FeatureLuaDub
Open sourceYesYes
Self-hostingYesYes
Custom domainsIncludedIncluded
Click analyticsCountry, region, city, device, browser, OS, referrer, UTMComparable, plus more
REST APIIncludedIncluded
MCP serverIncludedAvailable
StackLaravel and Vue, PostgreSQL or MySQLNext.js and TypeScript
ScopeLinks and their analyticsA broader link platform

Pricing

Pricing, side by side

Pricing comparison between Lua and Dub
TierLuaDub
Getting startedFree tierFree tier
Self-hostingFree, your serverFree, your server
HostedPaid plansPaid plans

Honest fit

Who each one actually suits

Switch if you

  • Write PHP and want to extend the thing you run
  • Want to self-host onto MySQL rather than adopt PostgreSQL for one service
  • Want a shortener and its analytics, not a platform around them

Stay on Dub if you

  • Already run it and it works, because the gap does not justify a migration
  • Write TypeScript and want to modify the codebase
  • Use the parts of it that reach past links
  • Want the larger ecosystem and integration surface

Ask AI

Still deciding on a shortener?

Ask a neutral AI to weigh Lua against the alternatives. The comparison pages are public, so it has something real to read.

Make your first link in a minute

Sign up, paste a URL, and watch the clicks arrive. Bring a domain whenever you are ready.