0.4.20 • Published 18 days ago

@backstage/plugin-lighthouse v0.4.20

Weekly downloads
1,280
License
Apache-2.0
Repository
github
Last release
18 days ago

@backstage/plugin-lighthouse

A frontend for lighthouse-audit-service, this plugin allows you to trigger Lighthouse audits on websites and track them over time.

Getting Started

Use cases

Google's Lighthouse auditing tool for websites is a great open-source resource for benchmarking and improving the accessibility, performance, SEO, and best practices of your site. At Spotify, we keep track of Lighthouse audit scores over time to look at trends and overall areas for investment.

This plugin allows you to generate on-demand Lighthouse audits for websites, and to track the trends for the top-level categories of Lighthouse at a glance.

In the future, we hope to add support for scheduling audits (which we do internally), as well as allowing custom runs of Lighthouse to be ingested (for auditing sites that require authentication or some session state).

Installation

To get started, you will need a running instance of lighthouse-audit-service. It's likely you will need to enable CORS when running lighthouse-audit-service. Initialize the app with the environment variable LAS_CORS set to true.

When you have an instance running that Backstage can hook into, make sure to export the plugin in your app's plugins.ts to enable the plugin:

import { default as LighthousePlugin } from '@backstage/plugin-lighthouse';
export LighthousePlugin;

Then, you need to use the lighthouseApiRef exported from the plugin to initialize the Rest API in your apis.ts.

import { ApiHolder, ApiRegistry } from '@backstage/core';
import { Config } from '@backstage/config';
import {
  lighthouseApiRef,
  LighthouseRestApi,
} from '@backstage/plugin-lighthouse';

export const apis = (config: ConfigApi) => {
  const builder = ApiRegistry.builder();

  builder.add(lighthouseApiRef, LighthouseRestApi.fromConfig(config));

  return builder.build() as ApiHolder;
}

Then configure the lighthouse service url in your app-config.yaml.

lighthouse:
  baseUrl: http://your-service-url
0.4.20

20 days ago

0.4.19

23 days ago

0.4.19-next.1

1 month ago

0.4.19-next.0

1 month ago

0.4.18

1 month ago

0.4.17

2 months ago

0.4.16

2 months ago

0.4.16-next.2

2 months ago

0.4.16-next.1

2 months ago

0.4.16-next.0

2 months ago

0.4.15

3 months ago

0.4.15-next.3

3 months ago

0.4.15-next.2

3 months ago

0.4.15-next.1

3 months ago

0.4.15-next.0

4 months ago

0.4.14

4 months ago

0.4.14-next.2

4 months ago

0.4.14-next.1

4 months ago

0.4.14-next.0

5 months ago

0.4.13

5 months ago

0.4.13-next.3

5 months ago

0.4.13-next.2

5 months ago

0.4.13-next.1

5 months ago

0.4.11-next.2

6 months ago

0.4.11-next.0

7 months ago

0.4.11-next.1

6 months ago

0.4.8-next.0

9 months ago

0.4.5-next.1

10 months ago

0.4.5-next.2

10 months ago

0.4.6-next.1

9 months ago

0.4.6-next.0

10 months ago

0.4.13-next.0

6 months ago

0.4.10-next.2

7 months ago

0.4.10-next.1

7 months ago

0.4.10-next.0

8 months ago

0.4.9-next.2

8 months ago

0.4.9-next.1

8 months ago

0.4.9-next.3

8 months ago

0.4.10

7 months ago

0.4.11

6 months ago

0.4.12

6 months ago

0.4.9

8 months ago

0.4.8

9 months ago

0.4.5

10 months ago

0.4.7

9 months ago

0.4.6

9 months ago

0.4.5-next.0

11 months ago

0.4.4-next.3

11 months ago

0.4.4-next.2

11 months ago

0.4.4

11 months ago

0.4.3-next.1

1 year ago

0.4.3-next.2

1 year ago

0.4.4-next.1

12 months ago

0.4.4-next.0

12 months ago

0.4.3

12 months ago

0.4.2-next.3

1 year ago

0.4.3-next.0

1 year ago

0.4.2

1 year ago

0.4.1-next.2

1 year ago

0.4.1-next.1

1 year ago

0.4.1-next.0

1 year ago

0.4.2-next.2

1 year ago

0.4.2-next.0

1 year ago

0.4.2-next.1

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.15-next.0

1 year ago

0.3.15-next.1

1 year ago

0.4.0-next.2

1 year ago

0.3.14

1 year ago

0.3.14-next.1

1 year ago

0.3.14-next.2

1 year ago

0.3.12-next.0

1 year ago

0.3.12-next.1

1 year ago

0.3.12-next.2

1 year ago

0.3.12-next.3

1 year ago

0.3.12-next.4

1 year ago

0.3.11-next.0

2 years ago

0.3.11-next.1

2 years ago

0.3.13

1 year ago

0.3.12

1 year ago

0.3.11

1 year ago

0.3.10

2 years ago

0.3.14-next.0

1 year ago

0.3.10-next.0

2 years ago

0.3.10-next.1

2 years ago

0.3.10-next.2

2 years ago

0.3.9-next.1

2 years ago

0.3.9-next.0

2 years ago

0.3.9-next.3

2 years ago

0.3.9-next.2

2 years ago

0.3.9

2 years ago

0.3.8-next.1

2 years ago

0.3.8-next.0

2 years ago

0.3.7-next.1

2 years ago

0.3.7-next.0

2 years ago

0.3.7-next.3

2 years ago

0.3.7-next.2

2 years ago

0.3.6-next.1

2 years ago

0.3.6-next.0

2 years ago

0.3.6

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.5

2 years ago

0.3.5-next.2

2 years ago

0.3.5-next.0

2 years ago

0.3.5-next.1

2 years ago

0.3.2

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.4-next.1

2 years ago

0.3.2-next.0

2 years ago

0.3.4-next.0

2 years ago

0.3.1

2 years ago

0.2.35-next.0

2 years ago

0.2.37-next.0

2 years ago

0.3.0

2 years ago

0.2.36-next.0

2 years ago

0.2.38

2 years ago

0.2.37

2 years ago

0.2.36

2 years ago

0.2.35

2 years ago

0.2.34

2 years ago

0.2.33

2 years ago

0.2.32

2 years ago

0.2.31

2 years ago

0.2.30

2 years ago

0.2.29

3 years ago

0.2.28

3 years ago

0.2.27

3 years ago

0.2.26

3 years ago

0.2.25

3 years ago

0.2.24

3 years ago

0.2.23

3 years ago

0.2.22

3 years ago

0.2.21

3 years ago

0.2.20

3 years ago

0.2.19

3 years ago

0.2.18

3 years ago

0.2.17

3 years ago

0.2.16

3 years ago

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.1-alpha.26

4 years ago

0.1.1-alpha.25

4 years ago

0.1.1-alpha.24

4 years ago

0.1.1-alpha.23

4 years ago

0.1.1-alpha.22

4 years ago

0.1.1-alpha.21

4 years ago

0.1.1-alpha.20

4 years ago

0.1.1-alpha.19

4 years ago

0.1.1-alpha.18

4 years ago

0.1.1-alpha.17

4 years ago

0.1.1-alpha.16

4 years ago

0.1.1-alpha.15

4 years ago

0.1.1-alpha.14

4 years ago

0.1.1-alpha.13

4 years ago

0.1.1-alpha.11

4 years ago

0.1.1-alpha.10

4 years ago

0.1.1-alpha.12

4 years ago

0.1.1-alpha.9

4 years ago

0.1.1-alpha.8

4 years ago

0.1.1-alpha.7

4 years ago