A short link is a small thing, but it sits between you and your audience. When you print a QR code on a poster or put a link in a campaign email, the shortener decides where people land, how long the link lives, and who gets to see the click data. With a hosted service, that is a third party. The link is on their domain, the statistics are in their dashboard, and the link works for as long as their product and your plan allow.
Running your own shortener solves this, but many self-hosted options ask for a database server, a cache and a separate frontend build before the first redirect works.
shortlink is a self-hosted URL shortener in one binary. It stores everything in SQLite, supports custom slugs and expiry, draws QR codes, records click analytics per day, referrer, browser and device, and has an admin UI embedded in the binary. There is no JavaScript framework, no external service and no cgo.…