Skip to content
bgatellierPublic

About

A command-line tool to industrialize web quality measurement

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Scodi

A command-line tool to industrialize web quality measurement.

npm Quality Gate Status Known Vulnerabilities

Description

Scodi is a tool that centralizes the use of famous web quality measurement services (Google Lighthouse, GreenIT Analysis or Mozilla Observatory) in a unique CLI.

Its modular approach makes it easy to process the analysis results into a database to track metrics over time.

Moreover the command-line interface allows a smooth integration into a CI/CD chain.

Example of use

Example scenario:

With NPM packages

  1. Install the packages

    npm install @scodi/lighthouse @scodi/mysql
  2. Set the credentials for MySQL (database URL)

    echo SCODI_MYSQL_DATABASE_URL=login:password@127.0.0.1:3306 >> .env
  3. Start the analysis

    npx scodi lighthouse --config '{"url":"https://www.ipcc.ch/"}'

Once the analysis is over, the results will be stored in a report table, which you can exploit with tools like Grafana:

Analyzed URL, overall grade over 100, several metrics like Speed Index, First Contentful Paint and advices for improvements

For more options, have a look at the help with npx scodi -h

To start analyses over HTTP instead of the command line, use the Scodi API package.

Design

Scodi has been designed to be as light as possible, which explains its modular approach: you only install what you need.

To do so, Scodi is divided in 3 types of packages.

Package types

Type Mission Example
Runner Starts an analysis using the CLI or the HTTP API
Analysis Analyzes URLs using third-party services using GreenIT Analysis
Listener Do things with the results of the analysis store them into a MySQL database

The minimum setup you need to run Scodi, is to have the Scodi CLI runner module and a single analysis module.

Package list

Name Type Purpose
Scodi API Runner Exposes an HTTP API that starts an analysis when it is requested
Scodi CLI Runner Control the other modules via a CLI
Scodi GreenIT Analysis Analyzes URLs with GreenIT Analysis
Scodi Lighthouse Analysis Analyzes URLs with Google Lighthouse
Scodi Observatory Analysis Analyzes URLs with Mozilla Observatory
Scodi SSL Labs Server Analysis Analyzes URLs with Qualys SSL Labs Server
Scodi MySQL Listener Stores the results of the analysis into a MySQL database

Contributing

Contributions are welcome: see CONTRIBUTING.md. Scodi is released under the MIT license.

About

A command-line tool to industrialize web quality measurement

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Used by

Contributors

Languages