https://github.com/ebidel/lighthouse-httparchive
Lighthouse metrics from HTTPArchive snapshots
https://github.com/ebidel/lighthouse-httparchive
httparchive lighthouse metrics pwa
Last synced: about 2 months ago
JSON representation
Lighthouse metrics from HTTPArchive snapshots
- Host: GitHub
- URL: https://github.com/ebidel/lighthouse-httparchive
- Owner: ebidel
- License: apache-2.0
- Created: 2017-06-28T05:48:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-30T21:44:48.000Z (almost 8 years ago)
- Last Synced: 2025-03-29T00:12:30.441Z (2 months ago)
- Topics: httparchive, lighthouse, metrics, pwa
- Language: JavaScript
- Homepage: https://lighthouse-viewer.appspot.com/
- Size: 45.9 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lighthouse-httparchive
Lighthouse metrics from HTTPArchive snapshots.
### Setup
#### Installation
```
yarn
```Get a `service-account.json` for your project in the [Google Developer Console](https://developers.google.com/api-client-library/php/auth/service-accounts)
and update `PROJECT_ID` at the top of `lighthouse-big-query.js` with your
project's id.#### Run it
You can run the app from the command line or by firing up a web server. The
first time you run either, results may take a while to fetch from BigQuery.
One fetched, a file called `.biqquery_cache.json` will be created that contains
the cached results.Subsequent runs should be fast and will consult the cache if you're running the
script within a 24hr period. Afer 24hrs, HTTPArchive's BigQuery data will be
checked for newer data dumps. If there are newer results, the data will be
fetched from BigQuery and the cache file will be updated. Rinse and repeat.##### CLI
To run the CLI:
```
node lighthouse-big-query.js
```##### Web server
To start the server:
```
yarn start
```Navigate to http://localhost:8080.
### Deployment
```
./scripts/deploy YYY-MM-DD [email protected]
```