Codewerk
unused css
Runs PurgeCSS 8 over the HTML of a page and its CSS: inline <style> blocks are always included; CSS can be passed inline or, with a page URL, linked stylesheets are fetched (robots.txt respected, at most 6 stylesheets, 1.5 MB each). Reports for every stylesheet the rejected selectors, size before and after and the saved share; unused @keyframes and @font-face rules are removed by default, unused custom properties on request. Safelist entries keep classes or ids that are added by JavaScript.
POST https://code.halowerk.com/v1/unused-cssInputs
| Field | Type | Required | Description |
|---|---|---|---|
| html | string | No | HTML of the page (with inline <style> blocks). |
| css | string | No | Additional stylesheet content. |
| stylesheets | array | No | Several named stylesheets. |
| url | string | No | Alternative: public page URL; its HTML and linked stylesheets are fetched. |
| safelist | array | No | Class or id names to keep (added by JavaScript), e.g. "is-open"; a trailing * keeps every name with that prefix, e.g. "js-*". |
| remove_unused_keyframes | boolean | No | |
| remove_unused_font_faces | boolean | No | |
| remove_unused_variables | boolean | No | |
| include_purged_css | boolean | No | Return the purged CSS per stylesheet. |
| max_list | integer | No | Maximum rejected selectors listed per stylesheet. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"html": {
"type": "string",
"minLength": 1,
"maxLength": 240000,
"description": "HTML of the page (with inline <style> blocks)."
},
"css": {
"type": "string",
"maxLength": 240000,
"description": "Additional stylesheet content."
},
"stylesheets": {
"type": "array",
"maxItems": 10,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"css"
],
"properties": {
"name": {
"type": "string",
"maxLength": 200
},
"css": {
"type": "string",
"maxLength": 240000
}
}
},
"description": "Several named stylesheets."
},
"url": {
"type": "string",
"format": "uri",
"maxLength": 2000,
"description": "Alternative: public page URL; its HTML and linked stylesheets are fetched."
},
"safelist": {
"type": "array",
"maxItems": 200,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "^[.#]?[A-Za-z0-9_-]+\\*?$"
},
"description": "Class or id names to keep (added by JavaScript), e.g. \"is-open\"; a trailing * keeps every name with that prefix, e.g. \"js-*\"."
},
"remove_unused_keyframes": {
"type": "boolean",
"default": true
},
"remove_unused_font_faces": {
"type": "boolean",
"default": true
},
"remove_unused_variables": {
"type": "boolean",
"default": false
},
"include_purged_css": {
"type": "boolean",
"default": false,
"description": "Return the purged CSS per stylesheet."
},
"max_list": {
"type": "integer",
"minimum": 1,
"maximum": 2000,
"default": 300,
"description": "Maximum rejected selectors listed per stylesheet."
}
}
}Published input example
{
"html": "<div class=\"card\"><p>Hi</p></div>",
"css": ".card{padding:1rem}.modal{display:none}p{margin:0}"
}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
- Codewerk0.003 USDC
action sha pin
POSThttps://code.halowerk.com/v1/action-sha-pinFinds every "uses: owner/repo[/path]@ref" in a GitHub Actions workflow, resolves tags (including annotated tags) and branches to the commit SHA with git ls-remote against github.com, and rewrites the line to "uses: owner/repo[/path]@<sha> #
- Codewerk0.003 USDC
actionlint
POSThttps://code.halowerk.com/v1/actionlintRuns the official statically linked actionlint 1.7.12 release binary (MIT, SHA-256 checked against the published checksums) in an isolated child process without network, with the bundled ShellCheck 0.11.0 for run: scripts (pyflakes is not a
- Codewerk0.004 USDC
api changelog
POSThttps://code.halowerk.com/v1/api-changelogCompares operations, parameters, request bodies, response codes and media types, component schemas (one property level), servers and security schemes of two documents (Swagger 2.0 is converted with swagger2openapi first; 3.0 and 3.1 are rea