Codewerk
js run
Evaluates a JavaScript script with the input JSON available as global input. The last expression is the result; undefined becomes null. Uses installed quickjs-emscripten 0.32.0 (MIT), with a fresh WASM runtime for every call, a 32 MiB VM heap and a 500 ms interrupt deadline. The worker runs as a fresh unprivileged DynamicUser in an empty, read-only rootfs with only runtime files mounted; no application state, credentials, host networking or module loader. systemd enforces 256 MiB total.
POST https://code.halowerk.com/v1/js-runInputs
| Field | Type | Required | Description |
|---|---|---|---|
| code | string | Yes | Synchronous JavaScript script; its last expression is returned. |
| input | See schema | No | Optional JSON value, exposed inside the guest as global input. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"minLength": 1,
"maxLength": 32000,
"description": "Synchronous JavaScript script; its last expression is returned."
},
"input": {
"description": "Optional JSON value, exposed inside the guest as global input."
}
}
}Published input example
{
"code": "input.prices.reduce((sum, price) => sum + price, 0)",
"input": {
"prices": [
12,
8,
5
]
}
}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