{"id":31614256,"url":"https://github.com/treosh/baseline-url","last_synced_at":"2026-04-21T09:32:41.217Z","repository":{"id":317753498,"uuid":"1068584397","full_name":"treosh/baseline-url","owner":"treosh","description":"Test any URL to see which baseline features are used","archived":false,"fork":false,"pushed_at":"2025-10-02T21:11:36.000Z","size":32,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-18T03:57:28.583Z","etag":null,"topics":["baseline","chrome","web-features"],"latest_commit_sha":null,"homepage":"","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/treosh.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-02T15:48:57.000Z","updated_at":"2025-10-08T06:15:47.000Z","dependencies_parsed_at":"2025-10-02T21:22:35.066Z","dependency_job_id":"cf0dadde-c359-466b-9ba2-69d71f07cb9d","html_url":"https://github.com/treosh/baseline-url","commit_stats":null,"previous_names":["treosh/baseline-url"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/treosh/baseline-url","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treosh%2Fbaseline-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treosh%2Fbaseline-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treosh%2Fbaseline-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treosh%2Fbaseline-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/treosh","download_url":"https://codeload.github.com/treosh/baseline-url/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treosh%2Fbaseline-url/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32085480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["baseline","chrome","web-features"],"created_at":"2025-10-06T10:36:27.930Z","updated_at":"2026-04-21T09:32:41.148Z","avatar_url":"https://github.com/treosh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Baseline URL\n\n\u003e Test a URL to see which [`baseline`](https://web-platform-dx.github.io/web-features/) features are used.\n\nNeed to know what are the new web features used by a page?\n\nThis library lists all modern features used by a URL, along with their [Baseline status](https://web-platform-dx.github.io/web-features/).\nIt loads a page with Headless Chrome, requests an internal [`UseCounter API`](https://chromium.googlesource.com/chromium/src/+/HEAD/docs/use_counter_wiki.md), and maps WebDX ids to Baseline features.\n\n## Usage\n\n```bash\n# format output as text (useful for quick test)\nnpx baseline-url 'https://treo.sh/'\n\n # returns a json with all detected baseline features\nnpx baseline-url --output=json 'https://web.dev/' \u003e features.json\n```\n\nExample text output:\n\n```text\nFound 17 WebDX Features used on https://treo.sh:\n• nullish-coalescing - high/30.1 - The nullish coalescing (??) and nullish coalescing assignment (??=) operators return (or assign) its (379)\n• not - high/83.7 - The :not() functional pseudo-class matches elements that do not match the selectors in its argument. (343)\n• ua-client-hints - limited/73.7 - The Sec-CH-UA HTTP request header and the navigator.userAgentData API expose browser and platform in (341)\n• request-animation-frame - high/61 - The requestAnimationFrame() method schedules a function that runs before the next repaint. You can u (323)\n• beforeinstallprompt - limited/12.9 - The beforeinstallprompt event fires when a Progressive Web App (PWA) is installable. You can cancel  (303)\n• manifest - limited/21.6 - A web app manifest file provides metadata about the site. The browser can use the metadata to instal (302)\n• layout-instability - limited/38 - The layout-shift performance entry and LayoutShift API measures the layout stability of web pages ba (277)\n• bfcache-blocking-reasons - limited/10.2 - The notRestoredReasons property of a PerformanceNavigationTiming object explains why the current doc (276)\n• fetch-priority - low/30.1 - The fetch() priority option and the fetchpriority HTML attribute give hints to the browser about whi (268)\n• referrer-policy - high/34.6 - The Referrer-Policy HTTP header and referrerpolicy HTML attributes control whether requests have the (260)\n• outline - low/78 - The outline CSS shorthand sets the color, style, and width of a line around an element, outside of t (189)\n• background-clip-text - limited/43.9 - The background-clip: text CSS declaration draws the background underneath only the text in the eleme (131)\n• masks - low/34.6 - The mask CSS property (and several longhand properties) partially or completely hides an element acc (101)\n• webp - high/38.6 - The WebP image format is a raster graphics file format that supports animation, alpha transparency,  (79)\n• js-modules - high/28.3 - JavaScript modules allow code to be organized into reusable units. Modules use import to load other  (47)\n• flexbox - high/82.3 - Flexbox is a one-dimensional layout system, which places content either horizontally or vertically,  (28)\n• accent-color - limited/1.9 - The accent-color CSS property sets a color for checkboxes, radio buttons, and other form controls. (6)\n```\n\n## Usage with Node\n\n```js\nimport { testUrl } from 'baseline-url'\n\nconst features = await testUrl('https://treo.sh/')\nconsole.table(\n  features.map((f) =\u003e ({ ...f, usage: f.chromeUsage, desc: f.desc.slice(0, 50) })),\n  ['id', 'status', 'chromeUsage', 'dxId', 'desc'],\n)\n// output:\n┌─────────┬──────────────────────────┬─────────┬───────┬──────┬────────────────────────────────────────────────────┐\n│ (index) │ id                       │ status  │ usage │ dxId │ desc                                               │\n├─────────┼──────────────────────────┼─────────┼───────┼──────┼────────────────────────────────────────────────────┤\n│ 0       │ nullish-coalescing       │ high    │ 30.1  │ 379  │ The nullish coalescing (??) and nullish coalescing │\n│ 1       │ not                      │ high    │ 83.7  │ 343  │ The :not() functional pseudo-class matches element │\n│ 2       │ ua-client-hints          │ limited │ 73.7  │ 341  │ The Sec-CH-UA HTTP request header and the navigato │\n│ 3       │ request-animation-frame  │ high    │ 61    │ 323  │ The requestAnimationFrame() method schedules a fun │\n│ 4       │ beforeinstallprompt      │ limited │ 12.9  │ 303  │ The beforeinstallprompt event fires when a Progres │\n│ 5       │ manifest                 │ limited │ 21.6  │ 302  │ A web app manifest file provides metadata about th │\n│ 6       │ layout-instability       │ limited │ 38    │ 277  │ The layout-shift performance entry and LayoutShift │\n│ 7       │ bfcache-blocking-reasons │ limited │ 10.2  │ 276  │ The notRestoredReasons property of a PerformanceNa │\n│ 8       │ fetch-priority           │ low     │ 30.1  │ 268  │ The fetch() priority option and the fetchpriority  │\n│ 9       │ referrer-policy          │ high    │ 34.6  │ 260  │ The Referrer-Policy HTTP header and referrerpolicy │\n│ 10      │ outline                  │ low     │ 78    │ 189  │ The outline CSS shorthand sets the color, style, a │\n│ 11      │ background-clip-text     │ limited │ 43.9  │ 131  │ The background-clip: text CSS declaration draws th │\n│ 12      │ masks                    │ low     │ 34.6  │ 101  │ The mask CSS property (and several longhand proper │\n│ 13      │ webp                     │ high    │ 38.6  │ 79   │ The WebP image format is a raster graphics file fo │\n│ 14      │ js-modules               │ high    │ 28.3  │ 47   │ JavaScript modules allow code to be organized into │\n│ 15      │ flexbox                  │ high    │ 82.3  │ 28   │ Flexbox is a one-dimensional layout system, which  │\n│ 16      │ accent-color             │ limited │ 1.9   │ 6    │ The accent-color CSS property sets a color for che │\n└─────────┴──────────────────────────┴─────────┴───────┴──────┴────────────────────────────────────────────────────┘\n```\n\nExample of features structure:\n\n```json\n[\n  {\n    \"id\": \"http3\",\n    \"dxId\": 316,\n    \"name\": \"HTTP/3\",\n    \"status\": \"low\",\n    \"desc\": \"HTTP/3 is a major revision of the HTTP network protocol, providing improved performance and efficiency by using QUIC as the underlying transport protocol.\",\n    \"chromeUsage\": 42.1\n  },\n  {\n    \"id\": \"zstd\",\n    \"dxId\": 291,\n    \"name\": \"Zstandard compression\",\n    \"status\": \"limited\",\n    \"desc\": \"Zstandard or zstd is fast lossless compression algorithm. When used as a content encoding, it is often faster and offers better compression than brotli.\",\n    \"chromeUsage\": 34.9\n  }\n]\n```\n\n## Credits\n\nSponsored by [Treo.sh - Site speed monitoring made simple](https://treo.sh).\n\n[![](https://github.com/treosh/baseline-url/workflows/CI/badge.svg)](https://github.com/treosh/baseline-url/actions?workflow=CI)\n[![](https://img.shields.io/npm/v/baseline-url.svg)](https://npmjs.org/package/baseline-url)\n[![](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreosh%2Fbaseline-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftreosh%2Fbaseline-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreosh%2Fbaseline-url/lists"}