{"id":29128498,"url":"https://github.com/oddbird/browser-support","last_synced_at":"2025-06-30T02:07:43.835Z","repository":{"id":264384576,"uuid":"893181393","full_name":"oddbird/browser-support","owner":"oddbird","description":"A web component for showing browser-support data from the Web Features project","archived":false,"fork":false,"pushed_at":"2024-11-23T21:39:22.000Z","size":40,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T20:32:15.384Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oddbird.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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},"funding":{"github":"oddbird","open_collective":"oddbird-open-source"}},"created_at":"2024-11-23T18:41:02.000Z","updated_at":"2025-01-30T21:55:35.000Z","dependencies_parsed_at":"2024-11-23T21:47:00.720Z","dependency_job_id":null,"html_url":"https://github.com/oddbird/browser-support","commit_stats":null,"previous_names":["oddbird/browser-support"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/oddbird/browser-support","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Fbrowser-support","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Fbrowser-support/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Fbrowser-support/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Fbrowser-support/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oddbird","download_url":"https://codeload.github.com/oddbird/browser-support/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddbird%2Fbrowser-support/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259776002,"owners_count":22909363,"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":"2025-06-30T02:07:42.453Z","updated_at":"2025-06-30T02:07:43.781Z","avatar_url":"https://github.com/oddbird.png","language":"JavaScript","funding_links":["https://github.com/sponsors/oddbird","https://opencollective.com/oddbird-open-source"],"categories":[],"sub_categories":[],"readme":"# browser-support\n\nA web component for showing browser-support data\nfrom the Web Features project.\n\nThis is inspired by the official\n[`baseline-status` component](https://github.com/web-platform-dx/baseline-status)\nfrom Google and the Web Platform DX community group.\nIt currently uses their `https://api.webstatus.dev/v1/features/` API.\n\n## Features\n\n- Stand-alone component, without Lit or other frameworks\n- Responsive to font sizes, available space, and light/dark schemes\n- Allows customization of the title markup (`h2` by default)\n- 'Newly supported' web features show a timeline towards broad support\n- Allows for simple light-dom fallback \u0026 progressive enhancement\n\n**[Demo](https://oddbird.github.io/browser-support/index.html)**\n\n## Examples\n\nGeneral usage example:\n\n```html\n\u003cscript type=\"module\" src=\"browser-support.js\"\u003e\u003c/script\u003e\n\n\u003cbrowser-support data-feature=\"container-queries\"\u003e\u003c/browser-support\u003e\n\n\u003c!-- With a light-dom fallback… --\u003e\n\u003cbrowser-support\u003e\n  \u003ch3 slot=\"title\"\u003eContainer Style Queries\u003c/h3\u003e\n  \u003ca href=\"https://web-platform-dx.github.io/web-features-explorer/features/container-style-queries/\"\u003e\n    Browser support data\n  \u003c/a\u003e\n\u003c/browser-support\u003e\n```\n\n## Installation\n\nYou have a few options (choose one):\n\n1. Install via\n   [npm](https://www.npmjs.com/package/@oddbird/browser-support):\n   `npm install @oddbird/browser-support`\n2. [Download the source manually from GitHub](https://github.com/oddbird/browser-support/releases)\n   into your project.\n3. Skip this step\n   and use the script directly\n   via a 3rd party CDN\n   (not recommended for production use)\n\n## Usage\n\nMake sure you include the `\u003cscript\u003e` in your project\n(choose one, and update the version number as needed):\n\n```html\n\u003c!-- Host yourself --\u003e\n\u003cscript type=\"module\" src=\"browser-support.js\"\u003e\u003c/script\u003e\n```\n\n```html\n\u003c!-- 3rd party CDN, not recommended for production use --\u003e\n\u003cscript\n  type=\"module\"\n  src=\"https://www.unpkg.com/@oddbird/browser-support@0.1.0/browser-support.js\"\n\u003e\u003c/script\u003e\n```\n\n```html\n\u003c!-- 3rd party CDN, not recommended for production use --\u003e\n\u003cscript\n  type=\"module\"\n  src=\"https://esm.sh/@oddbird/browser-support@0.1.0\"\n\u003e\u003c/script\u003e\n```\n\nOr use the built-in\n[WebC](https://www.11ty.dev/docs/languages/webc/) component\nwith [Eleventy](https://www.11ty.dev/docs/),\nby adding `\"npm:@oddbird/browser-support/*.webc\"`\nto the Eleventy WebC Plugin `components` registry:\n\n```js\n// Only one module.exports per configuration file, please!\nmodule.exports = function (eleventyConfig) {\n  eleventyConfig.addPlugin(eleventyWebcPlugin, {\n    components: [\n      // Add as a global WebC component\n      \"npm:@oddbird/browser-support/*.webc\",\n    ],\n  });\n}\n```\n\n### Slots\n\nThe `title` slot allows providing a fallback title,\nand also the desired markup.\nWhen the component is defined,\nthe actual title text will be replaced\nwith the name of the feature.\n\n## ToDo\n\n- [ ] Provide more clarity around the progress bar?\n- [ ] Improve and document styling options\n- [ ] List mobile browser support data\n- [ ] Show browser versions (or how many versions back?)\n- [ ] Allow changing title markup with an attribute?\n\n## Support\n\nAt [OddBird](https://oddbird.net/),\nwe enjoy collaborating and contributing\nas part of an open web community.\nBut those contributions take time and effort.\nIf you're interested in supporting our\nopen-source work,\nconsider becoming a\n[GitHub sponsor](https://github.com/sponsors/oddbird),\nor contributing to our\n[Open Collective](https://opencollective.com/oddbird-open-source).\n\n❤️ Thanks!\n\n## Credit\n\nWith thanks to the following people:\n\n- [David Darnes](https://darn.es/) for the\n  [Web Component repo template](https://github.com/daviddarnes/component-template)\n  that this one is based on.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddbird%2Fbrowser-support","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foddbird%2Fbrowser-support","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddbird%2Fbrowser-support/lists"}