{"id":13659528,"url":"https://github.com/GoogleChromeLabs/perftools-runner","last_synced_at":"2025-04-24T14:33:29.587Z","repository":{"id":66027592,"uuid":"131767594","full_name":"GoogleChromeLabs/perftools-runner","owner":"GoogleChromeLabs","description":"Google Performance Tools runner using Puppeteer","archived":false,"fork":false,"pushed_at":"2024-09-10T23:28:44.000Z","size":4886,"stargazers_count":95,"open_issues_count":14,"forks_count":11,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-10T13:36:34.031Z","etag":null,"topics":["audit","performance","puppeteer","testing-tools"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/GoogleChromeLabs.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-01T22:01:10.000Z","updated_at":"2024-10-22T16:34:46.000Z","dependencies_parsed_at":"2024-01-22T03:55:36.730Z","dependency_job_id":"785b9b24-4918-40ad-8148-5e5a962372f3","html_url":"https://github.com/GoogleChromeLabs/perftools-runner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fperftools-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fperftools-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fperftools-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fperftools-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoogleChromeLabs","download_url":"https://codeload.github.com/GoogleChromeLabs/perftools-runner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250643787,"owners_count":21464239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["audit","performance","puppeteer","testing-tools"],"created_at":"2024-08-02T05:01:09.730Z","updated_at":"2025-04-24T14:33:29.294Z","avatar_url":"https://github.com/GoogleChromeLabs.png","language":"JavaScript","readme":"## Google Performance Tools Runner\n\nWeb frontend which allows users to simultaneously run several of Google's performance tools\n(Lighthouse, PageSpeed Insights, Webpage Test) against a URL, all at once.\n[Puppeteer](https://developers.google.com/web/tools/puppeteer/) is used\nto take screenshots of the results from each tool and create an aggregated PDF\nof all results.\n\n\u003cimg width=\"1231\" alt=\"screen shot 2018-05-01 at 7 15 10 pm\" src=\"https://user-images.githubusercontent.com/238208/39502251-050fb5d0-4d74-11e8-96fa-e61a5880ffd1.png\"\u003e\n\n\n### Explainer\n\n\u003e Start the server with `npm start`.\n\nThe frontend (http://localhost:8080) UI displays a list of tools for the user\nto select.\n\nWhen \"Enter\" is hit, this fires off a request o the `/run` handler. That handler takes a `url` and\n`tools` param. The latter is a \",\" separated list of tools to run. One of LH, PSI, WPT.\n\nThe response is a JSON array of the tools that were run (e.g. `[\"LH\", \"PSI\"]`).\n\nNote: every run of the tool logs the URL that was audited and tools to that were\nrun to runs.txt.\n\n**Examples**\n\nRun Lighthouse and PSI against https://example.com:\n\nhttp://localhost:8080/run?url=https://example.com/\u0026tools=LH,PSI\n\nRun Lighthouse against https://example.com using full chrome:\n\nhttp://localhost:8080/run?url=https://example.com/\u0026tools=LH\u0026headless=false\n\n### Installation \u0026 Setup\n\nCheck the repo and run `npm i`. You'll need Node 8+ support for ES modules to work.\n\n### Development\n\nStart the server in the project root:\n\n```\nnpm start\n```\n\nLint:\n\n```\nnpm run lint\n```\n\nFor development, both `serviceAccount.json` and `bitlyAccount.json` are required. \n\n- Follow instructions from [https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances#createanewserviceaccount](https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances#createanewserviceaccount) to get serviceAccount.json. \n- Create an Bitly account from https://dev.bitly.com/my_apps.html and get access token for `bitlyAccount.json`.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGoogleChromeLabs%2Fperftools-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGoogleChromeLabs%2Fperftools-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGoogleChromeLabs%2Fperftools-runner/lists"}