Skip to content

Quickstart: Create Your First Branded Link

Deploy a production short link with a custom slug and verify edge redirect latency and telemetry in under 3 minutes.

Quickstart: Create Your First Branded Link

Create an edge-routed short link with a custom slug, verify HTTP 308 redirect execution, and inspect real-time click telemetry in under 3 minutes.


Prerequisites

  • An active Shaf account on dash.shaf.app.
  • A terminal with curl or a modern web browser.

Step-by-Step Instructions

  1. Open the Link Creation Dialog

    Navigate to dash.shaf.app/dashboard/links and click Create Link (or press keyboard shortcut C).

    Configure the link parameters in the dialog:

    • Destination URL: https://github.com/meladhani01/shaf
    • Short Link Slug: edge-guide
    • Domain: shaf.is

    Click Create Link to persist the record across Cloudflare D1 and write-through to Anycast KV.

    Expected output: The dashboard renders the new link card:

    Short URL:    https://shaf.is/edge-guide
    Destination:  https://github.com/meladhani01/shaf
    Status:       Active
    Clicks:       0
  2. Verify Edge HTTP 308 Redirect

    Execute a curl request against the short URL to verify header resolution without following the redirect:

    curl -I https://shaf.is/edge-guide

    Expected output:

    HTTP/2 308 Permanent Redirect
    location: https://github.com/meladhani01/shaf
    cf-cache-status: HIT
    cache-control: public, max-age=86400, stale-while-revalidate=604800
  3. Trigger Navigation and Verify Telemetry

    Send a test request following redirects to record an access event:

    curl -sL -o /dev/null -w "%{http_code} %{url_effective}\n" https://shaf.is/edge-guide

    Expected output:

    200 https://github.com/meladhani01/shaf

    Open dash.shaf.app/dashboard/analytics in your browser. The live analytics stream registers the visit:

    • Total Clicks: Incremented to 1.
    • Geographic Country: Matches your current IP egress location.
    • User-Agent / Device: Categorized by client runtime (curl or browser engine).

Next Steps

Apply advanced link management and custom routing configurations:

Type to search…

↑↓ navigate↵ selectEsc close