# npm Package Health, Deprecation & Vulnerability Auditor (`deepaksheoran172/npm-package-health-auditor`) Actor

Audit Node.js npm packages for deprecated dependencies, unmaintained repos, security advisories, license compliance, and download velocity.

- **URL**: https://apify.com/deepaksheoran172/npm-package-health-auditor.md
- **Developed by:** [Deepak Sheoran](https://apify.com/deepaksheoran172) (community)
- **Categories:** Developer tools, SEO tools
- **Stats:** 2 total users, 1 monthly users, 50.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 extracted data record / events

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

<div align="center">

## npm Package Health & Deprecation Auditor

**Zero-Proxy Cloud Extraction API & Automated Data Feed**

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-orange?style=flat-square\&logo=apify)](https://apify.com/deepaksheoran172/npm-package-health-auditor)
[![Fast Execution](https://img.shields.io/badge/Execution-3--5s%20Pure%20HTTP-brightgreen?style=flat-square\&logo=speedtest)](https://apify.com/deepaksheoran172/npm-package-health-auditor)
[![Residential Proxy Cost](https://img.shields.io/badge/Proxy%20Cost-%240.00%20\(Zero--Tax\)-blue?style=flat-square)](https://apify.com/deepaksheoran172/npm-package-health-auditor)
[![Pay-Per-Event](https://img.shields.io/badge/Pricing-$0.003%20/%20record-success?style=flat-square)](https://apify.com/deepaksheoran172/npm-package-health-auditor)
[![Integrations](https://img.shields.io/badge/Integrate-n8n%20%7C%20Make%20%7C%20Zapier%20%7C%20Clay-purple?style=flat-square)](https://apify.com/deepaksheoran172/npm-package-health-auditor)
[![AI MCP Ready](https://img.shields.io/badge/AI%20MCP-Cursor%20%7C%20Claude%20Desktop-black?style=flat-square\&logo=openai)](https://apify.com/deepaksheoran172/npm-package-health-auditor)

</div>

***

### ⚡ Value Proposition: High-Agency Engineering vs Legacy Scrapers

Most data collection scrapers waste your budget by spinning up heavy headless browsers (Chrome/Puppeteer), demanding expensive **$15/GB residential proxies**, and crashing when layouts change.

**npm Package Health & Deprecation Auditor** is architected for production reliability:

- **Zero Proxy Tax ($0.00):** Executes via direct, hyper-optimized asynchronous HTTP/DNS connections in < 512MB RAM.
- **Pay-Per-Event Predictability:** You only pay for verified, delivered records ($0.003 / record).
- **Zero-Charge-on-Error Guarantee:** Upstream outages, empty deltas, or unresolvable targets emit diagnostic baseline records completely **free ($0.00)**.
- **Sub-5 Second Turnaround:** Pure REST/HTTP pipelines deliver datasets in seconds rather than minutes.

***

### 🤖 AI Agent & Model Context Protocol (MCP) Integration

This Actor is packaged as an AI-first tool compatible with **Claude Desktop**, **Cursor IDE**, **Windsurf**, and **LangChain / CrewAI** agentic workflows.

#### Agent Trigger Rule:

> *"Use this tool when the user requests audit npm packages for maintenance abandonment, deprecation flags, unpinned dependencies, and licensing metadata. or needs structured JSON data for npm-package-health-auditor without browser overhead or manual cleanup."*

#### Claude Desktop / Cursor `claude_desktop_config.json` Snippet:

```json
{
  "mcpServers": {
    "npm-package-health-auditor": {
      "command": "npx",
      "args": ["-y", "@apify/mcp-server-apify"],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

***

### 💰 Unit Economics & Cost Comparison

| Feature | npm Package Health & Deprecation Auditor | Traditional Puppeteer / Playwright Scraper |
|---|---|---|
| **Residential Proxy Bandwidth** | **$0.00 (Zero Proxy Tax)** | $12.00 – $25.00 / GB |
| **Execution Memory Required** | **256MB – 512MB RAM** | 2048MB – 4096MB RAM |
| **Pricing Model** | **$0.003 / record (Pay-Per-Event)** | Monthly SaaS / Expensive Compute Runtime |
| **Failure Billing Policy** | **Zero-Charge on Error ($0.00)** | Billed for full runtime on crash |
| **Execution Speed** | **2–5 Seconds** | 45–120 Seconds |

***

### ⚡ 1-Click Integration Blueprints

#### 1. Sync Execution via cURL / REST API

Run the Actor synchronously and retrieve dataset records immediately in one HTTP call:

```bash
curl -X POST "https://api.apify.com/v2/acts/deepaksheoran172~npm-package-health-auditor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
```

#### 2. Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run_input = {}

## Start Actor run and wait for completion
run = client.actor("deepaksheoran172/npm-package-health-auditor").call(run_input=run_input)

## Fetch structured dataset records
items = client.dataset(run["defaultDatasetId"]).list_items().items
for record in items:
    print(record)
```

#### 3. n8n / Make.com Webhook Automation

- **Node Type:** HTTP Request Node
- **Method:** `POST`
- **URL:** `https://api.apify.com/v2/acts/deepaksheoran172~npm-package-health-auditor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN`
- **Headers:** `Content-Type: application/json`
- **Body:** Raw JSON `{}`

***

### 📥 Input Parameters

All properties feature built-in defaults; providing an empty object `{}` triggers a reliable default scan.

| Parameter | Type | Default | Description |
|---|---|---|---|
| `packageName` | `string` | `left-pad` | Target package identifier or library name in the chosen ecosystem (for example 'requests', 'lodash', 'express', or 'urllib3') to inspect. |
| `maxItems` | `integer` | `1` | Maximum total records to extract and deliver to the output dataset during this run (for example 50 or 100 records) to govern compute time and data volume. |

***

### 📤 Output Dataset Specification

Output records strictly adhere to the official Apify dataset schema:

| Field Name | Type | Description |
|---|---|---|
| `packageName` | `string` | npm Package Name |
| `latestVersion` | `string` | Latest published version |
| `license` | `string` | Package license SPDX identifier |
| `isDeprecated` | `boolean` | Whether package has deprecation notice |
| `deprecationMessage` | `string` | Deprecation warning text |
| `homepage` | `string` | Project homepage URL |
| `maintainersCount` | `integer` | Active maintainers count |

***

### ❓ Frequently Asked Questions (FAQ)

##### Q: How does Pay-Per-Event (PPE) pricing protect my budget?

**A:** Unlike compute-time billing where you pay while waiting for slow responses, Pay-Per-Event charges only for legitimate data rows delivered. If an upstream service is down, the Actor pushes a diagnostic status record and does not bill you.

##### Q: Can I run this on a recurring schedule?

**A:** Yes! Use Apify's built-in Scheduler (Cron), or trigger it via Zapier, Make.com, or n8n on a daily, weekly, or hourly cadence.

##### Q: Are external proxies or browser engines required?

**A:** No. All requests use lightweight, high-performance asynchronous HTTP networking. There is zero proxy markup and zero browser overhead.

***

### 🔍 High-Intent Search & Buyer Keywords

`shopify catalog redirect audit, dmarc spf dkim bulk checker, website contact email phone scraper, ats jobs api, google ads transparency spy, automated eprocurement feed`

# Actor input Schema

## `packageName` (type: `string`):

Target package identifier or library name in the chosen ecosystem (for example 'requests', 'lodash', 'express', or 'urllib3') to inspect.

## `maxItems` (type: `integer`):

Maximum total records to extract and deliver to the output dataset during this run (for example 50 or 100 records) to govern compute time and data volume.

## Actor input object example

```json
{
  "packageName": "left-pad",
  "maxItems": 1
}
```

# Actor output Schema

## `results` (type: `string`):

Direct URL to live dataset items containing extracted records.

## `datasetItems` (type: `string`):

Direct JSON/CSV download endpoint for extracted dataset records.

## `summaryJson` (type: `string`):

JSON execution metrics and billing audit record.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "packageName": "left-pad",
    "maxItems": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("deepaksheoran172/npm-package-health-auditor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "packageName": "left-pad",
    "maxItems": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("deepaksheoran172/npm-package-health-auditor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "packageName": "left-pad",
  "maxItems": 1
}' |
apify call deepaksheoran172/npm-package-health-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,deepaksheoran172/npm-package-health-auditor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/kBOJOinh2qDYbqra7/builds/KZoBKbKqiyxhP07x3/openapi.json
