Zum Inhalt
HALOWERK

Paketwerk

runtime compat

Normalises what a package version declares about where it can run. For npm that is the engines, os and cpu fields plus the declared package type and whether native build scripts are present; for PyPI it is requires_python together with the operating system, implementation and Python version classifiers.

POST https://paket.halowerk.com/v1/runtime-compat

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
systemstringJaOnly npm and PyPI declare these fields machine-readably.
namestringJa
versionstringNeinDefaults to the latest version.
target_runtimestringNeinYour runtime version, e.g. 20.11.1 for Node or 3.11 for Python.
target_osstringNeinlinux, darwin, win32 …
target_archstringNeinx64, arm64 …
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "system",
    "name"
  ],
  "additionalProperties": false,
  "properties": {
    "system": {
      "type": "string",
      "enum": [
        "npm",
        "pypi"
      ],
      "description": "Only npm and PyPI declare these fields machine-readably."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 300
    },
    "version": {
      "type": "string",
      "maxLength": 60,
      "description": "Defaults to the latest version."
    },
    "target_runtime": {
      "type": "string",
      "maxLength": 40,
      "description": "Your runtime version, e.g. 20.11.1 for Node or 3.11 for Python."
    },
    "target_os": {
      "type": "string",
      "maxLength": 30,
      "description": "linux, darwin, win32 …"
    },
    "target_arch": {
      "type": "string",
      "maxLength": 20,
      "description": "x64, arm64 …"
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "system": "npm",
  "name": "express",
  "version": "4.18.2",
  "target_runtime": "20.11.1",
  "target_os": "linux"
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →