Skip to content
HALOWERK

Codewerk

browser support

Resolves the Browserslist query (browserslist 4.29) and evaluates caniuse features from caniuse-lite 1.0.30001820 (caniuse.com data, CC BY 4.0; newest browser release in the data is reported) for every target browser. Features are given as caniuse IDs or detected: CSS is parsed with PostCSS and matched against about 150 property, value, selector and at-rule detectors for 140 caniuse features (grid, :has(), container queries, nesting, cascade layers, color functions, .); JavaScript is.

POST https://code.halowerk.com/v1/browser-support

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
targetsstringNoBrowserslist query, e.g. "defaults", "> 0.5%, last 2 versions, not dead" or "safari >= 15".
featuresarrayNocaniuse feature IDs, e.g. css-grid, flexbox-gap, css-has.
cssstringNoCSS to scan for features.
jsstringNoJavaScript to scan for syntax and API features.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "targets": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500,
      "default": "defaults",
      "description": "Browserslist query, e.g. \"defaults\", \"> 0.5%, last 2 versions, not dead\" or \"safari >= 15\"."
    },
    "features": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "type": "string",
        "pattern": "^[a-z0-9-]{2,60}$"
      },
      "description": "caniuse feature IDs, e.g. css-grid, flexbox-gap, css-has."
    },
    "css": {
      "type": "string",
      "maxLength": 200000,
      "description": "CSS to scan for features."
    },
    "js": {
      "type": "string",
      "maxLength": 200000,
      "description": "JavaScript to scan for syntax and API features."
    }
  }
}

Open original schema

Published input example

{
  "targets": "defaults",
  "css": ".card{display:grid;gap:1rem}.card:has(img){padding:0}",
  "js": "const r = await fetch(`/api`);"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’