# Score the maintenance health of npm packages

**Use case:** 

Rate npm packages on maintenance, popularity and risk signals — release cadence, download trend and abandonment flags per package.

## Input

```json
{
  "packages": [
    "express",
    "left-pad"
  ],
  "includeTrend": true
}
```

## Output

```json
{
  "package": {
    "label": "Package",
    "format": "string"
  },
  "health_score": {
    "label": "Health score",
    "format": "number"
  },
  "grade": {
    "label": "Grade",
    "format": "string"
  },
  "latest_version": {
    "label": "Latest version",
    "format": "string"
  },
  "downloads_last_month": {
    "label": "Downloads / month",
    "format": "number"
  },
  "download_trend_pct": {
    "label": "Download trend %",
    "format": "number"
  },
  "maintainers": {
    "label": "Maintainers",
    "format": "number"
  },
  "deprecated": {
    "label": "Deprecated",
    "format": "boolean"
  },
  "top_risks": {
    "label": "Top risks",
    "format": "array"
  }
}
```

## About this Actor

This example demonstrates how to use [npm Package Health Score API — Dependency Risk Scorer](https://apify.com/malonestar/npm-package-health-scorer) with a specific input configuration. Visit the [Actor detail page](https://apify.com/malonestar/npm-package-health-scorer) to learn more, explore other use cases, and run it yourself.