Skip to content
HALOWERK

Codewerk

wasi run

Compiles a caller-supplied WebAssembly version 1 module (at most 64 KiB) with Node.js 22 and runs its _start command through the WASI preview1 ABI. Guest arguments and stdin are data, not host command arguments. No environment variables; the only preopened directory is /work, populated with up to eight small files and returned as base64 afterward. A separate OS rootfs, dynamic unprivileged user, read-only runtime mounts, private network, address-family restrictions and systemd cgroup limits.

POST https://code.halowerk.com/v1/wasi-run

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
wasm_base64stringYesCanonical standard base64 of a WASI command module, at most 64 KiB.
stdinstringNoUTF-8 standard input, at most 8192 bytes.
argsarrayNo
filesarrayNo
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "wasm_base64"
  ],
  "properties": {
    "wasm_base64": {
      "type": "string",
      "minLength": 12,
      "maxLength": 87384,
      "description": "Canonical standard base64 of a WASI command module, at most 64 KiB."
    },
    "stdin": {
      "type": "string",
      "maxLength": 8192,
      "default": "",
      "description": "UTF-8 standard input, at most 8192 bytes."
    },
    "args": {
      "type": "array",
      "maxItems": 16,
      "default": [],
      "items": {
        "type": "string",
        "maxLength": 128,
        "pattern": "^[^\\x00]*$"
      }
    },
    "files": {
      "type": "array",
      "maxItems": 8,
      "default": [],
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "base64"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[^/\\\\\\x00-\\x1f]+$",
            "description": "A unique flat file name, without path separators or control characters."
          },
          "base64": {
            "type": "string",
            "maxLength": 43692
          }
        }
      }
    }
  }
}

Open original schema

Published input example

{
  "wasm_base64": "AGFzbQEAAAABDAJgAABgBH9/f38BfwIjARZ3YXNpX3NuYXBzaG90X3ByZXZpZXcxCGZkX3dyaXRlAAEDAgEABQMBAAEHEwIGbWVtb3J5AgAGX3N0YXJ0AAEKHgEcAEEgQYABNgIAQSRBBjYCAEEBQSBBAUEIEAAaCwsNAQBBgAELBmhlbGxvCg=="
}

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 โ†’