npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

speedy-logger

v1.3.4

Published

Auto internet speed tester and logger using speedtest-net and firebase

Downloads

8

Readme

Description

Speedy-logger is an internet speed test application that will run on a preconfigured timing interval. If the test fails, retries will be made on a more frequent configurable interval until connectivity is restored. Upon test completion the results are logged in firebase.

Configuration

All configuration options can be found in config.json.

  • dbConfig object contains usual settings for database and auth only.
  • testConfig object contains
    • testTime property which sets the maximum amount of time the test will run. Recommended time is 20000ms as this provides most stable results.
    • testsLocation property defines where test data will be stored relative to your firebase root. Default is your_firebase_root/tests
    • errorsLocation property defines where test data will be stored relative to your firebase root. Default is your_firebase_root/errors
    • testInterval how often should the test be run, cannot be smaller than testTime or larger than 2147483647ms. Default is 3600000 ms.
    • retryInterval in the event of a test failure i.e. no connectivity how often should retries be made. Default is 60000 ms.

Data Structure

  • Test data and error data will be stored at your_firebase_root/tests and your_firebase_root/errors respectively.
  • Each test object is stored in firebase with the test timestamp as its key. For graphing or any other purposes this can be used as the test date and time as the test data object does not include a test time
  • The test data object is as follows (taken from speedtest-net library readme)
    • speeds:

      • download: download bandwidth in megabits per second
      • upload: upload bandwidth in megabits per second
      • originalDownload: unadjusted download bandwidth in bytes per second
      • originalUpload: unadjusted upload bandwidth in bytes per second
    • client:

      • ip: ip of client
      • lat: latitude of client
      • lon: longitude of client
      • isp: client's isp
      • isprating: some kind of rating
      • rating: another rating, which is always 0 it seems
      • ispdlavg: avg download speed by all users of this isp in Mbps
      • ispulavg: same for upload
    • server:

      • host: test server url
      • lat: latitude of server
      • lon: longitude of something
      • location: name of a location, usually a city, but can be anything
      • country: name of the country
      • cc: country code
      • sponsor: who pays for the test server
      • distance: distance from client to server (SI)
      • distanceMi: distance from client to server (Imperial)
      • ping: how long it took to download a small file from the server, in ms
      • id: the id of the server

Versions

  • 1.0.4 Added Readme
  • 1.0.5 Updated Readme (Fixed Typo)
  • 1.0.6 Fixed error in test error handler
  • 1.0.7 Added interval functionality
  • 1.0.8 Added description to readme
  • 1.0.9 Added strict mode
  • 1.1.0 Added initial test run to gather results at t-0
  • 1.1.1 Updated repo URL
  • 1.1.2 Bump
  • 1.1.3 Fixed error in default testInterval
  • 1.1.4 Changed repo to github from bitbucket
  • 1.2.0 Added reference to speedy-web
  • 1.3.0 Added test failure retry functionality
  • 1.3.1 Fixed error in readme.
  • 1.3.2 Minor fix
  • 1.3.3 Readme fix
  • 1.3.4 Made it so a down condition also creates a result of 0 for upload data