@cloudflare/speedtest: Internet connection quality measurement
Measure bandwidth, latency, and packet loss via Cloudflare's edge network.
Learn more about speedtest
This is a JavaScript library for measuring client internet connection quality through network performance testing. It works by executing test requests against Cloudflare's edge infrastructure and extracting timing data via the PerformanceResourceTiming browser API. The module characterizes connections across multiple dimensions: download and upload bandwidth, latency measurements including loaded latency during active transfers, and packet loss detection through TURN server connections. Results are collected by Cloudflare for aggregated network quality insights.
Distributed Edge Testing
Measures performance against Cloudflare's global edge network instead of centralized servers. Provides geographically accurate results that reflect actual user experience from the client's location.
Loaded Latency Measurement
Captures latency during active download and upload operations, not just idle connections. Reveals real-world performance degradation under network load with configurable measurement intervals.
Configurable Test Parameters
Customize test duration, server selection, parallel streams, and measurement protocols. Tailor tests to specific network conditions or compliance requirements beyond default speed checks.
const observer = new PerformanceObserver((list) => {
list.getEntries().forEach((entry) => {
const dnsTime = entry.domainLookupEnd - entry.domainLookupStart;
console.log(`DNS lookup: ${dnsTime}ms`);
});
});
observer.observe({ entryTypes: ['resource'] });Patch release fixing MSSQL database configuration handling; no breaking changes or new requirements reported.
- –Apply MSSQL database settings correctly after upgrading if you use Microsoft SQL Server backend.
- –Release notes do not specify other changes, migrations, or security fixes beyond the MSSQL configuration bug.
Adds offline ISP detection via bundled ipinfo.io database (default), unified UI with dark mode, and updated docs.
- –Use the new offline ipinfo.io database for ISP detection without an API key; full API remains optional.
- –Adopt the unified UI across standalone and multi-point tests; dark mode is now available.
Docker image tagging strategy changed; no functional code updates in this release.
- –Pin to `:5.3.3` or `:5.3` for stable deployments; `:latest` now tracks each release instead of master.
- –Note that `:5` label is not available; choose between `:5.3`, `:5.3.3`, `:latest`, or `:master` explicitly.
Top in Developer Tools
Related Repositories
Discover similar tools and frameworks used by developers
winget-cli
Multi-interface Windows package manager for Store and community repositories.
code-server
Run VS Code on remote servers via browser.
husky
Manage Git hooks via Node.js package.
git
Snapshot-based version control with distributed repository architecture.
redux-toolkit
Opinionated Redux utilities with simplified setup and Immer integration.