Skip to content
HALOWERK

Codewerk

license compat tree

Resolves the package version and its production dependencies breadth-first through the npm registry (semver ranges resolved to the highest matching published version, up to 80 packages), reads each declared SPDX license expression and classifies it as permissive, weak copyleft, strong copyleft, network copyleft or unknown. Against the target (MIT, Apache-2.0, BSD-3-Clause, proprietary or GPL-3.0) each dependency is marked ok, conditions or conflict with a one-line reason. Declared licenses.

POST https://code.halowerk.com/v1/license-compat-tree

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
namestringYes
versionstringNo
target_licensestringYes
max_packagesintegerNo
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "name",
    "target_license"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 214
    },
    "version": {
      "type": "string",
      "maxLength": 60,
      "default": "latest"
    },
    "target_license": {
      "type": "string",
      "enum": [
        "MIT",
        "Apache-2.0",
        "BSD-3-Clause",
        "proprietary",
        "GPL-3.0"
      ]
    },
    "max_packages": {
      "type": "integer",
      "minimum": 1,
      "maximum": 80,
      "default": 60
    }
  }
}

Open original schema

Published input example

{
  "name": "express",
  "version": "4.21.2",
  "target_license": "proprietary"
}

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