{"id":15538025,"url":"https://github.com/zachleat/speedlify-score","last_synced_at":"2025-07-15T11:38:33.472Z","repository":{"id":57367287,"uuid":"280539050","full_name":"zachleat/speedlify-score","owner":"zachleat","description":"A web component that shows Lighthouse scores via Speedlify.","archived":false,"fork":false,"pushed_at":"2024-03-14T22:23:56.000Z","size":40,"stargazers_count":44,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-13T20:39:43.885Z","etag":null,"topics":["speedlify","web-components"],"latest_commit_sha":null,"homepage":"https://www.speedlify.dev/","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/zachleat.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":"2020-07-17T22:47:35.000Z","updated_at":"2025-03-24T01:51:28.000Z","dependencies_parsed_at":"2024-10-02T12:01:26.703Z","dependency_job_id":"794b30ce-9f88-42e7-a405-a3ab3b3c5969","html_url":"https://github.com/zachleat/speedlify-score","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"cbc5a212101fee245cafa406536f43bb3156b814"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/zachleat/speedlify-score","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2Fspeedlify-score","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2Fspeedlify-score/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2Fspeedlify-score/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2Fspeedlify-score/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachleat","download_url":"https://codeload.github.com/zachleat/speedlify-score/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2Fspeedlify-score/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265432627,"owners_count":23764132,"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":["speedlify","web-components"],"created_at":"2024-10-02T12:01:11.166Z","updated_at":"2025-07-15T11:38:33.426Z","avatar_url":"https://github.com/zachleat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# speedlify-score Web Component\n\n* [I added Lighthouse Scores to my Site’s Footer and You Can Too](https://www.zachleat.com/web/lighthouse-in-footer/)\n* Related blog post: [Use Speedlify to Continuously Measure Site Performance](https://www.zachleat.com/web/speedlify/)\n\n## Demo\n\n* [`\u003cspeedlify-score\u003e` Demo](https://zachleat.github.io/speedlify-score/demo.html) using [speedlify.dev instance](https://www.speedlify.dev/)\n\n## Usage\n\n### Installation\n\n```\nnpm install speedlify-score\n```\n\n### Include Sources\n\nInclude `speedlify-score.js` in your page (preferably concatenated in via a build script).\n\n### Use Markup\n\nUse `\u003cspeedlify-score\u003e` in your markup.\n\nRequired attributes:\n\n* `speedlify-url`: **Required**. The URL to your Speedlify instance.\n* `hash`: **Preferred** but technically optional. A hash representing the active URL.\n\t* Look this up via your Speedlify instance’s `/api/urls.json` file. [Full instructions available at this blog post](https://www.zachleat.com/web/lighthouse-in-footer/#adding-this-to-your-eleventy-site!).\n* `url`: Optional. Not used if `hash` is supplied. This is the raw URL of the page you’d like to see the score for. Defaults to the current page.\n\n#### Examples\n\n```html\n\u003c!-- Preferred --\u003e\n\u003cspeedlify-score speedlify-url=\"https://www.speedlify.dev/\" hash=\"bbfa43c1\"\u003e\n```\n\n```html\n\u003c!-- Slower method, but doesn’t require hash --\u003e\n\u003cspeedlify-score speedlify-url=\"https://www.speedlify.dev/\" url=\"https://www.11ty.dev/\"\u003e\n```\n\n#### Use Attributes to customize output\n\n* If no attributes are used, it `score` is implicit and default.\n* If some attributes are in play, you must explicitly add `score`.\n* `requests`\n* `weight`\n* `rank`\n* `rank-change` (difference between old and new rank)\n\n## Changelog\n\n* `v1.0.0`: First release\n* `v2.0.0`: Changes default render behavior (only shows Lighthouse scores by default, summary and weight are not). Adds feature to use attributes to customize output if you want to opt-in to more.\n* `v3.0.0`: Removes `flex-wrap: wrap` for top level component.\n* `v4.0.0`: Using Shadow DOM, removes need for external stylesheet.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachleat%2Fspeedlify-score","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachleat%2Fspeedlify-score","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachleat%2Fspeedlify-score/lists"}