vrsai · Capabilities Package Install Preflight

by vrsai

POSTBaseSolana

$0.01

per call · USD Coin on Base

Check an exact npm or PyPI package version immediately before installation using current registry, vulnerability, malicious-package, withdrawal/deprecation, and verified provenance evidence. Returns ALLOW, REVIEW, BLOCK, or UNKNOWN with machine-readable reasons.

Endpoint

POST https://api.vrsai.tech/v1/capabilities/package_install_preflight

5

Calls / 30d

2

Unique payers / 30d

Sep 3

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.vrsai.tech/v1/capabilities/package_install_preflight", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "purl": "pkg:npm/%40colors/colors@1.5.0"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.vrsai.tech/v1/capabilities/package_install_preflight" \
  -H "Content-Type: application/json" \
  -d '{"purl":"pkg:npm/%40colors/colors@1.5.0"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "decision": "ALLOW",
  "evidence": [
    {
      "attempts": 1,
      "latency_ms": 120,
      "observed_at": "2026-08-26T00:00:00.000Z",
      "source": "npm_registry",
      "status": "OK"
    },
    {
      "attempts": 1,
      "latency_ms": 240,
      "observed_at": "2026-08-26T00:00:00.000Z",
      "source": "osv",
      "status": "OK"
    },
    {
      "attempts": 1,
      "latency_ms": 90,
      "observed_at": "2026-08-26T00:00:00.000Z",
      "source": "deps_dev",
      "status": "OK"
    }
  ],
  "input_fingerprint": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "observations": {
    "deps_dev": {
      "advisory_ids": [],
      "canonical_name": "@colors/colors",
      "canonical_version": "1.5.0",
      "licenses": [
        "MIT"
      ]
    },
    "evidence_complete": true,
    "provenance": {
      "attestation_types": [],
      "expected_repository_match": "NOT_REQUESTED",
      "source_repositories": [],
      "verified": false
    },
    "registry": {
      "deprecated": false,
      "distribution_hashes": [],
      "exists": true,
      "install_scripts": [],
      "integrity": "sha512-fixture-integrity",
      "repository_metadata": {
        "url": "https://github.com/Marak/colors.js",
        "verified": false
      },
      "yanked": "NONE",
      "yanked_reasons": []
    },
    "vulnerabilities": {
      "families": [],
      "family_count": 0,
      "malicious_package_signal": false,
      "max_severity": "NONE",
      "raw_record_count": 0
    }
  },
  "observed_at": "2026-08-26T00:00:00.000Z",
  "package": {
    "ecosystem": "npm",
    "name": "@colors/colors",
    "purl": "pkg:npm/%40colors/colors@1.5.0",
    "version": "1.5.0"
  },
  "policy_version": "balanced-2026-08-26",
  "reason_codes": [
    "NO_BLOCKING_SIGNAL_OBSERVED"
  ],
  "unknowns": []
}

Payment details

Pay to0x6746dff7bdb1ed4940dbe50024795ad97cba09af
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from vrsai & similar services