Vets an npm package before install in one call: supply-chain risk score plus registry stats.
Vets an npm package before install in one call: supply-chain risk score plus registry stats. Composite: one call runs package-risk-npm + npm-package-stats in parallel for any npm package (scoped names supported). Returns the 0-10 risk score with risk_level bucket, contributing factors, typosquat candidates, and plain-English summary, plus the raw registry metrics: latest version, version count, age, days since last release, maintainer list, and last day/week/month/year downloads. Includes composed_of + per-component telemetry; partial failure degrades instead of failing. Use it as an npm install pre-flight, typosquat check + downloads + maintainers bundle, or Socket.dev-adjacent vetting bundle.
| Method | Endpoint | Price | Description |
|---|---|---|---|
POST | /v1/marketplace/api/npm-trust-pack | $0.046 | Invoke Npm Trust Pack (General) and return the upstream response. |
Requests are paid per call over the x402 protocol. Call the endpoint, receive a 402 Payment Required quote, then repeat the request with the signed payment header. The SDKs do both steps for you.
# 1. Ask for a quote
curl -i -X POST https://api.jarvisclaw.ai/v1/marketplace/api/npm-trust-pack \
-H 'Content-Type: application/json' \
-d '{}'
# 2. Pay it (the SDK signs and retries for you)
curl -X POST https://api.jarvisclaw.ai/v1/marketplace/api/npm-trust-pack \
-H 'Content-Type: application/json' \
-H 'X-PAYMENT: <signed-payload>' \
-d '{}'
Open in the marketplace
Docs: Getting started · x402 payments · x402 discovery · All APIs