Kit Build Capacity

Find complete kits buildable from shared component stock, summing repeated bill-of-material rows and identifying the limiting components.

Custom requests cost 0.04 USDC on Base.

Download example JSON · OpenAPI · Source and usage

Pay with a browser wallet · Open example in checkout

POST a JSON request to /kit-build-capacity/v1/check with an x402 V2 client.

Worked example

Request

{
  "parts": [
    {
      "sku": "pin",
      "per_kit": 2
    },
    {
      "sku": "pin",
      "per_kit": 1
    },
    {
      "sku": "case",
      "per_kit": 1
    }
  ],
  "stock": [
    {
      "sku": "pin",
      "units": 8
    },
    {
      "sku": "case",
      "units": 4
    }
  ]
}

Result

{
  "kits": 2,
  "limiting_skus": [
    "pin"
  ],
  "components": [
    {
      "sku": "pin",
      "per_kit": 3,
      "used": 6,
      "remaining": 2
    },
    {
      "sku": "case",
      "per_kit": 1,
      "used": 2,
      "remaining": 2
    }
  ]
}

Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter