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
curlor a modern web browser.
Step-by-Step Instructions
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- Destination URL:
Verify Edge HTTP 308 Redirect
Execute a
curlrequest against the short URL to verify header resolution without following the redirect:curl -I https://shaf.is/edge-guideExpected 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=604800Trigger 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-guideExpected output:
200 https://github.com/meladhani01/shafOpen 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 (
curlor browser engine).
- Total Clicks: Incremented to
Next Steps
Apply advanced link management and custom routing configurations:
Connect a Custom Domain
Map your branded subdomain (e.g. link.yourbrand.com) with automated TLS provisioning.
Programmatic REST API
Automate short link generation and analytics extraction via scoped API tokens.
Smart Device & Geo-Routing
Route iOS, Android, and desktop traffic to distinct destination endpoints.
Connect AI Agents (MCP)
Enable Claude Code, Cursor, and Windsurf to manage links through natural language.