Back to Skills

npms-suggest

verified

Get npm package name suggestions and autocomplete from NPMS.io. Use when the user asks for package name suggestions, wants to autocomplete a package name, or search for packages by name pattern.

View on GitHub

Marketplace

mearman

Mearman/marketplace

Plugin

npms-io

Repository

Mearman/marketplace
2stars

plugins/npms-io/skills/npms-suggest/SKILL.md

Last Verified

January 23, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/Mearman/marketplace/blob/main/plugins/npms-io/skills/npms-suggest/SKILL.md -a claude-code --skill npms-suggest

Installation paths:

Claude
.claude/skills/npms-suggest/
Powered by add-skill CLI

Instructions

# Get npm Package Name Suggestions (NPMS.io)

Get package name suggestions and autocomplete from NPMS.io based on a search query.

## Usage

```bash
npx tsx scripts/suggest.ts <query> [options]
```

### Arguments

| Argument | Required | Description |
|----------|----------|-------------|
| `query` | Yes | Search query (minimum 2 characters) |

### Options

| Option | Description |
|--------|-------------|
| `--size=N` | Number of suggestions to return (default: 25, max: 250) |
| `--no-cache` | Bypass cache and fetch fresh data from API |

### Output

```
Suggestions for "react" (25 results)
------------------------------------

1. react
   Score: 1000000
   URL: https://www.npmjs.com/package/react

2. react-dom
   Score: 950000
   URL: https://www.npmjs.com/package/react-dom

3. react-redux
   Score: 923000
   URL: https://www.npmjs.com/package/react-redux

...

Top 10 suggestions:
  react, react-dom, react-redux, react-router, react-scripts,
  react-native, react-hook-form, react-query, react-test-renderer
```

## Script Execution (Preferred)

```bash
npx tsx scripts/suggest.ts <query> [options]
```

Options:
- `--size=N` - Number of suggestions to return (default: 25, max: 250)
- `--no-cache` - Bypass cache and fetch fresh data from API

Run from the npms-io plugin directory: `~/.claude/plugins/cache/npms-io/`

## Suggestions API

```
GET https://api.npms.io/v2/search/suggestions?q={query}
```

### Parameters

| Parameter | Required | Description |
|-----------|----------|-------------|
| `q` | Yes | Search query (minimum 2 characters) |

### Examples

Get suggestions:
```
https://api.npms.io/v2/search/suggestions?q=react
```

Scoped packages:
```
https://api.npms.io/v2/search/suggestions?q=@babel
```

## Response Format

The response contains an array of package suggestions:

```json
[
  {
    "name": "react",
    "score": 1000000,
    "searchScore": 1000000
  },
  {
    "name": "react-dom",
    "score": 950000,
    "searchScore": 950000
  }
]
```

**Fields:**
-

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
4816 chars