Skip to content

tonygustafsson/lightshack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lightshack

POC: A monitor using lighthouse CLI

Not working yet.

More info:

Plans

  • Monitor: Scheduler to automatically check statistics in given intervals for x number of sites. Saves to CouchDB. Could also give warnings to Slack and Email.
  • Web client: A Svelte client that get's updates from pouchdb that syncs from couchdb.

Run monitor

cd monitor
npm install
npm start

Run client

cd client
npm install
npm run dev

Output example

{
  "fetchTime": "2019-07-19T09:22:22.001Z",
  "url": "https://www.idg.se/",
  "metrics": {
    "bootupTime": {
      "value": 730.1120000000004,
      "score": 0.98
    },
    "firstConsenfulPaint": {
      "value": 2216.769,
      "score": 0.92
    },
    "firstCpuIdle": {
      "value": 3936.9889999999996,
      "score": 0.86
    },
    "firstMeaningfulPaint": {
      "value": 2777.5984999999996,
      "score": 0.81
    },
    "interactive": {
      "value": 4970.632,
      "score": 0.77
    }
  },
  "requests": {
    "total": 46,
    "totalSize": 894324,
    "images": {
      "requests": 19,
      "size": 319589
    },
    "fonts": {
      "requests": 8,
      "size": 259910
    },
    "stylesheets": {
      "requests": 5,
      "size": 113419
    },
    "document": {
      "requests": 3,
      "size": 100630
    },
    "other": {
      "requests": 1,
      "size": 74530
    },
    "media": {
      "requests": 10,
      "size": 26246
    },
    "thirdParty": {
      "requests": 0,
      "size": 0
    }
  },
  "speedIndex": 2716,
  "performanceScore": 0.87,
  "errorsInConsole": 1
}

About

POC: A monitor using lighthouse CLI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published