Paketwerk
npm optional platform matrix
Return optional skips and required platform failures from supplied manifests.
POST https://paket.halowerk.com/v1/npm-optional-platform-matrixInputs
| Field | Type | Required | Description |
|---|---|---|---|
| packages | array | Yes | |
| targets | array | Yes |
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
}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
- Paketwerk0.01 USDC
agent framework releases
POSThttps://paket.halowerk.com/v1/agent-framework-releasesReturn published release tags and dates for a selected agent framework. Public metadata with source time and checksum. Source failures are not charged; no source code is executed.
- Paketwerk0.003 USDC
artifact hash
POSThttps://paket.halowerk.com/v1/artifact-hashTakes a file digest and answers which released package version it is. Useful for an artefact found in a container layer, a build directory or an attachment with no metadata attached. Hex and base64 input are both accepted and normalised, th
- Paketwerk0.005 USDC
dependency bloat
POSThttps://paket.halowerk.com/v1/dependency-bloatScores how much a package costs to depend on, using the resolved graph rather than a guess. Four measurements: the number of transitive nodes, the maximum depth, how many packages appear at more than one version, and the fan-out of the root