Skip to content
HALOWERK

Paketwerk

npm optional platform matrix

Return optional skips and required platform failures from supplied manifests.

POST https://paket.halowerk.com/v1/npm-optional-platform-matrix

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
packagesarrayYes
targetsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "packages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 214,
            "minLength": 1
          },
          "optional": {
            "type": "boolean"
          },
          "os": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 256,
              "minLength": 1
            },
            "maxItems": 20,
            "minItems": 0
          },
          "cpu": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 256,
              "minLength": 1
            },
            "maxItems": 20,
            "minItems": 0
          },
          "node": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1
          }
        },
        "required": [
          "name",
          "optional",
          "os",
          "cpu",
          "node"
        ],
        "additionalProperties": false
      },
      "maxItems": 25,
      "minItems": 1
    },
    "targets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "os": {
            "type": "string",
            "maxLength": 30,
            "minLength": 1
          },
          "cpu": {
            "type": "string",
            "maxLength": 30,
            "minLength": 1
          },
          "node": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1
          }
        },
        "required": [
          "os",
          "cpu",
          "node"
        ],
        "additionalProperties": false
      },
      "maxItems": 10,
      "minItems": 1
    }
  },
  "required": [
    "packages",
    "targets"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "packages": [
    {
      "name": "@esbuild/linux-x64",
      "optional": true,
      "os": [
        "linux"
      ],
      "cpu": [
        "x64"
      ],
      "node": ">=18"
    }
  ],
  "targets": [
    {
      "os": "linux",
      "cpu": "x64",
      "node": "22.0.0"
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub โ†’