SALT19 Npm API

The npm API from SALT19 — 3 operation(s) for npm.

GitHub OpenAPI

Operations 3

POST /v1/npm-package-intel Check whether an npm package is deprecated or vulnerable before installing it… #
POST /v1/dependency-go-no-go Dependency approval decision for coding agents: decide whether an npm… #
POST /v1/dependency-upgrade-go-no-go Compare current and target npm versions and return GO/WARN/BLOCK plus… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/salt19-com:salt19-com-npm-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

salt19-com-npm-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SALT19 Agent Utility Grid Npm API
  version: 0.5.1
  description: SALT19 Agent Utility Grid with Proof402 machine-commerce preflight, x402 payment/delivery binding verification, Ed25519 signed receipts, and Merkle-batched audit evidence.
  contact:
    name: SALT19
    email: info@salt19.com
    url: https://salt19.com/
  x-guidance: Use the request schema for the selected POST utility. Paid routes use x402 v2 on Base mainnet with USDC. An unpaid request returns HTTP 402 with PAYMENT-REQUIRED; satisfy that challenge and retry the same request with the payment proof. Utility results are bounded decision-support evidence, not guarantees of security, compatibility, legal suitability, or runtime correctness.
  x-semantic-idempotency:
    required_for_paid_operations: true
    http_header: Idempotency-Key
    guarantee: one operation_id -> at most one durable execution effect and one successful economic transaction
    retry_rule: preserve the same operation ID after timeout or ambiguous response; never mint a new ID merely to retry the same intended purchase
  x-x402-client-compatibility:
    standard_clients_supported: true
    semantic_idempotency_header: recommended
    fallback: payment-proof-derived operation identity on paid retry
  x-proof402:
    version: proof402-v1
    commerce_root: SHA-256(domain || request_hash || offer_hash || policy_hash || payment_hash || settlement_hash || delivery_hash || nonce)
    receipt_signature: Ed25519
    free_verification: /proof402/receipts/{id}
  x-fresh-state-grid:
    version: 0.6.0
    positioning: live external state without buyer signup, subscriptions, or upstream API-key management
    acquisition_price_floor_usd: 0.01
  x-salt19-linked-verification:
    description: Receipt verification URLs are returned by paid decision/Proof402 results and require a concrete receipt identifier. They remain live runtime endpoints but are intentionally excluded from standalone agent discovery because an arbitrary probe has no valid receipt ID.
    routes:
    - /receipts/{id}
    - /proof402/receipts/{id}
  x-salt19-acquisition-router:
    version: free-tool-selection-v1
    start_here: /discover/find-tool
    pricing: /discover/pricing
    mcp_tools:
    - find-salt19-tool
    - salt19-pricing
    payment_preflight: x402-payment-preflight
servers:
- url: https://api.salt19.com
tags:
- name: npm
paths:
  /v1/npm-package-intel:
    post:
      operationId: npm-package-intel
      summary: Check whether an npm package is deprecated or vulnerable before installing it…
      description: npm dependency intelligence for coding agents. Resolve a package and version, inspect license, release freshness, deprecation, maintenance signals, and OSV vulnerability evidence before install, upgrade, dependency selection, package.json modification, or supply-chain review.
      tags:
      - npm
      x-x402-price: $0.03
      x-payment-info:
        protocols:
        - x402: {}
        price:
          mode: fixed
          currency: USD
          amount: '0.03'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                package:
                  type: string
                  minLength: 1
                  maxLength: 214
                version:
                  type: string
                  maxLength: 64
              required:
              - package
              additionalProperties: false
            example:
              package: hono
              version: 4.13.3
      responses:
        '200':
          description: Successful paid result
          content:
            application/json:
              example:
                package: hono
                version: 4.13.3
                license: MIT
                deprecated: false
                vulnerabilities: 0
                published_at: '2026-08-19T00:00:00.000Z'
        '402':
          description: x402 payment required
      security: []
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: Recommended for the strongest semantic at-most-once retry contract. Standard x402 clients may omit it; SALT19 derives a compatibility operation identity from the payment proof and canonical purchase on paid retry.
        schema:
          type: string
          minLength: 8
          maxLength: 128
          pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$
      x-salt19-semantic-idempotency:
        required: false
        conflict_status: 409
        missing_status: 428
        replay_header: X-SALT19-Idempotent-Replay
        recommended: true
        compatibility_mode: payment-proof-derived-on-paid-retry
  /v1/dependency-go-no-go:
    post:
      operationId: dependency-go-no-go
      summary: 'Dependency approval decision for coding agents: decide whether an npm…'
      description: Automated npm dependency adoption decision for coding agents. Decide GO, WARN, or BLOCK before adding or installing a dependency using OSV vulnerabilities, security evidence, license suitability, deprecation status, release freshness, maintenance age, and package metadata. Use for dependency approval, package selection, software supply-chain risk, install preflight, and autonomous package.json decisions.
      tags:
      - npm
      x-x402-price: $0.20
      x-payment-info:
        protocols:
        - x402: {}
        price:
          mode: fixed
          currency: USD
          amount: '0.20'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                package:
                  type: string
                  minLength: 1
                  maxLength: 214
                version:
                  type: string
                  maxLength: 64
              required:
              - package
              additionalProperties: false
            example:
              package: hono
              version: 4.13.3
      responses:
        '200':
          description: Successful paid result
          content:
            application/json:
              example:
                verdict: GO
                reasons:
                - No OSV vulnerabilities returned
                - License declared
                - Recent publication activity
                evidence:
                  package: hono
                  version: 4.13.3
                  license: MIT
                  vulnerabilities: 0
                policy_version: salt19-dependency-policy-v1
        '402':
          description: x402 payment required
      security: []
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: Recommended for the strongest semantic at-most-once retry contract. Standard x402 clients may omit it; SALT19 derives a compatibility operation identity from the payment proof and canonical purchase on paid retry.
        schema:
          type: string
          minLength: 8
          maxLength: 128
          pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$
      x-salt19-semantic-idempotency:
        required: false
        conflict_status: 409
        missing_status: 428
        replay_header: X-SALT19-Idempotent-Replay
        recommended: true
        compatibility_mode: payment-proof-derived-on-paid-retry
  /v1/dependency-upgrade-go-no-go:
    post:
      operationId: dependency-upgrade-go-no-go
      summary: Compare current and target npm versions and return GO/WARN/BLOCK plus…
      description: npm dependency upgrade decision for coding agents. Compare current and target versions using OSV vulnerabilities, deprecation, license, and release-age evidence before modifying package.json.
      tags:
      - npm
      x-x402-price: $0.16
      x-payment-info:
        protocols:
        - x402: {}
        price:
          mode: fixed
          currency: USD
          amount: '0.16'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                package:
                  type: string
                  minLength: 1
                  maxLength: 214
                current_version:
                  type: string
                  minLength: 1
                  maxLength: 64
                target_version:
                  type: string
                  minLength: 1
                  maxLength: 64
                runtime:
                  type: string
                  maxLength: 128
                framework:
                  type: string
                  maxLength: 128
                constraints:
                  type: array
                  maxItems: 32
                  items:
                    type: string
                    maxLength: 4000
              required:
              - package
              - current_version
              - target_version
              additionalProperties: false
            example:
              package: hono
              current_version: 4.13.2
              target_version: 4.13.3
              runtime: cloudflare-workers
              framework: hono
      responses:
        '200':
          description: Successful paid result
          content:
            application/json:
              example:
                verdict: GO
                upgrade_verdict: UPGRADE
                score: 0.84
                breaking_changes:
                  state: NOT_PROVEN
                  version_change: PATCH
                runtime_compatibility:
                  state: NOT_PROVEN
                peer_dependency_conflicts:
                  state: NOT_PROVEN
                security_implications:
                  state: SUPPORTED
                  current_osv_records: 0
                  target_osv_records: 0
                recommended_tests:
                - Install/resolve the target dependency in the actual caller lockfile.
        '402':
          description: x402 payment required
      security: []
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: Recommended for the strongest semantic at-most-once retry contract. Standard x402 clients may omit it; SALT19 derives a compatibility operation identity from the payment proof and canonical purchase on paid retry.
        schema:
          type: string
          minLength: 8
          maxLength: 128
          pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$
      x-salt19-semantic-idempotency:
        required: false
        conflict_status: 409
        missing_status: 428
        replay_header: X-SALT19-Idempotent-Replay
        recommended: true
        compatibility_mode: payment-proof-derived-on-paid-retry
x-salt19-standard-x402-compatibility: payment-proof-derived-idempotency-v1
x-salt19-payment-identity:
  official_extension: payment-identifier
  required: false
  internal_authority: canonical semantic operation id
  conflict_policy: fail-closed
x-salt19-late-settlement:
  states:
  - PENDING
  - UNRESOLVED
  - RECHECKING
  - CONFIRMED
  - CONFIRMED_LATE
  - FAILED
  - OUTCOME_UNKNOWN
  authority: Base receipt/log verification under facilitator uncertainty
x-proof402-delivery-receipt-compatibility:
  status: proposal-compatibility-adapter
  scheme: x402-delivery-receipt-proposal-compat-v0
  receipt_projection: /proof402/delivery-receipts/{id}
  verifier: /proof402/delivery-receipt/verify
  authority: Proof402 Ed25519/D1 receipt remains canonical
x-salt19-payability-promotion-gate:
  version: external-payability-advertisement-gate-v1
  rule: Paid routes with a fresh deterministic external-payability FAIL are omitted until a later certification no longer fails. Transient transport/retryable HTTP failures remain discoverable with degraded evidence.