Skip to content

Slink 1.0.0

Choose a tag to compare

@pardel pardel released this 27 Sep 13:09
· 2 commits to main since this release

The first tagged release of Slink, a self-hosted link shortener with click analytics that runs on Cloudflare Workers and D1 at zero recurring cost.

What's in it

  • Short links on your own domain: example.com/<slug> redirects (302) and passes UTM parameters through to the target.
  • A public page at / listing your newest links (10 by default, pinned first), with an optional "Links by ..." owner line. Hide a link from it without breaking the redirect.
  • Link preview: add + to any short link (example.com/<slug>+) to see where it goes before following it. No click is logged.
  • A dashboard on a separate admin host behind Cloudflare Access: create, edit, archive, pin and hide links, and download a QR code for each.
  • Analytics per link and across all links: clicks, unique visitors, countries, devices, browsers, referrers and a daily series, for 7 days, 30 days, all time or a custom range.
  • Privacy by default: only the referrer's origin is stored, visitor hashes use a daily salt, and clicks older than 180 days are pruned automatically.
  • A strict security policy: nothing is loaded from third parties, and fonts and QR codes are generated on your own domain.

Getting started

Clone, copy wrangler.jsonc.template to wrangler.jsonc, and follow the README's Deploy and Cloudflare Access sections.

MIT licensed.