LO
Security · x402 · early usage

Compare two lockfiles and report what a manifest diff cannot see

Compare two lockfiles and report what a manifest diff cannot see. Reports newly installed transitive packages, resolved version moves with breaking risk, a registry that changed, and the most serious finding available here: the same version with a different i…

by api.zfinia.com · discovered, not yet claimed by its owner · updated 2026-10-04

30d calls1
30d payers1
MethodPOST
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Compare two lockfiles and report what a manifest diff cannot see. Reports newly installed transitive packages, resolved version moves with breaking risk, a registry that changed, and the most serious finding available here: the same version with a different integrity hash, meaning the artifact behind a version that was supposed to be immutable is not the one that was there before.

Tags: lockfile · supply chain · dependencies · diff · release safety · bazaar

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-10-04
Input example from Bazaar metadata
{
  "after": {
    "lockfileVersion": 3,
    "packages": {
      "": {
        "name": "orders-api",
        "version": "2.2.0"
      },
      "node_modules/cookie": {
        "integrity": "sha512-TAMPERED",
        "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
        "version": "0.5.0"
      },
      "node_modules/express": {
        "integrity": "sha512-DDDD",
        "resolved": "https://registry.npmjs.org/express/-/express-5.0.0.tgz",
        "version": "5.0.0"
      },
      "node_modules/router": {
        "integrity": "sha512-EEEE",
        "resolved": "https://packages.internal.example/router/-/router-2.0.0.tgz",
        "version": "2.0.0"
      }
    }
  },
  "before": {
    "lockfileVersion": 3,
    "packages": {
      "": {
        "name": "orders-api",
        "version": "2.1.0"
      },
      "node_modules/cookie": {
        "integrity": "sha512-BBBB",
        "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
        "version": "0.5.0"
      },
      "node_modules/dropped": {
        "integrity": "sha512-CCCC",
        "resolved": "https://registry.npmjs.org/dropped/-/dropped-1.0.0.tgz",
        "version": "1.0.0"
      },
      "node_modules/express": {
        "integrity": "sha512-AAAA",
        "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz",
        "version": "4.18.2"
      }
    }
  },
  "expected_registry": "https://registry.npmjs.org/"
}
Output example
{
  "added_count": 1,
  "after_lockfile_version": 3,
  "after_package_count": 3,
  "assumptions": [
    "Packages are keyed by name taken from the install path, so one package appearing at two paths is compared once.",
    "The same version with a different integrity hash means the published artifact changed under a version that was supposed to be immutable, which is reported as the most serious finding available here.",
    "A newly installed transitive package is reported even though no manifest changed, because that is what a lockfile diff exists to show."
  ],
  "before_lockfile_version": 3,
  "before_package_count": 3,
  "changed_count": 1,
  "changes": [
    {
      "from": "1.0.0",
      "kind": "removed",
      "name": "dropped",
      "to": null
    },
    {
      "dev": false,
      "from": "4.18.2",
      "kind": "major",
      "name": "express",
      "potentially_breaking": true,
      "to": "5.0.0"
    },
    {
      "dev": false,
      "from": null,
      "kind": "added",
      "name": "router",
      "to": "2.0.0"
    }
  ],
  "complete": true,
  "finding_count": 3,
  "findings": [
    {
      "code": "POTENTIALLY_BREAKING_RESOLUTION",
      "dependency": "express",
      "detail": "express resolved from 4.18.2 to 5.0.0, a major change."
    },
    {
      "code": "INTEGRITY_CHANGED_WITHOUT_VERSION",
      "dependency": "cookie",
      "detail": "cookie is still 0.5.0 but its integrity hash changed, so the artifact behind an immutable version is not the one that was there before."
    },
    {
      "code": "PACKAGE_ADDED",
      "dependency": "router",
      "detail": "router at 2.0.0 is newly installed."
    }
  ],
  "findings_by_code": {
    "INTEGRITY_CHANGED_WITHOUT_VERSION": 1,
    "PACKAGE_ADDED": 1,
    "POTENTIALLY_BREAKING_RESOLUTION": 1
  },
  "integrity_change_count": 1,
  "limitations": [
    "Lockfile comparison only. No registry is contacted, no integrity hash is verified against an artifact, and no advisory database is consulted, so this is not a vulnerability or supply-chain attestation...",
    "unchanged is true only when both lockfiles were fully read and nothing moved."
  ],
  "limits": {
    "maxComponents": 5000,
    "maxDependencies": 5000,
    "maxFindings": 500,
    "maxJobs": 200,
    "maxResources": 2000,
    "maxServices": 200,
    "maxVariables": 1000
  },
  "not_examined": [],
  "observed_at": "2026-10-02T00:00:00.000Z",
  "passed": false,
  "potentially_breaking_count": 1,
  "registry_change_count": 0,
  "removed_count": 1,
  "request_id": "example-request",
  "service_id": "lockfile_change_report",
  "service_version": "1.0.0",
  "unchanged": false
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/34025.json for the price and payment options.
  3. Pay. Call GET https://api.zfinia.com/x402/v1/lockfile-change-report. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.18 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
1 calls · 1 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.180x25e8245f07d5e4873987293dad666afbe56a960860s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x25e8245f07d5e4873987293dad666afbe56a9608",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "180000",
    "amountUsd": 0.18,
    "maxTimeoutSeconds": 60
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {},
  "type": "string"
}

Examples

curl
curl -X POST 'https://api.zfinia.com/x402/v1/lockfile-change-report' -H 'Content-Type: application/json' --data '{"after":{"lockfileVersion":3,"packages":{"":{"name":"orders-api","version":"2.2.0"},"node_modules/cookie":{"integrity":"sha512-TAMPERED","resolved":"https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz","version":"0.5.0"},"node_modules/express":{"integrity":"sha512-DDDD","resolved":"https://registry.npmjs.org/express/-/express-5.0.0.tgz","version":"5.0.0"},"node_modules/router":{"integrity":"sha512-EEEE","resolved":"https://packages.internal.example/router/-/router-2.0.0.tgz","version":"2.0.0"}}},"before":{"lockfileVersion":3,"packages":{"":{"name":"orders-api","version":"2.1.0"},"node_modules/cookie":{"integrity":"sha512-BBBB","resolved":"https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz","version":"0.5.0"},"node_modules/dropped":{"integrity":"sha512-CCCC","resolved":"https://registry.npmjs.org/dropped/-/dropped-1.0.0.tgz","version":"1.0.0"},"node_modules/express":{"integrity":"sha512-AAAA","resolved":"https://registry.npmjs.org/express/-/express-4.18.2.tgz","version":"4.18.2"}}},"expected_registry":"https://registry.npmjs.org/"}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATURE
JavaScript
const res = await fetch("https://api.zfinia.com/x402/v1/lockfile-change-report", {
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "body": "{\"after\":{\"lockfileVersion\":3,\"packages\":{\"\":{\"name\":\"orders-api\",\"version\":\"2.2.0\"},\"node_modules/cookie\":{\"integrity\":\"sha512-TAMPERED\",\"resolved\":\"https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz\",\"version\":\"0.5.0\"},\"node_modules/express\":{\"integrity\":\"sha512-DDDD\",\"resolved\":\"https://registry.npmjs.org/express/-/express-5.0.0.tgz\",\"version\":\"5.0.0\"},\"node_modules/router\":{\"integrity\":\"sha512-EEEE\",\"resolved\":\"https://packages.internal.example/router/-/router-2.0.0.tgz\",\"version\":\"2.0.0\"}}},\"before\":{\"lockfileVersion\":3,\"packages\":{\"\":{\"name\":\"orders-api\",\"version\":\"2.1.0\"},\"node_modules/cookie\":{\"integrity\":\"sha512-BBBB\",\"resolved\":\"https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz\",\"version\":\"0.5.0\"},\"node_modules/dropped\":{\"integrity\":\"sha512-CCCC\",\"resolved\":\"https://registry.npmjs.org/dropped/-/dropped-1.0.0.tgz\",\"version\":\"1.0.0\"},\"node_modules/express\":{\"integrity\":\"sha512-AAAA\",\"resolved\":\"https://registry.npmjs.org/express/-/express-4.18.2.tgz\",\"version\":\"4.18.2\"}}},\"expected_registry\":\"https://registry.npmjs.org/\"}"
});
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
import json
res = httpx.request("POST", "https://api.zfinia.com/x402/v1/lockfile-change-report", json=json.loads("{\"after\":{\"lockfileVersion\":3,\"packages\":{\"\":{\"name\":\"orders-api\",\"version\":\"2.2.0\"},\"node_modules/cookie\":{\"integrity\":\"sha512-TAMPERED\",\"resolved\":\"https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz\",\"version\":\"0.5.0\"},\"node_modules/express\":{\"integrity\":\"sha512-DDDD\",\"resolved\":\"https://registry.npmjs.org/express/-/express-5.0.0.tgz\",\"version\":\"5.0.0\"},\"node_modules/router\":{\"integrity\":\"sha512-EEEE\",\"resolved\":\"https://packages.internal.example/router/-/router-2.0.0.tgz\",\"version\":\"2.0.0\"}}},\"before\":{\"lockfileVersion\":3,\"packages\":{\"\":{\"name\":\"orders-api\",\"version\":\"2.1.0\"},\"node_modules/cookie\":{\"integrity\":\"sha512-BBBB\",\"resolved\":\"https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz\",\"version\":\"0.5.0\"},\"node_modules/dropped\":{\"integrity\":\"sha512-CCCC\",\"resolved\":\"https://registry.npmjs.org/dropped/-/dropped-1.0.0.tgz\",\"version\":\"1.0.0\"},\"node_modules/express\":{\"integrity\":\"sha512-AAAA\",\"resolved\":\"https://registry.npmjs.org/express/-/express-4.18.2.tgz\",\"version\":\"4.18.2\"}}},\"expected_registry\":\"https://registry.npmjs.org/\"}"))
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
api.zfinia.com
Endpoint
https://api.zfinia.com/x402/v1/lockfile-change-report
Machine-readable
/resources/34025.json