{"id":24964545,"url":"https://github.com/fasatrix/lighthouse-aggregate-report","last_synced_at":"2026-02-18T01:05:47.769Z","repository":{"id":55528659,"uuid":"522734264","full_name":"fasatrix/lighthouse-aggregate-report","owner":"fasatrix","description":"A Google Lighthouse aggregate Test Reporter","archived":false,"fork":false,"pushed_at":"2024-05-06T05:59:43.000Z","size":1174,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T07:33:38.619Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fasatrix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-08-08T23:09:42.000Z","updated_at":"2024-05-03T17:32:41.000Z","dependencies_parsed_at":"2025-04-10T23:42:22.612Z","dependency_job_id":"4fc6f678-536c-49d8-aa4c-a3779439ffc0","html_url":"https://github.com/fasatrix/lighthouse-aggregate-report","commit_stats":{"total_commits":53,"total_committers":3,"mean_commits":"17.666666666666668","dds":0.4339622641509434,"last_synced_commit":"0028c4cf14877bf86fee042694c4b6d034d1003e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fasatrix/lighthouse-aggregate-report","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasatrix%2Flighthouse-aggregate-report","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasatrix%2Flighthouse-aggregate-report/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasatrix%2Flighthouse-aggregate-report/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasatrix%2Flighthouse-aggregate-report/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fasatrix","download_url":"https://codeload.github.com/fasatrix/lighthouse-aggregate-report/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasatrix%2Flighthouse-aggregate-report/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29565018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T00:47:08.760Z","status":"ssl_error","status_checked_at":"2026-02-18T00:45:26.718Z","response_time":100,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-03T10:16:34.453Z","updated_at":"2026-02-18T01:05:47.753Z","avatar_url":"https://github.com/fasatrix.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lighthouse-aggregate-report\nA Google Lighthouse aggregate Test Reporter\n\n![PDF CI](https://github.com/fasatrix/lighthouse-aggregate-report/actions/workflows/lighthouse.yaml/badge.svg)\n\n### Installation\n`npm install lighthouse-aggregate-report`\n\n\n### Usage\nMore examples can be found inspecting the [Tests](https://github.com/fasatrix/lighthouse-aggregate-report/blob/main/src/__tests__/test.ts)\n\n1) Default Lighthouse report (performance, accessibility, best-practices, seo):\n      ```javascript\n       import { lighthouseReport } from 'lighthouse-aggregate-report';\n       const options = {\n            url: 'https://google.com',\n       };\n       const results = await lighthouseReport(options);\n       console.log(results)\n       Output:  { performance: 50, 'accessibility': 83, best-practices: 90, seo:100}\n       Assertion: expect(results.performance \u003e= 80).toBeTruthy();\n     ```\n2)  Only selected metrics (e.g.,  'accessibility'):\n      ```javascript\n       import { lighthouseReport, Categories } from 'lighthouse-aggregate-report';\n       const options = {\n            url: 'https://google.com',\n            lighthouse: { \n            onlyCategories: [\n                Categories.accessibility,\n            ] \n          },\n       };\n       const results = await lighthouseReport(options);\n       console.log(results)\n       Output:  { 'accessibility': 83 }\n       Assertion: expect(results.accessibility).to.eq(myThreshold)\n    \n     ```\n3)  Selected Audit metrics:\n      ```javascript\n       import { lighthouseReport, Audits } from 'lighthouse-aggregate-report';\n       const options = {\n            targetUrl: 'https://google.com',\n            lighthouse: {\n              onlyAudits: [\n                  Audits.firstContentfulPaint,\n                  Audits.interactive\n              ],\n           },\n       };\n       const results = await lighthouseReport(options);\n       console.log(results)\n       Output: {  performance: 97,  accessibility: 80, 'best-practices': 100,  seo: 85, interactive: 100,  'first-contentful-paint': 99 }\n       Assertion: expect(results.interactive).to.eq(myThreshold)\n    \n     ```    \n\n4)  Full head (will open the browser) to troubleshoot the Login (set `headed=true` in the `Login` parameter):\n      ```javascript\n       import { lighthouseReport } from 'lighthouse-aggregate-report';\n       const options = {\n            Login: {\n                headed: true\n            },\n       }; \n     ``` \n5)  Mobile Report (set `isMobile=true`):\n      ```javascript\n       import { lighthouseReport } from 'lighthouse-aggregate-report';\n        const options = {\n             isMobile: true,\n             targetUrl: 'https://google.com',\n        };\n\n     ```       \n6)  Generate HTML Report (set `htmlReport=true`):\n      ```javascript\n       import { lighthouseReport } from 'lighthouse-aggregate-report';\n        const options = {\n             htmlReport: true,\n             targetUrl: 'https://google.com',\n        };\n     ```        \n\n7)  Debug errors (set `debug=true`):\n      ```javascript\n       import { lighthouseReport } from 'lighthouse-aggregate-report';\n       const options = {\n            targetUrl: 'https://notavalidurl.com/',\n            lighthouse: {\n               debug: true,\n            },\n       };\n      results = await lighthouseReport(options);\n      console.log(results.error)\n     ```     \n\n\n## Contribution\nFork, add your changes and create a pull request \n\n       \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasatrix%2Flighthouse-aggregate-report","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffasatrix%2Flighthouse-aggregate-report","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasatrix%2Flighthouse-aggregate-report/lists"}