ReSlug

Short links with click analytics, routing rules, QR codes, and bio pages

YES · focused build
price $9/mosubscription / year $108estimated build time one sittingreplaced by 0 people

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.

Build verification: not recorded. How we judge buildability

What you give up

  • 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

Why people still pay

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.

Your build guide

The stack, security requirements, and agent rules for a focused replacement.

Before you start

  • A Cloudflare account, Workers/KV/D1 access, Wrangler and a domain the owner controls. Verify current service quotas and configure secrets outside wrangler.toml.
  • Implementation components: Cloudflare Workers and TypeScript with D1 as the authoritative link-definition/revision store, including a unique slug constraint; bounded clicks also live in D1. KV is an eventually consistent redirect cache derived from committed D1 definitions, with publication/reconciliation status for each revision. Wrangler-managed bindings/secrets, owner-authenticated administration and generated QR assets.
  • Scope boundary: Domain renewal and Cloudflare account limits remain operational responsibilities.
01
Cloudflare Workers and TypeScript with D1 as the authoritative link-definition/revision store, including a unique slug constraint; bounded clicks also live in D1.
02
KV is an eventually consistent redirect cache derived from committed D1 definitions, with publication/reconciliation status for each revision.
03
Wrangler-managed bindings/secrets, owner-authenticated administration and generated QR assets.
04
Domain model: authoritative D1 link definitions with unique slugs, revisions and publication state, derived KV redirect cache records, D1 click observations, routing rules and QR exports
engineering roadmap

Implementation plan

1

Phase 1

Scope and fixtures. Implement this bounded workflow: Build a Workers redirect service with KV lookups and bounded D1 analytics. Support explicit country/device routing with a default URL, a stable QR endpoint and owner-only link management. Record prerequisites, select representative user-owned fixtures and document the unsupported features: Domain renewal and Cloudflare account limits remain operational responsibilities.

2

Phase 2

Durable model. Model authoritative D1 link definitions with unique slugs, revisions and publication state, derived KV redirect cache records, D1 click observations, routing rules and QR exports Add migrations or a versioned document format, explicit validation, stable IDs and a visible import-error report. Preserve this rule: KV propagation is eventually consistent and must be disclosed; a logging failure cannot prevent a redirect and sensitive query strings are not stored.

3

Phase 3

Complete the first useful path. Implement the workflow's input, review and output interface, with clear controls and explicit empty/error states. Create a unique slug and revision in authoritative D1 first; a conflicting insert fails rather than replacing the link. Publish that revision to KV with an observable pending/published status and reconcile failed publications. Disclose cache propagation delay. Redirects do not wait for analytics; failed click logging does not break the destination.

4

Phase 4

Permissions and integration failure. Protect management with authenticated sessions and CSRF checks; validate redirect destinations and store no raw IPs or sensitive query strings. Bound public write/analytics payloads. Request integration credentials and permissions only for the enabled feature; show a disconnected state instead of mock results.

5

Phase 5

Portable handoff. Export canonical D1 link definitions, revision/publication status and click records; back up configuration separately from secrets. Rebuild KV only from committed D1 definitions and reconcile the cache revision before declaring restoration complete. Include setup, operating limits, fixture walkthrough and shutdown/restart instructions in the README.

6

Phase 6

Acceptance scenarios. A missing country falls back to the default destination; a duplicate custom slug is rejected and a D1 outage leaves redirects working. Repeat the workflow after restart and with a denied permission or unavailable dependency; show recoverable failure rather than a success placeholder.

the pro prompt
download AGENTS.md
WORKING SLICE
Build a Workers redirect service with KV lookups and bounded D1 analytics. Support explicit country/device routing with a default URL, a stable QR endpoint and owner-only link management.

Build this scoped ReSlug-inspired workflow with a documented data model and visible failure states.

Architecture
- Cloudflare Workers and TypeScript with D1 as the authoritative link-definition/revision store, including a unique slug constraint; bounded clicks also live in D1.
- KV is an eventually consistent redirect cache derived from committed D1 definitions, with publication/reconciliation status for each revision.
- Wrangler-managed bindings/secrets, owner-authenticated administration and generated QR assets.

Prerequisites and limits
A Cloudflare account, Workers/KV/D1 access, Wrangler and a domain the owner controls. Verify current service quotas and configure secrets outside wrangler.toml.
Outside this release: Domain renewal and Cloudflare account limits remain operational responsibilities.

Data model and correctness
authoritative D1 link definitions with unique slugs, revisions and publication state, derived KV redirect cache records, D1 click observations, routing rules and QR exports
Invariant: KV propagation is eventually consistent and must be disclosed; a logging failure cannot prevent a redirect and sensitive query strings are not stored.
Create a unique slug and revision in authoritative D1 first; a conflicting insert fails rather than replacing the link. Publish that revision to KV with an observable pending/published status and reconcile failed publications. Disclose cache propagation delay. Redirects do not wait for analytics; failed click logging does not break the destination.

Security and privacy
Protect management with authenticated sessions and CSRF checks; validate redirect destinations and store no raw IPs or sensitive query strings. Bound public write/analytics payloads.

Recovery and export
Export canonical D1 link definitions, revision/publication status and click records; back up configuration separately from secrets. Rebuild KV only from committed D1 definitions and reconcile the cache revision before declaring restoration complete.

Implementation order
1. Phase 1 — Scope and fixtures. Implement this bounded workflow: Build a Workers redirect service with KV lookups and bounded D1 analytics. Support explicit country/device routing with a default URL, a stable QR endpoint and owner-only link management. Record prerequisites, select representative user-owned fixtures and document the unsupported features: Domain renewal and Cloudflare account limits remain operational responsibilities.
2. Phase 2 — Durable model. Model authoritative D1 link definitions with unique slugs, revisions and publication state, derived KV redirect cache records, D1 click observations, routing rules and QR exports Add migrations or a versioned document format, explicit validation, stable IDs and a visible import-error report. Preserve this rule: KV propagation is eventually consistent and must be disclosed; a logging failure cannot prevent a redirect and sensitive query strings are not stored.
3. Phase 3 — Complete the first useful path. Implement the workflow's input, review and output interface, with clear controls and explicit empty/error states. Create a unique slug and revision in authoritative D1 first; a conflicting insert fails rather than replacing the link. Publish that revision to KV with an observable pending/published status and reconcile failed publications. Disclose cache propagation delay. Redirects do not wait for analytics; failed click logging does not break the destination.
4. Phase 4 — Permissions and integration failure. Protect management with authenticated sessions and CSRF checks; validate redirect destinations and store no raw IPs or sensitive query strings. Bound public write/analytics payloads. Request integration credentials and permissions only for the enabled feature; show a disconnected state instead of mock results.
5. Phase 5 — Portable handoff. Export canonical D1 link definitions, revision/publication status and click records; back up configuration separately from secrets. Rebuild KV only from committed D1 definitions and reconcile the cache revision before declaring restoration complete. Include setup, operating limits, fixture walkthrough and shutdown/restart instructions in the README.
6. Phase 6 — Acceptance scenarios. A missing country falls back to the default destination; a duplicate custom slug is rejected and a D1 outage leaves redirects working. Repeat the workflow after restart and with a denied permission or unavailable dependency; show recoverable failure rather than a success placeholder.

Acceptance
A missing country falls back to the default destination; a duplicate custom slug is rejected and a D1 outage leaves redirects working.
Use real source data or clearly labeled fixtures. Explain unsupported input and provider failures; do not fabricate analytics, delivery receipts, accuracy claims or security guarantees.

Optional agent guidance
Optional external skill: [sharp-edges](https://github.com/trailofbits/skills/blob/main/plugins/sharp-edges/skills/sharp-edges/SKILL.md) — Review security-sensitive APIs and configuration for dangerous defaults and easy-to-misuse interfaces. Review its instructions and compatibility before use; it does not grant deployment, data-access or publication permission.
Optional external skill: [web-design-guidelines](https://github.com/vercel-labs/agent-skills/blob/main/skills/web-design-guidelines/SKILL.md) — Review web interfaces for accessibility, keyboard focus, forms, navigation and interaction quality. Review its instructions and compatibility before use; it does not grant deployment, data-access or publication permission.
Project rule — data model: authoritative D1 link definitions with unique slugs, revisions and publication state, derived KV redirect cache records, D1 click observations, routing rules and QR exports
Project rule — preserve this invariant: KV propagation is eventually consistent and must be disclosed; a logging failure cannot prevent a redirect and sensitive query strings are not stored.
Project rule — acceptance evidence: A missing country falls back to the default destination; a duplicate custom slug is rejected and a D1 outage leaves redirects working.

$ open in your agent (prompt prefilled, you press enter), copy the prompt or copy or download AGENTS.md

share on X ↗

Alternatives to building your own

Short.ioShort links, analytics, QR codes, mobile routing and link-in-bio pages on a genuinely useful free plan.$0free↗

no votes, no pay-to-list · just what's real

ReSlug pricing

planmonthlyannual (per mo)what you get
free$0/workspace$0/workspace500 active links, 1,000 tracked clicks/month, 1 custom domain, 30-day analytics, 1 bio page, 25 tags, 3 folders, a 100-row CSV import/upload cap, 1 seat, and 50 lead captures/month
pro$9/workspace$6.58/workspaceUnlimited links and tracked clicks, 10 custom domains, 365-day analytics, 5 bio pages, 10 API keys at 200 requests/minute, a 1,000-row CSV import/upload cap, and 5 seatsAnnual price is $79/year, equivalent to $6.58/month.

free tier500 active links; 1,000 tracked clicks/month; 1 custom domain; 30-day analytics; 1 bio page; 25 tags; 3 folders; 100-row CSV import/upload cap; 1 seat; 50 lead captures/month

billingmonthly + annual ($79/year, about 27% below $9 monthly); auto-renewal terms were not numerically detailed on the pricing page

pricing sources checked 2026-08-12 · pricing source ↗

Questions about ReSlug

Can you build your own ReSlug with AI?

The verdict is yes for the scoped workflow. 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.

What does the ReSlug build prompt cover?

The prompt starts with this scope: Build a Workers redirect service with KV lookups and bounded D1 analytics. Support explicit country/device routing with a default URL, a stable QR endpoint and owner-only link management. Full-product capabilities excluded from the comparison include: 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. Follow the implementation plan and its prerequisites before expanding the build.

How do I use the prompt, AGENTS.md and agent skills?

Start with the ReSlug prerequisites and stack, then copy the prompt into your coding agent. Save the project rules as AGENTS.md in the project root. Linked skills are optional packages or source instructions for specific tasks; review their current contents and install only those matching the chosen stack. A skill does not supply API credentials or verify the finished app.

How long will this ReSlug project take?

The catalogue estimate is one sitting for the limited scope. Setup, integration approvals, debugging, deployment and ongoing maintenance can add time. This is an estimate, not a delivery guarantee.

What would I give up by replacing ReSlug?

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. 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.

What price is this guide comparing against?

The recorded Pro plan is $9/mo (monthly), checked 2026-08-03. Check the linked pricing source before buying. Building your own also has hosting, API and maintenance costs; the recorded amount is not a guaranteed saving.

What can I use instead of building ReSlug?

Short.io: Short links, analytics, QR codes, mobile routing and link-in-bio pages on a genuinely useful free plan. Check each option's license, hosting needs and feature limits.

Every week, more subscriptions die.

New verdicts, new prompts, the week's most-doomed apps.
One email. Unsubscribe in one click.

last week:100 Questions · KINDA1of10 · KINDA1Password · KINDA+1090 more

free forever · no scanner spam · the prompt stays on the site, the deaths come to you

$weekly: what got a verdict, what died.