82trust / 100

Package Preflight

by Forest Packages in Weather & location

x402 APIPassing, checked 47 min ago

Verify whether a specific npm or PyPI package version exists before installation, resolve the current/latest version, and report deprecation or yank state when available, plus license and runtime requirement. This is a public-registry package install preflight; it does not resolve dependency graphs or perform vulnerability analysis. Base mainnet USDC

POST https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/package/preflight

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
37 ms typical, 37 ms slowest 5%
Last check
47 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/package/preflight" \
  -H "content-type: application/json" \
  -d '{"ecosystem":"npm","package":"express","version":"5.1.0"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fhttp--forest-gas-station-mainnet--lcjl27p8lmjs.code.run%2Fpackage%2Fpreflight
const res = await pay("https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/package/preflight", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"ecosystem":"npm","package":"express","version":"5.1.0"}),
});
console.log(await res.json());

Example input

{
  "ecosystem": "npm",
  "package": "express",
  "version": "5.1.0"
}

Example output

{
  "capability": "package.preflight",
  "data": {
    "deprecated": false,
    "ecosystem": "npm",
    "exists": true,
    "latest_version": "5.1.0",
    "license": "MIT",
    "outdated": false,
    "package": "express",
    "project_url": "https://expressjs.com/",
    "registry_url": "https://registry.npmjs.org/express",
    "requested_version": "5.1.0",
    "requested_version_exists": true,
    "requires_runtime": ">= 18",
    "resolved_version": "5.1.0",
    "yanked": null
  },
  "meta": {
    "cache": "miss",
    "checked_at": "2026-09-26T00:00:00.000Z",
    "duration_ms": 25,
    "provider": "npm"
  },
  "ok": true,
  "version": "1"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
47 min agoPassed40239 ms$0.002
6 h agoPassed40237 ms$0.002