openspeedtest / Speed-Test

SpeedTest by OpenSpeedTestâ„¢ is a Free and Open-Source HTML5 Network Performance Estimation Tool Written in Vanilla Javascript and only uses built-in Web APIs like XMLHttpRequest (XHR), HTML, CSS, JS, & SVG. No Third-Party frameworks or libraries are Required. Started in 2011 and moved to OpenSpeedTest.com dedicated Project/Domain Name in 2013.
https://openspeedtest.com
MIT License
2.28k stars 221 forks source link

Feature Request: Provide core functionality as a library #130

Open NfNitLoop opened 8 months ago

NfNitLoop commented 8 months ago

From the README it seems like your code is currently meant to be accessed by a web UI. But if it were packaged into an npm/jsr package, folks could use it server-side too. I'd love it if I could just call into a function to run the speed test with some parameters like:

openspeedtest commented 8 months ago

@NfNitLoop This is client-side JavaScript. I think we need to make significant modifications for it to run on a server.