/npm-registry:npm-searchfrom npm-registry
Search for npm packages by keyword, name, or description. Use when the user asks to search npm packages, find packages related to a topic, or discover packages for a specific purpose.
Ships in npm-registry. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Search the npm registry for packages by keyword, name, or description.
npx tsx scripts/search.ts <query> [options]
| Argument | Required | Description |
|---|---|---|
query | Yes | Search query (can be package name, keyword, or description text) |
| Option | Description |
|---|---|
--size=N | Number of results to return (default: 20, max: 250) |
--from=N | Offset for pagination (default: 0) |
--no-cache | Bypass cache and fetch fresh data from API |
Found 1,234 packages for "http"
1. express (4.18.2)
Fast, unopinionated, minimalist web framework
Score: 0.98 (quality: 0.95, popularity: 1.0, maintenance: 0.99)
https://www.npmjs.com/package/express
2. axios (1.6.0)
Promise based HTTP client for the browser and node.js
Score: 0.97 (quality: 0.94, popularity: 1.0, maintenance: 0.98)
https://www.npmjs.com/package/axios
npx tsx scripts/search.ts <query> [options]
Options:
--size=N - Number of results to return (default: 20, max: 250)--from=N - Offset for pagination (default: 0)--no-cache - Bypass cache and fetch fresh data from APIRun from the npm-registry plugin directory: ~/.claude/plugins/cache/npm-registry/
GET https://registry.npmjs.org/-/v1/search
| Parameter | Required | Type | Description |
|---|---|---|---|
text | Yes | string | Search query (can be package name, keyword, or description text) |
size | No | number | Number of results to return (default: 20, max: 250) |
from | No | number | Offset for pagination (default: 0) |
Search for HTTP-related packages:
https://registry.npmjs.org/-/v1/search?text=http&size=10
Search with pagination:
https://registry.npmjs.org/-/v1/search?text=react&size=20&from=20
Each result contains:
package.name - Package namepackage.version - Latest versionpackage.description - Package descriptionpackage.keywords - Array of keywords (if available)package.author - Author informationpackage.links - URLs to npm, homepage, repository, bugsscore.final - Overall score (0-1)score.detail.quality - Quality score (0-1)score.detail.popularity - Popularity score (0-1)score.detail.maintenance - Maintenance score (0-1)searchScore - Relevance to search querySearch results are cached for 1 hour. The npm registry search index is updated frequently but package metadata changes less often.
Use the --no-cache flag to bypass the cache and fetch fresh results.
npm-info to get detailed package metadatanpm-exists to quickly check if a package name is availablenpm-downloads to view download statisticsIf the search returns no results, try:
Rate limiting: The npm registry may rate limit excessive requests. If you encounter rate limiting, wait a few minutes before trying again.
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/npm-downloadsGet download statistics for an npm package over time. Use when the user asks for package download counts, popularity metrics, or usage statistics./npm-existsCheck if an npm package name exists in the registry. Use when the user asks if a package name is available, wants to check package existence, or verify if a package is published./npm-infoGet detailed metadata for an npm package including versions, dependencies, maintainers, and repository information. Use when the user asks for package details, version history, or package metadata.npx claudepluginhub mearman/marketplace --plugin npm-registryOther plugins' skills for the same job