Portfolio
Infrastructure / SaaS Tool·2024

Link Routing & Deep Link System

Replaced a third-party link-in-bio tool with a custom edge-native system — full analytics, deep linking, and real-time slug control.

Delivered in 2 weeks for a European agency. Due to the NDA, we cannot disclose the client name — but the feedback could not have been better.

Cloudflare WorkersEdge ComputingDeep LinkingReactAnalytics

A quick look at the product before we get into the technical breakdown.

Admin · Creators
admin.links.example/creators
Links
Total Clicks (30d)
51,506
Active Creators
4
Deep Links On
11
Top Today
/creator_05
310 clicks
All
Active
Paused
Search…
5 creators
SlugPlatformsStatusClicks
C
/creator_05
vippt-br
InstagramYouTubeWebsite
Active18,450
Copy link···
C
/creator_01
us
InstagramTikTok
Active14,823
Copy link···
C
/creator_02
uklaunch
XWebsite
Active9,341
Copy link···
C
/creator_03
YouTube
Active6,702
Copy link···
C
/creator_04
paused
No active links
Paused2,190
Copy link···
Creator list, click counts, status and deep-link toggles.
Admin · Edit slug
admin.links.example/creator_05
Edit creator
/creator_05
Active
vippt-brlaunch
Cancel
Save
Profile
Name
Creator Five
Theme
warm
Bio
Short description that shows on the profile page.
Links
+ Add
Instagram
https://instagram.com/██████
Deep
Pin
YouTube
https://youtube.com/@██████
Deep
Pin
Website
https://example.com
Deep
Pin
Routing
KV readper request
Timer1100ms
BeaconsendBeacon
Notes
Ops can update links without redeploy. Changes propagate globally via KV.
Per-slug destination config and deep-link strategy.
Admin · Analytics
admin.links.example/analytics
Analytics
All creators
7d
14d
30d
90d
Export CSV
Export creators
Total clicks
19,860
Top device
iOS
Top creator
/creator_05
Countries
4
By device
iOS
12,450
Android
5,780
Desktop
1,630
By creator
/creator_05
18,450
/creator_01
14,823
/creator_02
9,341
/creator_03
6,702
Map
Countries
Globe preview
Daily clicks
Heatmap
Tap density
Daily volume + device split + top slugs.
Worker · Deep link
links.example/creator_05
creator_05
Links simples + deep link opcional por plataforma.
Instagram
YouTube
TikTok
Website
getallme.io/creator_05
Edge redirect flow with timed deep-link fallback for WKWebView.
< 5ms
Avg. redirect latency
Edge node closest to user
$5
Monthly infra cost
Cloudflare Workers Paid
< 60s
Config propagation
Global KV propagation
10M
Requests/month (free tier)
Workers Paid plan

A marketing agency managing dozens of creators needed to swap link destinations instantly — no platform dependency, no 24h propagation delays, no per-link billing. The harder constraint: Instagram's in-app browser (WKWebView) blocks Universal Links entirely, making deep linking to native apps unreliable with off-the-shelf solutions.

Built a stateless edge routing system on Cloudflare Workers + KV. Every slug resolves at the nearest edge node in under 5ms. Deep linking uses a timed JavaScript fallback pattern that survives WKWebView: attempts the native app URL scheme, waits 1000–1200ms for a visibilitychange signal, then redirects to the web fallback — bypassing the Instagram browser limitation entirely. A React admin panel lets non-technical operators manage all creators and toggle deep link behavior per-slug without any code deploy.

WKWebView kills Universal Links

Instagram's in-app browser silently blocks Universal Links. The solution: skip Universal Links entirely and use URL schemes with a 1000–1200ms JavaScript timer. Below 800ms the app switch doesn't complete; above 1500ms the UX degrades. The sweet spot is 1000–1200ms with a visibilitychange listener to cancel the fallback if the app opens successfully.

Analytics that survive redirects

Standard fetch calls are killed mid-flight when the page navigates away. All PostHog events use navigator.sendBeacon() — fire-and-forget, survives page unload, no dropped events regardless of redirect speed.

Zero-downtime config changes

Cloudflare KV propagates globally in under 60s without any redeploy. The Worker reads config on every request, so a slug destination update goes live across all edge nodes within a minute of saving.

OS-aware routing without server overhead

iOS and Android require entirely different deep link strategies (URL scheme vs. Android Intent URL). The Worker branches on User-Agent at the edge — no client-side JS needed for the routing decision, keeping the HTML payload minimal.

Cloudflare Workers
Edge routing & API
Cloudflare KV
Slug config storage
Cloudflare Analytics Engine
Click tracking & device breakdown
React
Admin panel SPA
Cloudflare Pages
Admin hosting
PostHog
Client-side event tracking via sendBeacon
TypeScript
End-to-end
Wrangler CLI
Deploy & KV management
< 5ms
Routing latency
$5 / mo
Infra cost
< 1s
Deploy time
5
Admin screens

Let's build it right.

Start a Project