• Skip to main content
  • Skip to secondary menu
  • Skip to footer

Exclusive.org

Digital ideas, domains and editorial insights

  • Sponsored Post
  • About
  • Contact
    • GDPR

BitSpeed.org: How to Build a Cloudflare Workers Speed Test — and Why the Domain Is the Real Asset

May 9, 2026 By admin

There is a category of domain that does not need much imagination to value. You read the name, you immediately know what it does, and you know who would pay for it. bitspeed.org is that kind of domain. Clean, technical, memorable, and sitting in a space — internet speed measurement — that has real institutional buyers: ISPs, network hardware vendors, telcos, SaaS monitoring companies.

The question is not whether the domain has value. The question is how to surface that value to the right buyer. The answer, in this case, is a working product. Not a parking page. Not a coming-soon placeholder. A functional, live internet speed test running at bitspeed.org, built on Cloudflare Workers, with zero hosting cost and a deployment time measured in hours.

This post covers both things at once: the domain case and the technical build. By the end, you will have a complete architectural blueprint you can execute yourself.


Why Cloudflare Workers

The architecture choice matters here because it reflects the domain’s identity. A speed test built on Cloudflare Workers is not a toy demo. Cloudflare operates over 300 points of presence worldwide, and a Worker executes at the PoP nearest to the user. That means latency measurements are honest — the probe hits real edge infrastructure, not a single origin server in a distant data center.

This is the same principle that makes Cloudflare’s own speed test at speed.cloudflare.com credible. You are borrowing that infrastructure. For a domain like bitspeed.org, that is a meaningful credibility signal to any technical buyer who looks under the hood.

The secondary benefit is operational: the Cloudflare Workers free tier covers 100,000 requests per day. A full speed test — ping, download, upload — consumes roughly three to five requests. That is 20,000 to 30,000 complete tests per day before any cost appears. For a domain showcase, this is effectively infinite.


The Architecture

The entire application lives in a single Worker script. No external origin server. No database. No CDN configuration beyond the Worker itself. The Worker handles four routes:

GET / serves the complete HTML, CSS, and JavaScript application inline — a single self-contained response. GET /ping returns a minimal one-byte response used for latency measurement. GET /download streams a configurable volume of generated bytes to the browser. POST /upload receives a binary payload from the browser and acknowledges the byte count received.

Nothing else is required. The Worker file structure is minimal:

bitspeed-worker/
├── wrangler.toml
├── package.json
└── src/
    └── index.js

The wrangler.toml configuration maps the Worker to the bitspeed.org domain:

name = "bitspeed"
main = "src/index.js"
compatibility_date = "2024-11-01"

routes = [
  { pattern = "bitspeed.org/*", zone_name = "bitspeed.org" }
]

For this to work, bitspeed.org must be on Cloudflare’s nameservers. GoDaddy supports NS delegation — you point the domain’s nameservers at Cloudflare, Cloudflare takes over DNS, and the Worker route activates.


The Three-Phase Test

The test runs in sequence: ping and jitter first, download second, upload third. Each phase has a distinct method.

Ping and jitter fires ten consecutive GET /ping requests. The browser records round-trip time for each using performance.now(). The first result is discarded — it includes connection establishment overhead that inflates the number. The remaining nine produce an average latency and a jitter figure derived from standard deviation. This is the same methodology serious speed test implementations use.

Download sends a GET /download?mb=25 request. The Worker responds with a streaming ReadableStream that pushes chunks of generated bytes in a controller loop. The browser consumes the stream using response.body.getReader(), sampling bytes received against elapsed time every 200 milliseconds. This produces a live Mbps readout that updates in real time during the test. Final throughput is computed from total bytes transferred over total wall time.

Upload generates a local ArrayBuffer in the browser — starting at 5 MB, scaling to 25 MB automatically if the connection is fast enough to warrant it — and POSTs it to /upload. The Worker reads the request body and acknowledges the byte count. The browser divides payload size by wall time to derive upload throughput. Auto-scaling the payload avoids wasting time on slow connections while ensuring accurate measurement on fast ones.


Server Location and ISP Detection

Every Cloudflare response includes a CF-Ray header in the format hash-IATA, where the IATA code identifies the PoP that handled the request. Parsing the last segment gives you the airport code — FRA for Frankfurt, SIN for Singapore, LAX for Los Angeles — which the UI displays as the server location. This is a small detail that adds significant credibility to the result.

The user’s IP is available from the cf-connecting-ip request header. ISP identification requires one outbound call from the Worker to a geolocation API such as ipapi.co, which returns ISP name and ASN. For a pure Workers-only build with no external dependencies, this can be omitted and displayed as a future enhancement.


The UI

The interface follows the established visual language of speed test applications because buyers and visitors will immediately recognize what they are looking at. The centerpiece is an arc gauge — an SVG semicircle that sweeps from zero to maximum as download or upload speed is measured. The needle position corresponds to current Mbps, and the number updates live during the test.

Below the gauge, three result cards display the final values: ping in milliseconds, download in Mbps, upload in Mbps. A status line above the gauge reads “Testing download… 47.3 Mbps” during measurement and settles to the result when the phase completes. The footer shows server location, user IP, and ISP name.

The visual goal is not to replicate Speedtest.net’s exact aesthetic. It is to produce something that looks intentional, professional, and purpose-built for the domain. A buyer encountering bitspeed.org should see a product, not a prototype.


Deployment

The full deployment sequence from zero to live is four steps. Install the Cloudflare Workers CLI with npm create cloudflare@latest bitspeed-worker. Write the Worker script and inline HTML. Run wrangler deploy. Point bitspeed.org’s nameservers at Cloudflare through GoDaddy’s DNS settings.

Build time for someone with basic JavaScript familiarity is three to four hours. Ongoing maintenance is zero — the Worker runs indefinitely with no servers to patch, no certificates to renew, no infrastructure to monitor.


The Domain Case

Speed testing has real institutional demand. ISPs use branded speed test tools for customer self-diagnosis, reducing support call volume. Hardware vendors embed them in router admin interfaces. Enterprise network monitoring companies use them as lightweight probes. Any of these buyers would find bitspeed.org immediately useful as a brand — the name communicates exactly what the product does without explanation.

The difference between a parked domain and a domain with a live product is not just aesthetic. It is the difference between a buyer having to imagine the use case and a buyer being able to see it. At the price point where .org domains in this space trade — typically five to fifteen thousand dollars for a clean, generic, on-brand name — the cost of building a proof-of-concept on Cloudflare Workers is negligible against the potential upside.

The technical work described in this post is not a business plan. It is a domain positioning strategy. BitSpeed.org running a real speed test is a more persuasive asking-price justification than any outreach email could be on its own.

Build it once. Let it run. Let the domain speak for itself.

BitSpeed.org — Full Cloudflare Workers Speed Test: The Complete Code

Two files. No build step. Deploy with wrangler deploy.


wrangler.toml

name = "bitspeed"
main = "src/index.js"
compatibility_date = "2024-11-01"

routes = [
  { pattern = "bitspeed.org/*", zone_name = "bitspeed.org" }
]

src/index.js

const HTML = `
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>BitSpeed — Internet Speed Test</title>
  <style>
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: #0a0a0f;
      color: #e0e0e0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      padding: 2rem;
    }
    h1 { font-size: 1.6rem; font-weight: 300; letter-spacing: .2em; color: #fff; margin-bottom: 2.5rem; }
    h1 span { color: #00c8ff; font-weight: 700; }
    .gauge-wrap { position: relative; width: 280px; height: 160px; margin-bottom: 1.5rem; }
    .gauge-wrap svg { width: 100%; height: 100%; }
    .track { fill: none; stroke: #1e1e2e; stroke-width: 18; stroke-linecap: round; }
    .arc  { fill: none; stroke: #00c8ff; stroke-width: 18; stroke-linecap: round;
            transition: stroke-dashoffset .15s ease; }
    .speed-num {
      position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
      font-size: 3rem; font-weight: 700; color: #fff; line-height: 1;
    }
    .speed-unit { font-size: .85rem; color: #888; text-align: center; margin-bottom: 2rem; letter-spacing: .1em; }
    .status { font-size: .95rem; color: #aaa; margin-bottom: 2.5rem; min-height: 1.4em; }
    .cards { display: flex; gap: 1.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; justify-content: center; }
    .card {
      background: #13131f;
      border: 1px solid #1e1e2e;
      border-radius: 12px;
      padding: 1.2rem 2rem;
      text-align: center;
      min-width: 110px;
    }
    .card-label { font-size: .7rem; letter-spacing: .12em; color: #666; text-transform: uppercase; margin-bottom: .4rem; }
    .card-val { font-size: 1.6rem; font-weight: 700; color: #fff; }
    .card-unit { font-size: .7rem; color: #555; }
    button {
      background: #00c8ff;
      color: #000;
      border: none;
      border-radius: 50px;
      padding: .85rem 3rem;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      letter-spacing: .05em;
      transition: opacity .2s;
    }
    button:disabled { opacity: .4; cursor: not-allowed; }
    .meta { margin-top: 2rem; font-size: .75rem; color: #444; text-align: center; line-height: 1.8; }
  </style>
</head>
<body>
  <h1><span>BIT</span>SPEED</h1>

  <div class="gauge-wrap">
    <svg viewBox="0 0 280 160" xmlns="http://www.w3.org/2000/svg">
      <path class="track" d="M 30 150 A 110 110 0 0 1 250 150"/>
      <path class="arc"  id="arc" d="M 30 150 A 110 110 0 0 1 250 150"
            stroke-dasharray="345" stroke-dashoffset="345"/>
    </svg>
    <div class="speed-num" id="num">—</div>
  </div>
  <div class="speed-unit" id="unit"></div>
  <div class="status" id="status">Press Go to begin</div>

  <div class="cards">
    <div class="card">
      <div class="card-label">Ping</div>
      <div class="card-val" id="r-ping">—</div>
      <div class="card-unit">ms</div>
    </div>
    <div class="card">
      <div class="card-label">Download</div>
      <div class="card-val" id="r-dl">—</div>
      <div class="card-unit">Mbps</div>
    </div>
    <div class="card">
      <div class="card-label">Upload</div>
      <div class="card-val" id="r-ul">—</div>
      <div class="card-unit">Mbps</div>
    </div>
  </div>

  <button id="btn" onclick="runTest()">Go</button>

  <div class="meta" id="meta"></div>

  <script>
    const arc    = document.getElementById('arc');
    const numEl  = document.getElementById('num');
    const unitEl = document.getElementById('unit');
    const status = document.getElementById('status');
    const btn    = document.getElementById('btn');
    const ARC_LEN = 345;

    function setGauge(mbps, max) {
      const pct = Math.min(mbps / max, 1);
      arc.style.strokeDashoffset = ARC_LEN - ARC_LEN * pct;
      numEl.textContent = mbps >= 1 ? mbps.toFixed(1) : mbps.toFixed(0);
    }
    function resetGauge() {
      arc.style.strokeDashoffset = ARC_LEN;
      numEl.textContent = '—';
      unitEl.textContent = '';
    }

    async function measurePing() {
      status.textContent = 'Measuring ping…';
      const times = [];
      for (let i = 0; i < 10; i++) {
        const t0 = performance.now();
        await fetch('/ping', { cache: 'no-store' });
        times.push(performance.now() - t0);
      }
      times.shift(); // discard first (connection warmup)
      const avg = times.reduce((a,b) => a+b, 0) / times.length;
      const jitter = Math.sqrt(times.map(t => (t - avg)**2).reduce((a,b) => a+b, 0) / times.length);
      document.getElementById('r-ping').textContent = avg.toFixed(0);
      return { ping: avg, jitter };
    }

    async function measureDownload() {
      status.textContent = 'Testing download…';
      unitEl.textContent = 'Mbps download';
      const MB = 25;
      const t0 = performance.now();
      let loaded = 0;
      const res = await fetch('/download?mb=' + MB, { cache: 'no-store' });
      const reader = res.body.getReader();
      let last = t0;
      while (true) {
        const { done, value } = await reader.read();
        if (done) break;
        loaded += value.byteLength;
        const now = performance.now();
        if (now - last > 200) {
          const mbps = (loaded * 8) / ((now - t0) / 1000) / 1e6;
          setGauge(mbps, 500);
          status.textContent = 'Download: ' + mbps.toFixed(1) + ' Mbps';
          last = now;
        }
      }
      const elapsed = (performance.now() - t0) / 1000;
      const mbps = (loaded * 8) / elapsed / 1e6;
      setGauge(mbps, 500);
      document.getElementById('r-dl').textContent = mbps.toFixed(1);
      return mbps;
    }

    async function measureUpload(dlMbps) {
      status.textContent = 'Testing upload…';
      unitEl.textContent = 'Mbps upload';
      const MB = dlMbps > 100 ? 25 : 5;
      const buf = new ArrayBuffer(MB * 1024 * 1024);
      crypto.getRandomValues(new Uint8Array(buf));
      const t0 = performance.now();
      await fetch('/upload', { method: 'POST', body: buf, cache: 'no-store' });
      const elapsed = (performance.now() - t0) / 1000;
      const mbps = (MB * 8) / elapsed;
      setGauge(mbps, 500);
      document.getElementById('r-ul').textContent = mbps.toFixed(1);
      return mbps;
    }

    async function runTest() {
      btn.disabled = true;
      resetGauge();
      ['r-ping','r-dl','r-ul'].forEach(id => document.getElementById(id).textContent = '—');
      document.getElementById('meta').textContent = '';
      try {
        const { ping } = await measurePing();
        const dlMbps = await measureDownload();
        await measureUpload(dlMbps);
        status.textContent = 'Done.';
        unitEl.textContent = '';
        numEl.textContent = '✓';
      } catch(e) {
        status.textContent = 'Error: ' + e.message;
      }
      btn.disabled = false;
    }

    // Fetch server location from CF-Ray on load
    fetch('/ping').then(r => {
      const ray = r.headers.get('cf-ray') || '';
      const pop = ray.split('-')[1] || '—';
      document.getElementById('meta').textContent = 'Server: ' + pop;
    });
  </script>
</body>
</html>
`;

// Generate random bytes for download test
function makeStream(bytes) {
  const CHUNK = 64 * 1024; // 64 KB chunks
  return new ReadableStream({
    start(controller) {
      let sent = 0;
      function push() {
        while (sent < bytes) {
          const size = Math.min(CHUNK, bytes - sent);
          controller.enqueue(new Uint8Array(size));
          sent += size;
          if (sent < bytes) { setTimeout(push, 0); return; }
        }
        controller.close();
      }
      push();
    }
  });
}

export default {
  async fetch(request) {
    const url = new URL(request.url);

    // Serve app
    if (url.pathname === '/') {
      return new Response(HTML, {
        headers: { 'Content-Type': 'text/html;charset=UTF-8' }
      });
    }

    // Ping endpoint
    if (url.pathname === '/ping') {
      return new Response('', {
        headers: {
          'Content-Type': 'text/plain',
          'Cache-Control': 'no-store',
          'Access-Control-Allow-Origin': '*'
        }
      });
    }

    // Download endpoint
    if (url.pathname === '/download') {
      const mb = Math.min(parseInt(url.searchParams.get('mb') || '25', 10), 100);
      const bytes = mb * 1024 * 1024;
      return new Response(makeStream(bytes), {
        headers: {
          'Content-Type': 'application/octet-stream',
          'Content-Length': String(bytes),
          'Cache-Control': 'no-store',
          'Access-Control-Allow-Origin': '*'
        }
      });
    }

    // Upload endpoint
    if (url.pathname === '/upload' && request.method === 'POST') {
      const buf = await request.arrayBuffer();
      return new Response(JSON.stringify({ received: buf.byteLength }), {
        headers: {
          'Content-Type': 'application/json',
          'Cache-Control': 'no-store',
          'Access-Control-Allow-Origin': '*'
        }
      });
    }

    return new Response('Not found', { status: 404 });
  }
};

Deploy

npm create cloudflare@latest bitspeed-worker
cd bitspeed-worker
# replace src/index.js with the code above
wrangler deploy

Point bitspeed.org nameservers to Cloudflare, add the Worker route in the dashboard, and the speed test is live. Total hosting cost: zero on the free tier.

Filed Under: News

Footer

Recent Posts

  • Network Analytics, August 16-22, 2026: Technologies.org Tripled Its Traffic and Its Load Time
  • MediaForum.net Is for Sale: A Two-Word Name for Media Debate, Industry Coverage, and Press Community
  • Why I Renewed Montmorency.org
  • For Sale: Hormuz.net and TaiwanStrait.com
  • TravelMktg.com Is For Sale: A Category Name for Travel Marketing
  • Why I Renewed These Seven Domains and Dropped Six Others
  • Weekly Site Network Analytics Summary: July 12–18, 2026
  • Cloudflare Data Shows Human Traffic Falling Up to 40% as AI Bots Take Over the Web
  • MoonshotComputing.com
  • Tenth Time, Same Method

Media Partners

  • JVQ.net: Just Very Quick
  • k4i.com
  • Referently.com
My Summer Electricity Bill Doubled: What Changed When I Stopped Switching the Air Conditioner Off
I Stopped Checking My Portfolio for a Week and Nothing Bad Happened
I Locked Myself Out of My Domain Registrar for Nine Hours: What Actually Got Me Back In
Cheap Flights: What Actually Worked After a Year of Booking Badly
Buying Vintage Lenses on eBay: Six Months of Notes, Mistakes and Keepers
AI Answers Are Eating My Search Traffic: Six Months of Watching the Line Go Down
Perplexity Says You Can't Copyright Facts, and Retrieval Is the Real Legal Frontier
Paramount's David Ellison Says the Warner Bros. Fight Is Really About CNN
Container Shipping in 2026: Chokepoints, Rate Spikes, and the Port Costs Nobody Quotes
I Ran Six Static Site Generators on the Same 400 Posts. Build Time Wasn't the Differentiator.
DFEN Fell 33% in a Month While Its Index Fell Only 11%
Why Marvell and Memory Stocks Are Down After Nvidia Guided FY28 Growth to 70%
Kioxia and Sandisk's $31 Billion NAND Plan Produces No New Bits Until Fiscal 2029
Iran-Linked Hackers Shut Down a UK Power Plant for Four Days: What the Four Days Actually Signal
Marvell (MRVL) Falls 6% Two Days After the Google Warrant: The Vesting Schedule Explains the Round Trip
Marvell (MRVL) Jumps 13% on Google TPU Deal: The $120 Billion Number Buried in the Warrant
Marvell's Entire CXL Market Is $4 Billion in 2030 Against a $190 Billion Market Cap
Broadcom (AVGO) Falls 5% on a $370 Billion AI Debt Estimate: The $29 Billion in the 10-Q Is the Real Exposure
SanDisk (SNDK) and Kioxia's 9th-Generation QLC NAND: A 33% Faster Die That Adds No Bits
JPMorgan's July CPI Scenarios: The S&P 500 Flips Sign at a 0.25% Core Print
Book Ciphers and Running-Key Ciphers: Why a Text-Based Key Fails Today
La Rambla, Barcelona: How the Pickpocket and Scam Economy Actually Works
Why the House Edge Always Wins and the Venice Casino Still Nearly Closed
The Broken Noses on Egyptian Statues Were Not an Accident
What the Name, Port and IMO Number Painted on a Ship's Stern Actually Mean
Porto Cancelled 1,413 Tourist Rental Licences and Delivered 448 Homes
Flynn Effect Reversal: What the Data Shows About Falling Cognitive Test Scores
Agentic Manufacturing Networks: How CAD MCP Servers and Instant Quoting Engines Are Closing the Design-to-Part Loop
Wall Street Trading Slang: The Language Traders Actually Use
Export Control Terms Every Chip Investor Confuses: EAR, Entity List, FDPR

Media Partners

  • Media Presser
  • Yellow Fiction
  • 3V.org
ZTE Status Report 2026: Record Revenue, Halved Profit, and a Permanent Exit From Western Networks
Intangible Heritage and the Archive Problem: A UNESCO Listing Is Not a Recording
Trump's New Semiconductor Tariff Plan Is a Tax on America's AI Ambitions
Nvidia Q2 FY2027: The $279 Billion Supply Commitment Says the Memory Crunch Is Structural
Accreditation, Rope Lines, and Shot Lists: How a Press Pack Decides What Never Gets Photographed
Press Badges Are the Last Hard Line Between Media and Anyone With a Camera
30-Year Treasury Yield Hits 5.31%, a 19-Year High, While Mortgage Rates Fall
The Defense Industrial Base Is the Story of 2026: Catapults, Motor Lines, and Capital Chasing Capacity
Venice City Profile: Depopulation of the Historic Centre and the Access Fee Experiment
Manufactured for the Lens: How Product Stunts Buy Earned Media Cheaper Than Ads
Beauty in Black Is a Racist Show, and Tyler Perry Being Black Doesn't Change That
Samurai Films Like 13 Assassins: Why 11 Rebels Is the One That Works
The Guns of Navarone and Point of Impact: When the Book Beats Even the Acclaimed Movie
Pascali's Island: Barry Unsworth's Novel and the 1988 Ben Kingsley Film Are Both Excellent
The Death of Robin Hood Review: Hugh Jackman's Unforgiven Without the Pulse
IMAX Posts Record $52 Million Global Opening With Christopher Nolan's The Odyssey
Downton Abbey: The Grand Finale and the Ethics of the Graceful Exit
Netflix Cancels Bandi After One Season Despite 40 Million Hours Viewed
Marshals (CBS, 2026): Brain Cells Died Watching This
John of John: Douglas Stuart Leaves Glasgow Behind, but Not His Themes
Wonderful's $5B Series C: 50x Forward ARR on $154,000 of Revenue Per Employee
Nvidia (NVDA) Buys Hugging Face for $12.9B, Under the $13B Floor Hugging Face Floated Three Days Earlier
Apple's Chinese Memory Push Is a Precedent Problem for $MU and $SNDK, Not a Volume Problem
NYC Sidewalk Sheds and Local Law 11: Why the Shed Is Cheaper Than the Repair
Robots.txt vs Noindex: Why Blocking Crawlers Does Not Remove Pages From Search
Meta's Hyperion Data Center in Louisiana Was Negotiated With Tax Breaks and Little Public Input
Kimi K3 Weights Released as Washington Debates Banning Chinese AI Models
Enigma Raises $70M for Human-Robot Interaction as Multiverse Raises $570M to Shrink Models
Infinity.inc Raises $15 Million to Build AI Inference Software for Any Chip
Inside the Cobot Boom: What a Yaskawa Trade Show Floor Reveals About Industrial Automation

Copyright © 2022 Exclusive.org

Technologies, Market Analysis & Market Research