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

@jackbrown9375/gtmetrix

v1.1.0

Published

### Installation ```sh npm install -g @jackbrown9375/gtmetrix ```

Downloads

10

Readme

GT Metrix command automation

Installation

npm install -g @jackbrown9375/gtmetrix

Description:

The command gtmetrix helps the developer to process a batch of urls generating the gtmetrix report for each one in a single file. It allows a pool of API keys and a pool of urls.

Full Example

gtmetrix spot example --keys mykeyingtmetrix --urls https://google.com https://example.com
gtmetrix run example.json  report1 "Simple Comment for the report1(before the update)"
#Now you can update your website and then repeat the report to compare them
gtmetrix run example.json  report2 "Comment for the report2(after the update)"
gtmetrix compare report1 report2

Params:

help        Shows the full help. Used with another params show the 
            help of that specific param.
            e.g: 
            gtmetrix help run

spot        Create the batch seed file to process.
            You can provide the following parameters
            --keys: to provide the gtmetrix API keys
            --urls: to provide the list of urls to process
            --user: the htaccess_user (if the urls needs it)
            --pass: the htaccess_password (if the url needs it)
            Structure:
            ${commandName} spot <my_seed> --keys <key1> <key..>  --urls <url1> <url..>  --user <htaccess_user> --pass <htaccess_pass>
            e.g:
            ${commandName} spot example --keys mykeyingtmetrix --urls https://google.com https://example.com 
    
            The command will generate a file with the name 
            example.json with the structure, you can edit it with your custom params.

run         Execute the bash seed file generating the final report.
            e.g:
            gtmetrix run <my_seed> <my_report_1>  "A comment"
            The command process the file <my_seed>.json 
            and generate a file with name <my_report_1>

compare     Generate the CSV comparision between two reports of
            the same seed file. Also it prints the gtmetrix url comparison.
            e.g:
            gtmetrix compare <first_report> <second_report>