# NetIntel NPM Package Intelligence Analyzer

> NetIntel NPM Package Intelligence Analyzer is a paid API for AI agents from netintel.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Analyzes an npm package and returns a security/quality grade, score, license info, maintainer details, download stats, dependency counts, and actionable findings.

## Facts

- Endpoint: GET https://netintel.dev/npm-intel/analyze?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/netintel-npm-package-intelligence-analyzer-8d79285f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UtNGrq_4WEEDXfatuGMLN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability netintel-npm-package-intelligence-analyzer-8d79285f
```

Example prompt: Can you analyze the npm package lodash and tell me its quality grade, whether it's deprecated, how many weekly downloads it gets, and any findings I should know about?

## When to prefer this

Use this endpoint when you need a structured, scored assessment of an npm package's health, security posture, and maintenance status — especially for supply-chain risk evaluation, dependency auditing, or deciding whether to adopt a new library. Prefer this over raw npm registry lookups when you need an opinionated grade and actionable findings rather than raw metadata.

## Known failure modes

- Unknown or misspelled package name returns an error or empty result
- Private/scoped packages not found on the public npm registry may fail
- Network or upstream npm registry unavailability causes errors
- Missing required 'package' query parameter results in a validation error
- Payment failure (insufficient USDC balance) blocks the request with HTTP 402

## How this service works

Fetch metadata for any npm package — download counts, latest version, version count, dependency/devDependency counts, maintainers, repository URL, license, and a health score based on maintenance signals — so agents can evaluate dependencies, audit package ecosystems, and assess supply chain risk. (Returns counts, not the full version/dependency lists.)

## Output

Returns a JSON object with a letter grade (e.g. 'C'), a numeric score (0–100), license type, latest version, total versions, weekly download count, dependency and dev-dependency counts, maintainer list and count, creation date, days since last publish, deprecation status and message, repository URL, homepage, keywords, description, and an array of findings with rule names and score deductions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "package"
     ],
     "properties": {
      "package": {
       "type": "string",
       "description": "npm package name (e.g. express, @types/node)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "grade": {
       "type": "string"
      },
      "score": {
       "type": "number"
      },
      "license": {
       "type": [
        "string",
        "null"
       ]
      },
      "package": {
       "type": "string"
      },
      "findings": {
       "type": "array"
      },
      "homepage": {
       "type": [
        "string",
        "null"
       ]
      },
      "keywords": {
       "type": "array"
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ]
      },
      "repository": {
       "type": [
        "string",
        "null"
       ]
      },
      "description": {
       "type": [
        "string",
        "null"
       ]
      },
      "maintainers": {
       "type": "array"
      },
      "is_deprecated": {
       "type": "boolean"
      },
      "latest_version": {
       "type": [
        "string",
        "null"
       ]
      },
      "total_versions": {
       "type": "number"
      },
      "dependency_count": {
       "type": "number"
      },
      "maintainer_count": {
       "type": "number"
      },
      "weekly_downloads": {
       "type": "number"
      },
      "deprecation_message": {
       "type": [
        "string",
        "null"
       ]
      },
      "latest_published_at": {
       "type": [
        "string",
        "null"
       ]
      },
      "dev_dependency_count": {
       "type": "number"
      },
      "days_since_last_publish": {
       "type": [
        "number",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "grade": "C",
  "score": 72,
  "license": "MIT",
  "package": "express",
  "findings": [
   {
    "rule": "stale_package",
    "detail": "Last published 390 days ago",
    "deduction": -15
   }
  ],
  "homepage": "https://expressjs.com",
  "keywords": [
   "web",
   "framework",
   "http"
  ],
  "created_at": "2010-05-22T00:00:00Z",
  "repository": "https://github.com/expressjs/express",
  "description": "Fast, unopinionated, minimalist web framework",
  "maintainers": [
   "dougwilson",
   "wesleytodd"
  ],
  "is_deprecated": false,
  "latest_version": "4.18.2",
  "total_versions": 265,
  "dependency_count": 31,
  "maintainer_count": 2,
  "weekly_downloads": 34521000,
  "deprecation_message": null,
  "latest_published_at": "2023-02-14T00:00:00Z",
  "dev_dependency_count": 12,
  "days_since_last_publish": 390
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/netintel-npm-package-intelligence-analyzer-8d79285f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from netintel.dev](https://www.zero.xyz/host/netintel.dev/llms.txt)
