[verdict][prompt curatoriat][sursă: reslug.com][traducere: la coadă]
Pot să vibecodez ReSlug?
// o sesiune și o versiune personală pe care chiar o folosești
The redirect is a slug, a lookup, a 302, and a row in a table · Cloudflare Workers with KV and D1 does the whole job on the free tier, and the QR code is one library call. Routing rules, expiry, and password links are an afternoon more. What you cannot build in a sitting is permanence: your links only outlive the project if you keep renewing the domain and the account. The wrinkle with ReSlug specifically is that its free plan already includes a custom domain and real analytics at personal scale, so the DIY build is competing with 0 USD rather than 9 · build it for the ownership, not the savings.
încredere: ridicată
ce e: Short links with click analytics, routing rules, QR codes, and bio pages
Indice de constructibilitate · joc editorial
- Preț 9 $/lună greutate: plus 1
- Timp o sesiune greutate: plus 3
- Categorie analytics nu cântărește
- Moat calitatea execuției · scara infrastructurii greutate: minus 3
- Încredere ridicată greutate: plus 1
- Ce pierzi 5 elemente greutate: minus 2
- Site reslug.com (si apre in una nuova scheda) nu cântărește
Se anulează. E cazul în care decide cât de tare te enervează abonamentul.
Gioco editoriale: il verdetto dice se un agente può, l’indice se conviene.
Ce construiești
Map a short slug to a destination, 302 to it, log each click with country, device, and referrer, filter obvious bots, and render a QR code for any link.
ce îți trebuie
- Cloudflare account (Workers, KV, D1)
- a domain you control
- wrangler CLI
Same build as Bitly · the difference is ReSlug's free tier already includes the custom domain, so check what you actually need before building anything.
Promptul
O sesiune cu un agent de coding și versiunea ta merge.
Build me a link shortener with click analytics and QR codes to replace ReSlug. 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. Drop clicks whose user-agent
matches a known bot list before they reach the stats.
- Per-link routing rules: an optional country-to-URL and device-to-URL map
checked before the default destination.
- Optional expiry date, click cap, and password per link · expired or capped
links 302 to a fallback URL I set, password links show a minimal form first.
- 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.
- An /admin page behind one password (wrangler secret) listing links with
clicks per day, top countries, top referrers, and device split per link.
- Secrets via wrangler secret, never in wrangler.toml. No accounts, no
third-party analytics, no telemetry.
- Out of scope: bio pages, teams, and a public API.
- 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. Prompt curatoriat: scris și revizuit manual pentru această aplicație. În engleză intenționat — e limba în care agenții de coding se descurcă cel mai bine.
Ce pierzi
- links that outlive your own infrastructure · a domain you stop renewing takes every link with it
- bot filtering that actually works · the heuristics take iteration you will not do for one project
- geo and device routing rules, scheduled links, and click caps behind a dashboard instead of a config file
- bio pages and branded QR codes
- a REST API and webhooks other tools can call
De ce se plătește în continuare
The redirect was never the product. What the subscription buys is a redirect that stays up when your side project does not, analytics you did not have to build or debug, and routing, expiry, and password controls behind a dashboard instead of a config file. ReSlug's own twist is that most of that is on the free plan, custom domain included, so the paid tier is really about unlimited tracked clicks, longer analytics retention, and API access · the people paying 9 USD are past personal scale anyway.
moat: Calitatea execuției Scara infrastructurii ce e un moat
generous free tier · the hosted product undercuts the DIY build at personal scale
Alternative gratuite
N-ai chef să ți-o construiești? Astea există deja, sunt gratuite sau open source, și le-am verificat una câte una.
Cine l-a construit deja
Să pornești de aici e tot vibecoding: promptul e pentru când o vrei exact în felul tău.
- Dub (se deschide într-o filă nouă) — The most complete open-source link platform · analytics, custom domains, QR codes. Self-hostable. (alive)
- Shlink (se deschide într-o filă nouă) — Self-hosted URL shortener with a REST API, click stats, and QR codes. (alive)
- YOURLS (se deschide într-o filă nouă) — The long-running PHP shortener · drop it on any LAMP host and it works. (alive)
Ești de acord?
Balanța voturilor
Ancora nessun voto: il tuo è il primo.
Nessun voto ancora — il primo pesa.