{"id":21184392,"url":"https://github.com/yankouskia/psi-local","last_synced_at":"2025-07-10T00:33:21.348Z","repository":{"id":65477265,"uuid":"101929094","full_name":"yankouskia/psi-local","owner":"yankouskia","description":"Use PageSpeed Insights locally","archived":false,"fork":false,"pushed_at":"2017-08-30T21:52:51.000Z","size":2,"stargazers_count":18,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-10T23:19:07.942Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yankouskia.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}},"created_at":"2017-08-30T21:09:50.000Z","updated_at":"2022-11-16T04:41:22.000Z","dependencies_parsed_at":"2023-01-25T06:35:13.111Z","dependency_job_id":null,"html_url":"https://github.com/yankouskia/psi-local","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/yankouskia%2Fpsi-local","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankouskia%2Fpsi-local/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankouskia%2Fpsi-local/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankouskia%2Fpsi-local/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yankouskia","download_url":"https://codeload.github.com/yankouskia/psi-local/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225606601,"owners_count":17495551,"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":[],"created_at":"2024-11-20T18:01:37.482Z","updated_at":"2024-11-20T18:03:02.782Z","avatar_url":"https://github.com/yankouskia.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"## psi-local\n\nUse [PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights) locally!\n\n#### Using\n\n- `npm install psi-local --save-dev`\n- run your application locally (e.g. http://localhost:3000)\n- create `.js` file and require module:\n  ```js\n    const psi = require('psi-local');\n\n    psi(3000)\n      .then(data =\u003e {\n        // do something with results ...\n      });\n  ```\n- run `node \u003cyour-file\u003e.js`\n\n#### Additional\n\nModule contains the only function and returns `Promise` for more the best usability. You can easily use ES2017 syntax for working with `psi-local` as this `promise` is never rejected. If some errors occur, it will return object `{ err: Error }`\n\n```js\n  (async function() {\n    const port = 3000;\n    const stats = await psi(port);\n\n    if (stats.err) return handleError(stats);\n    return handleResults(stats);\n  })()\n```\n\n#### MIT License\nFill free to use and contribute\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyankouskia%2Fpsi-local","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyankouskia%2Fpsi-local","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyankouskia%2Fpsi-local/lists"}