Codewerk
bundle size
Builds the same caller-supplied project three ways using installed esbuild 0.28.2 (MIT): bundled without minification or tree-shaking, minified without tree-shaking, then minified with optional tree-shaking. Reports exact output byte lengths, level-9 gzip size, source bytes, per-input contributions and unused provided files. All imports resolve exclusively inside the supplied in-memory file map or explicit aliases; no npm installation, host-file resolution, network or user plugins..
POST https://code.halowerk.com/v1/bundle-sizeInputs
| Field | Type | Required | Description |
|---|---|---|---|
| entry | string | Yes | |
| files | object | Yes | |
| aliases | object | No | |
| format | See schema | No | |
| tree_shaking | boolean | No | |
| include_bundle | boolean | No |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"entry",
"files"
],
"properties": {
"entry": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9][A-Za-z0-9._/-]*$"
},
"files": {
"type": "object",
"minProperties": 1,
"maxProperties": 16,
"propertyNames": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9][A-Za-z0-9._/-]*$"
},
"additionalProperties": {
"type": "string",
"maxLength": 16384
}
},
"aliases": {
"type": "object",
"maxProperties": 16,
"default": {},
"propertyNames": {
"type": "string",
"pattern": "^[@A-Za-z0-9][@A-Za-z0-9._/-]{0,127}$"
},
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9][A-Za-z0-9._/-]*$"
}
},
"format": {
"enum": [
"esm",
"iife",
"cjs"
],
"default": "esm"
},
"tree_shaking": {
"type": "boolean",
"default": true
},
"include_bundle": {
"type": "boolean",
"default": false
}
}
}Published input example
{
"entry": "main.js",
"files": {
"main.js": "import {add} from \"./math.js\"; export const answer=add(2,3);",
"math.js": "export const add=(a,b)=>a+b;"
},
"format": "esm"
}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