Can I vibecode Bitly?

price $35/moyou'd save $420/yrbuild time one sittingcategory analyticsreplaced by 1 people
YES
MOATbrand trustinfrastructure scale

A slug, a lookup, a 302, and a row in a table. Cloudflare Workers plus KV and D1 does the whole job on the free tier, and QR codes are one library call. The only thing you are really buying is that bit.ly resolves links created in 2012 and will presumably still resolve them in 2032, which is an institutional promise rather than a technical one. If the links are going in a magazine ad or on packaging, that promise is worth something. If they are going in this week's newsletter, it is worth nothing, and Growth is 420 USD a year.

In-List Ad$79/30 days
promote your product in the vibecoded list

The Build Prompt

copy it and go build
ready to paste · 1,346 chars
Build me a link shortener with click analytics and QR codes to replace Bitly. Requirements:

- Cloudflare Workers via wrangler: KV for the slug lookup, D1 for the click
  log. Free tier, and it runs on my own domain.
- A worker on go.mydomain.com/{slug} reads KV and 302s, writing the click to
  D1 inside ctx.waitUntil so the redirect never waits on the database.
- Slugs are random 6-character base62 by default, but I can set a custom
  back-half, and creating one that already exists fails loudly instead of
  overwriting it.
- Log per click: slug, timestamp, country and city from request.cf,
  device type parsed from the user-agent, and referer.
- Generate a PNG QR code for any link with the qrcode npm package, served at
  /qr/{slug} and cached, so print material points at the same tracked link.
- Optional expiry and a click cap per link · past either, 302 to a fallback
  URL I set instead of returning a 404.
- An /admin page behind one password (wrangler secret) listing links with
  clicks per day, plus top countries and device split per link.
- Secrets via wrangler secret, never in wrangler.toml. No accounts, no
  third-party analytics, no telemetry.
- README: wrangler setup, the KV namespace and D1 database, the DNS record,
  and a warning that these links die with the domain, so use a domain you
  intend to keep renewing.
In-List Ad$79/30 days
promote your product in the vibecoded list

What you lose

  • Hosted infrastructure and managed operations from Bitly
  • The original service's mature integrations and ecosystem
In-List Ad$79/30 days
promote your product in the vibecoded list
Share on X ->Your vote helps rank the vibecoded list.

Questions

5 answers