All Projects → ankurparihar → Readme Pagespeed Insights

ankurparihar / Readme Pagespeed Insights

Licence: apache-2.0
Google lighthouse stats of your website that you can put in readme

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Readme Pagespeed Insights

Svg Banners
Styled banners for your Readme made with html/css in SVG !!
Stars: ✭ 145 (+222.22%)
Mutual labels:  readme, svg
Vectorlogozone
3,000+ gorgeous SVG logos, perfect for your README or credits page
Stars: ✭ 239 (+431.11%)
Mutual labels:  readme, svg
Badgen
Fast handcraft svg badge generator.
Stars: ✭ 464 (+931.11%)
Mutual labels:  readme, svg
React Inlinesvg
An SVG loader component for ReactJS
Stars: ✭ 952 (+2015.56%)
Mutual labels:  svg
Built vector
Generate Flutter vector code from a subset of SVG files.
Stars: ✭ 33 (-26.67%)
Mutual labels:  svg
House
Proof of Concept and Research repository.
Stars: ✭ 37 (-17.78%)
Mutual labels:  svg
Resonance
◾️Resonance | 5kb React animation library
Stars: ✭ 1,011 (+2146.67%)
Mutual labels:  svg
Respin
React SVG loading spinner based on jxnblk.com/loading
Stars: ✭ 21 (-53.33%)
Mutual labels:  svg
Panzoom
Universal pan and zoom library (DOM, SVG, Custom)
Stars: ✭ 1,003 (+2128.89%)
Mutual labels:  svg
Jquery Mapael
jQuery plugin based on raphael.js that allows you to display dynamic vector maps
Stars: ✭ 981 (+2080%)
Mutual labels:  svg
Logicflow
A front-end framework for process visualization.
Stars: ✭ 973 (+2062.22%)
Mutual labels:  svg
Angled Edges
📐 Quickly create angled section edges using only Sass
Stars: ✭ 969 (+2053.33%)
Mutual labels:  svg
Onthefly
🔗 Generate TinySVG, HTML and CSS on the fly
Stars: ✭ 37 (-17.78%)
Mutual labels:  svg
Resvg
An SVG rendering library.
Stars: ✭ 964 (+2042.22%)
Mutual labels:  svg
Savesvgaspng
Save SVGs as PNGs from the browser.
Stars: ✭ 1,004 (+2131.11%)
Mutual labels:  svg
Ruby Gem Downloads Badge
Clean and simple gem downloads count badge, courtesy of http://shields.io/. You can checkout the application directly at the following URL:
Stars: ✭ 29 (-35.56%)
Mutual labels:  svg
Svg To Component
Convert SVG to React/Vue components
Stars: ✭ 40 (-11.11%)
Mutual labels:  svg
Svgr
Transform SVGs into React components 🦁
Stars: ✭ 8,263 (+18262.22%)
Mutual labels:  svg
Flag Icon Css
🎏 A curated collection of all country flags in SVG — plus the CSS for easier integration
Stars: ✭ 7,982 (+17637.78%)
Mutual labels:  svg
Bpmn Js Examples
Some examples how to use bpmn-js
Stars: ✭ 981 (+2080%)
Mutual labels:  svg

PageSpeed Insights for README

Embed your website's pagespeed score to your readme

About PageSpeed Insights

PageSpeed Insights analyzes the content of a web page, then generates suggestions to make that page faster. Learn more.

Info

Guages

PWA

API and Usage

Important note: Do not embed url to readme, instead embed generated svg

  • It takes time to perform audits of website. So embedding it directly in readme would not render due to server timeout. Instead you must first visit and download the svg from the api (by simply visiting api url with desired parameters). And then embed that svg to your README files.
  • Typically it takes 10-15 seconds to obtain the results from pagespeed api
  • Some servers don't allow (eg. google.com) or delay (eg. cloudflare) pagespeed crawler, so it may result in unexpected results.
  • The result may fluctuate slightly sometimes.

API url

The api is called from https://pagespeed-insights.herokuapp.com

Simple usage

In simple form it will return result for all categories for desktop version of your website. Replace your_website_url with your website's url

https://pagespeed-insights.herokuapp.com?url=your_website_url

For example

https://pagespeed-insights.herokuapp.com?url=https://ankurparihar.github.io

Theme

Default result is theme-agnostic i.e. looks good in both light and dark environment. But you can force one of two additional themes that are light and dark.

https://pagespeed-insights.herokuapp.com?url=your_website_url&theme=dark

Strategy

Strategy specifiec the type of device your website is audited for. You can specify strategy as either mobile or desktop. If none is specified desktop is chosen

https://pagespeed-insights.herokuapp.com?url=your_website_url&strategy=mobile

Category

There are 5 categories (in order)

  • Performance
  • Accessibility
  • Best Practices
  • SEO
  • Progressive Web App

By default all the categories are evaluated, but you can specify which categories to evaluate. The category parameter is a number. This is 5-bit number in binary, where if a bit is 1 then the corresponding category will be included. For example

+------------+------------+------------+------------+------------+
|   Perf.    |    Acc.    |  Best pr.  |     SEO    |     PWA    |
+------------+------------+------------+------------+------------+
|      1     |      0     |      1     |      1     |      1     | => 0x10111 => 23
+------------+------------+------------+------------+------------+

Embedding into readme

After downloading svg you can embed into readme as following

  • markdown method
![alt text](path/to/svg "tooltip text")
  • html method
<p align="center">	<!-- (optional) center align -->
    <img src="/path/to/svg" width="XXXpx">
</p>

Example

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].