{"id":21518705,"url":"https://github.com/halo-lab/sanity-lighthouse-plugin","last_synced_at":"2025-07-03T22:07:21.135Z","repository":{"id":125834156,"uuid":"601539749","full_name":"Halo-Lab/sanity-lighthouse-plugin","owner":"Halo-Lab","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-09T13:09:10.000Z","size":3171,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T22:07:42.625Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Halo-Lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-02-14T09:32:45.000Z","updated_at":"2024-09-09T13:09:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"2544c0a3-4e4e-45bf-a1ae-4a61691543ae","html_url":"https://github.com/Halo-Lab/sanity-lighthouse-plugin","commit_stats":null,"previous_names":["halo-lab/sanity-performance-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Halo-Lab/sanity-lighthouse-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Halo-Lab%2Fsanity-lighthouse-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Halo-Lab%2Fsanity-lighthouse-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Halo-Lab%2Fsanity-lighthouse-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Halo-Lab%2Fsanity-lighthouse-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Halo-Lab","download_url":"https://codeload.github.com/Halo-Lab/sanity-lighthouse-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Halo-Lab%2Fsanity-lighthouse-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263410776,"owners_count":23462299,"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-24T00:53:40.193Z","updated_at":"2025-07-03T22:07:21.099Z","avatar_url":"https://github.com/Halo-Lab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sanity Lighthouse Plugin (for Sanity Studio v3)\n\n\u003cbr /\u003e\n\u003cimg width=\"350\" alt=\"Sanity Lighthouse logo\" src=\"https://github.com/Halo-Lab/sanity-lighthouse-plugin/assets/342951/fbaf0ace-7553-42af-9735-1226ffd869d3\"\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n\u003e This plugin is for Sanity Studio v3 and uses the [PageSpeed Insights API](https://developers.google.com/speed/docs/insights/v5/about) to provide insights into the speed and performance of your website. To use this plugin, you will need to have an API key for the PageSpeed Insights API.\n\n\u003cimg width=\"1295\" alt=\"Sanity Lighthouse in use\" src=\"https://github.com/Halo-Lab/sanity-lighthouse-plugin/assets/342951/4fa7137b-0e35-4370-9f5f-68de77cd99bc\"\u003e\n\n## Get your credentials here\n\nTo use the PageSpeed Insights API, you will need to obtain an API key. You can get your API key by following the instructions provided in the [PageSpeed API documentation](https://developers.google.com/speed/docs/insights/v5/get-started#APIKey).\n\nAdditionally, if you use Gmail for your Google account, you may need to generate an app password to use as your API key. Instructions for generating app passwords can be found in [Google's support documentation](https://support.google.com/accounts/answer/185833).\n\nAPI key allow the Sanity Page Speed plugin to access the PageSpeed Insights API and provide speed and performance insights for your website.\n\n## Installation\n\n\u003e To install this plugin, use the following command:\n\n```sh\nnpm install sanity-lighthouse-plugin\n```\n\n## Usage\n\n\u003e To use this plugin, add it as a plugin in your `sanity.config.ts` (or .js) file, as shown in the example below:\n\n```ts\nimport {defineConfig} from 'sanity'\nimport {lighthousePlugin} from 'sanity-lighthouse-plugin'\n\nexport default defineConfig({\n  // ...\n  plugins: [lighthousePlugin()],\n})\n```\n\nAfter adding the plugin, you can access it by opening the \"Page Speed\" tab in the Sanity Studio.\nOn this page, you'll need to enter the API key you generated (as described above) within the modal window.\nAfter that, you can enter the URL of the page you want to analyze and click \"Run Analysis\" to get insights into the speed and performance of your website.\n\n## Acknowledgments\n\nThis plugin uses the [PageSpeed Insights API](https://developers.google.com/speed/docs/insights/v5/about) by Google to provide insights into website speed and performance.\n\n## Develop \u0026 test\n\nThis plugin uses [@sanity/plugin-kit](https://github.com/sanity-io/plugin-kit)\nwith default configuration for build \u0026 watch scripts.\n\nSee [Testing a plugin in Sanity Studio](https://github.com/sanity-io/plugin-kit#testing-a-plugin-in-sanity-studio)\non how to run this plugin with hotreload in the studio.\n\n\u003ca href=\"https://www.halo-lab.com/?utm_source=github\"\u003e\n  \u003cimg\n    src=\"https://dgestran.sirv.com/Images/supported-by-halolab.png\"\n    alt=\"Supported by Halo lab\"\n    height=\"60\"\n  \u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalo-lab%2Fsanity-lighthouse-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalo-lab%2Fsanity-lighthouse-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalo-lab%2Fsanity-lighthouse-plugin/lists"}