Analyze npm package quality using NPMS.io scores for quality, popularity, and maintenance. Use when the user asks for package quality analysis, NPMS scores, or package evaluation metrics.
View on GitHubSelect agents to install to:
npx add-skill https://github.com/Mearman/marketplace/blob/main/plugins/npms-io/skills/npms-analyze/SKILL.md -a claude-code --skill npms-analyzeInstallation paths:
.claude/skills/npms-analyze/# Analyze npm Package Quality (NPMS.io)
Analyze an npm package using NPMS.io quality, popularity, and maintenance scores.
## Usage
```bash
npx tsx scripts/analyze.ts <package-name> [options]
```
### Arguments
| Argument | Required | Description |
|----------|----------|-------------|
| `package-name` | Yes | The exact package name (case-sensitive) |
### Options
| Option | Description |
|--------|-------------|
| `--no-cache` | Bypass cache and fetch fresh data from API |
### Output
```
react - Package Analysis
-------------------------
Quality Scores:
Overall: 98/100
Quality: 95/100
Popularity: 100/100
Maintenance: 99/100
Package Information:
Version: 18.2.0
Description: A declarative, efficient, and flexible JavaScript library...
Published: 2013-05-24
npm Statistics:
Week: 2,345,678 downloads
Month: 9,876,543 downloads
Year: 98,765,432 downloads
GitHub Activity:
Stars: 213,456
Forks: 45,678
Open Issues: 1,234
Contributors: 1,567
Latest Commit: 2 days ago
Project Health:
✓ Has contributing guide
✓ Has license
✓ Has security policy
```
## Script Execution (Preferred)
```bash
npx tsx scripts/analyze.ts <package-name> [options]
```
Options:
- `--no-cache` - Bypass cache and fetch fresh data from API
Run from the npms-io plugin directory: `~/.claude/plugins/cache/npms-io/`
## Package Analysis API
```
GET https://api.npms.io/v2/package/{package}
```
### Parameters
| Parameter | Required | Description |
|-----------|----------|-------------|
| `package` | Yes | The exact package name (case-sensitive) |
### Examples
Get package analysis:
```
https://api.npms.io/v2/package/react
```
## Response Format
The response contains comprehensive package analysis:
### Metadata
- `name`, `version`, `description`, `keywords`
- Links (npm, homepage, repository, bugs)
- Author, maintainers, publishers
- Publication date
### npm Data
- `downloads` - Download counts over time
- `weekDownloads`, `monthDownloads`, `quarterDownlo