# NetIntel NPM Package Analyzer

> NetIntel NPM Package Analyzer is a paid API for AI agents from netintel-production-440c.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

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

## Facts

- Endpoint: GET https://netintel-production-440c.up.railway.app/npm-intel/analyze
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/netintel-npm-package-analyzer-585eebb2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7wgqDBhAlRoJykJzxCQBs

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-analyzer-585eebb2
```

Example prompt: Can you analyze the npm package 'express' and give me its quality grade, score, license, how stale it is, and any red flags I should know about before adding it as a dependency?

## When to prefer this

Use this endpoint when you need a structured, scored quality assessment of an npm package — including staleness, maintainer health, license, and dependency counts — rather than just raw registry metadata. Ideal for automated dependency audits, supply chain risk checks, or helping developers decide whether to adopt a new library.

## Known failure modes

- Missing or invalid 'package' query parameter returns an error
- Package name not found on npm registry returns a 404 or empty result
- Payment not included or insufficient USDC results in HTTP 402 Payment Required
- Rate limiting or upstream npm registry unavailability may cause timeouts
- Scoped packages (e.g. @types/node) must be correctly URL-encoded

## How this service works

Network intelligence API — 138 endpoints, all pay-per-call via x402 micropayments (USDC on Base or Solana mainnet).

NetIntel is agent fair-trade aligned: transparent per-call pricing in USDC on Base or Solana via x402, no API keys or signup, and automatic no-charge on server errors, upstream failures, and input-validation rejections — failed calls are never billed across NetIntel's network, domain, and data-intelligence endpoints.

## Output

Returns a JSON object with a letter grade (e.g. C), numeric score (0-100), license identifier, package name and description, homepage and repository URLs, latest version, total versions, weekly download count, dependency and dev-dependency counts, maintainer list and count, creation date, latest publish date, days since last publish, deprecation status and message, and an array of findings with rules 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-analyzer-585eebb2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from netintel-production-440c.up.railway.app](https://www.zero.xyz/host/netintel-production-440c.up.railway.app/llms.txt)
