DevelopmentJuly 24, 2026· via DEV Community

Tiny, open-source speed test built with vanilla JS and Cloudflare

Tiny, open-source speed test built with vanilla JS and Cloudflare

Image : DEV Community

A 50 KB file, no npm, no React, no 200 MB node_modules folder—just HTML, CSS and roughly 250 lines of JavaScript—can now measure your real internet speed from the browser. Built by a developer tired of opaque commercial speed tests, the tool uses Cloudflare’s public edge network to deliver transparent, reproducible results without tracking scripts or rate limits.

How it works: three clean phases

The test follows a classic three-step approach—ping, download and upload—each powered by Cloudflare endpoints that allow cross-origin requests. For latency, the tool sends five tiny HTTP requests (1 KB each) and discards the slowest reading to filter out outliers. Download speed is measured by streaming a large file in chunks and timing how long each chunk takes to arrive, while upload speed posts a body of data directly to Cloudflare’s endpoint and tracks the transfer duration.

Why this matters

Every byte saved matters in today’s web. By avoiding heavy frameworks and third-party scripts, the tool sidesteps the bloat that slows down other speed tests, delivering results in less than 50 KB. For users, that means instant access on any device; for developers, it’s a blueprint for building lightweight, transparent tools that respect privacy and bandwidth.

## Why it matters

This project shows that high-quality measurement doesn’t require megabytes of dependencies or opaque APIs. By leveraging Cloudflare’s global edge network and browser-native APIs, it delivers real results with minimal footprint—something commercial tools rarely prioritize. For anyone tired of heavy, privacy-invading speed tests, this is proof that less can be more.


Source: DEV Community. AI-assisted editorial synthesis — TechnoExpress.

Read the original source on DEV Community →

← Back to home