All Projects β†’ emazzotta β†’ Lighthouse Badges

emazzotta / Lighthouse Badges

Licence: mit
🚦Generate badges (shields.io) based on Lighthouse performance.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Lighthouse Badges

Opensource
Delivering delightful digital solutions. Open Source packages with combined ~85M/month downloads, semantically versioned following @conventional-commits. Fully powered by Jest, @Babel TypeScript, @Airbnb @ESLint + @Prettier, @YarnPKG + @Lerna independent versioning, GH @Actions & automated dep updates with @RenovateBot.
Stars: ✭ 459 (+206%)
Mutual labels:  eslint, babel, jest
React Pages Boilerplate
Deliver react + react-router application to gh-pages
Stars: ✭ 134 (-10.67%)
Mutual labels:  eslint, babel, jest
Express Babel
Express starter kit with ES2017+ support, testing, linting, and code coverage
Stars: ✭ 621 (+314%)
Mutual labels:  eslint, babel, jest
Electron React Boilerplate
A Foundation for Scalable Cross-Platform Apps
Stars: ✭ 18,727 (+12384.67%)
Mutual labels:  eslint, babel, jest
Starter React Flux
Generate your React PWA project with TypeScript or JavaScript
Stars: ✭ 65 (-56.67%)
Mutual labels:  eslint, babel, jest
Pwa
An opinionated progressive web app boilerplate
Stars: ✭ 353 (+135.33%)
Mutual labels:  eslint, babel, jest
Js Stack Boilerplate
Final boilerplate code of the JavaScript Stack from Scratch tutorial –
Stars: ✭ 145 (-3.33%)
Mutual labels:  eslint, babel, jest
Nodebestpractices
βœ… The Node.js best practices list (December 2021)
Stars: ✭ 72,734 (+48389.33%)
Mutual labels:  eslint, npm, jest
Book
γ€ŠηŽ°δ»£εŒ–ε‰η«―ε·₯η¨‹εΈˆζƒε¨ζŒ‡ε—γ€‹https://guoyongfeng.github.io/book/
Stars: ✭ 141 (-6%)
Mutual labels:  eslint, babel, npm
Express React Boilerplate
πŸš€πŸš€πŸš€ This is a tool that helps programmers create Express & React projects easily base on react-cool-starter.
Stars: ✭ 32 (-78.67%)
Mutual labels:  eslint, babel, jest
React Bolt
⚑ The most simple & robust boilerplate for your React projects.
Stars: ✭ 298 (+98.67%)
Mutual labels:  eslint, babel, jest
Democracy Client
DEMOCRACY App Client
Stars: ✭ 98 (-34.67%)
Mutual labels:  babel, npm, jest
React Native Navigation Redux Starter Kit
React Native Navigation(v2) Starter Kit with Redux, Saga, ESLint, Babel, Jest and Facebook SDK 😎
Stars: ✭ 271 (+80.67%)
Mutual labels:  eslint, babel, jest
Webpack React Boilerplate
Minimal React 16 and Webpack 4 boilerplate with babel 7, using the new webpack-dev-server, react-hot-loader, CSS-Modules
Stars: ✭ 358 (+138.67%)
Mutual labels:  eslint, babel, jest
react-multi-context
Manage multiple React 16 contexts with a single component.
Stars: ✭ 19 (-87.33%)
Mutual labels:  babel, jest, travis
Serverless Typescript Starter
πŸ—„πŸ™…β€β™€οΈ Deploy your next serverless JavaScript function in seconds
Stars: ✭ 653 (+335.33%)
Mutual labels:  eslint, babel, jest
Front End Guide
πŸ“š Study guide and introduction to the modern front end stack.
Stars: ✭ 14,073 (+9282%)
Mutual labels:  eslint, babel, jest
Typescript Express Starter
πŸš€ TypeScript Express Starter
Stars: ✭ 238 (+58.67%)
Mutual labels:  eslint, npm, jest
Yarn Package Boilerplate
An Yarn package with babel, jest, flow, prettier and more
Stars: ✭ 10 (-93.33%)
Mutual labels:  babel, npm, jest
Mostly
They mostly come at night; mostly.
Stars: ✭ 78 (-48%)
Mutual labels:  eslint, babel, jest

Build Status Code Coverage NPM downloads NPM version License

Lighthouse Badges

Lighthouse

This package allows you to easily create Lighthouse badges for all Lighthouse categories.
Ever wanted to brag about your sites's awesome Lighthouse performance? Then this is the package for you!

Examples

All Badges

Lighthouse Accessibility Badge Lighthouse Best Practices Badge Lighthouse Performance Badge Lighthouse PWA Badge Lighthouse SEO Badge

Single Badge

Lighthouse

Usage

Help

usage: lighthouse-badges [-h] [-v] [-s]
                         [-b {flat,flat-square,plastic,for-the-badge,popout,popout-square,social}]
                         [-o OUTPUT_PATH] [-r] -u URLS [URLS ...]


Generate gh-badges (shields.io) based on lighthouse performance.

Optional arguments:
  -h, --help            Show this help message and exit.
  -v, --version         Show program's version number and exit.
  -s, --single-badge    Output only one single badge averaging all lighthouse
                        categories' scores
  -b {flat,flat-square,plastic,for-the-badge,popout,popout-square,social}, --badge-style {flat,flat-square,plastic,for-the-badge,popout,popout-square,social}
                        Define look and feel for the badge
  -o OUTPUT_PATH, --output-path OUTPUT_PATH
                        Define output path for artifacts
  -r, --save-report     Save lighthouse report as html for every supplied url

Required arguments:
  -u URLS [URLS ...], --urls URLS [URLS ...]
                        The lighthouse badge(s) will contain the respective
                        average score(s) of all the urls supplied, combined

Additionally you can pass parameters to the lighthouse process directly via environment variable:

# This will pass '--preset=desktop' to the lighthouse process
export LIGHTHOUSE_BADGES_PARAMS="--preset=desktop"
lighthouse-badges --urls https://www.youtube.com/

Run

Hint: node versions below 12 are not supported.

Option 1: npm

npm i -g lighthouse-badges
lighthouse-badges --urls https://www.youtube.com/ https://www.youtube.com/feed/trending -o test_results

Option 2: npx

npx lighthouse-badges --urls https://www.youtube.com/ https://www.youtube.com/feed/trending -o test_results

Option 3: Docker

# Warning, the docker version may alter the lighthouse results
docker run --rm \
    -v $PWD/test_results:/home/chrome/reports \
    emazzotta/lighthouse-badges \
    /bin/sh -c "lighthouse-badges --urls https://www.youtube.com/ https://www.youtube.com/feed/trending"

Contributing

See contribution guideline

Sponsors

Sponsored by JetBrains

Jetbrains Logo

Author

Emanuele Mazzotta

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].