How We Built a Zero-Bandwidth Cross-Border Network Speed, Jitter & Browser Fingerprint Auditor with Cloudflare Speedtest + FingerprintJS v5 (MIT)
Many developers and cross-border operators running Claude Code, WhatsApp Business, TikTok Shop, or Meta Business Manager run into sudden account restrictions — not because of bad content, but because of high network jitt
Many developers and cross-border operators running Claude Code, WhatsApp Business, TikTok Shop, or Meta Business Manager run into sudden account restrictions — not because of bad content, but because of high network jitter, unstable shared proxies, WebRTC IP leaks, or timezone/language fingerprint mismatches.
Instead of asking users to install desktop probes or paying high egress bandwidth bills to host our own speedtest servers, we built a 100% browser-side, zero-backend diagnostic workbench on top of two battle-tested MIT open-source libraries:
-
@cloudflare/speedtest(v1.17, MIT) — runs multi-phase latency, jitter, download, and upload benchmarks directly against Cloudflare's global edge network (zero bandwidth cost on our origin server, withlogAimApiUrl: nullto keep user telemetry off). -
@fingerprintjs/fingerprintjs(v5.3, MIT) — computes real browser fingerprint entropy across 40+ signals (Canvas, WebGL, Audio, screen, platform, timezone, languages) entirely locally. -
Native WebRTC STUN ICE Probe — checks whether
RTCPeerConnectionexposes local LAN or unexpected public IP candidates.
Try the free live tool (no login, zero upload): https://ai.wanhe.info/tools/network-check/
Open-source cross-border ops toolkit (MIT on GitHub): https://github.com/wanhelove-max/wanhe-global-ops-env-kit
Key Architecture Lessons
-
Keep speedtest lazy-loaded: In Astro + React, dynamically importing
@cloudflare/speedtestinside the click handler keeps the initial page bundle tiny (~11.8 kBgzipped chunk loaded only on demand). -
Disable AIM telemetry for privacy: Passing
logAimApiUrl: nullensures measurements stay strictly between the user's browser and the edge test endpoints. -
Translate raw numbers into actionable verdicts: Mapping
upload >= 8 Mbps && jitter <= 25 msdirectly to a TikTok Live / Claude stability verdict makes the diagnostic immediately actionable.
const SpeedTest = (await import("@cloudflare/speedtest")).default;
const engine = new SpeedTest({
autoStart: false,
logAimApiUrl: null,
measurements: [
{ type: "latency", numPackets: 10 },
{ type: "download", bytes: 1e5, count: 4, bypassMinDuration: true },
{ type: "download", bytes: 1e6, count: 4 },
{ type: "upload", bytes: 1e5, count: 4, bypassMinDuration: true },
{ type: "upload", bytes: 1e6, count: 3 },
],
});
engine.play();
Companion Open-Source Tools
If you also work with Meta / TikTok / Google Ads or manage overseas accounts safely, we open-sourced two companion MIT tools:
- Ad Copy Compliance Radar & ROAS CSV Watchdog (130+ EN/CN rules + Python CLI): Live Tool · GitHub Repo (MIT)
- Zero-Network Offline 2FA & Credential Parser: Live Tool · GitHub Repo (MIT)
- WANHE Studio (Node-based AI creative canvas for e-commerce visuals): https://wanhe.info/
Feedback and PRs are welcome!
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.