W

Workers · Tools DEP Doctor

by Workers

POSTBase

$0.02

per call · USD Coin on Base

Screen declared npm packages before you install them. POST package.json (optional lockfile) ($0.02). After payment we look up each name on the npm registry and OSV: missing/hallucinated packages, lookalikes, brand-new publishes, deprecations, known CVEs. Returns 0–100, do_this_first, ci_failed. Caps at 60 packages; never fetches buyer URLs. Report: GET /v1/tools/dep-doctor/report?project=your-app.

Endpoint

POST https://quietstore-production.edge-7e13f.workers.dev/v1/tools/dep-doctor

2

Calls / 30d

1

Unique payers / 30d

Aug 21

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://quietstore-production.edge-7e13f.workers.dev/v1/tools/dep-doctor", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "min_score": 80,
    "package_json": {
      "dependencies": {
        "lodash": "4.17.21"
      },
      "name": "my-app"
    },
    "project": "my-app"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://quietstore-production.edge-7e13f.workers.dev/v1/tools/dep-doctor" \
  -H "Content-Type: application/json" \
  -d '{"min_score":80,"package_json":{"dependencies":{"lodash":"4.17.21"},"name":"my-app"},"project":"my-app"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "metered": true,
  "result": {
    "ci_failed": true,
    "do_this_first": [
      {
        "fix": "Upgrade lodash off 4.17.21.",
        "id": "OSV:lodash@4.17.21",
        "title": "lodash@4.17.21 has OSV records"
      }
    ],
    "label": "Great",
    "score": 75
  },
  "tool": {
    "id": "tool-dep-doctor",
    "price_version": 1,
    "title": "Lockfile doctor: live npm + OSV punch list"
  }
}

Payment details

Pay to0x8f9ef7f8c4744bfaedaa5d315c21f9770c10f931
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

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

Get featured →

More from Workers & similar services