Sign inTry it

Search npm packages.

Searches the npm registry (JavaScript and TypeScript packages) like npmjs.com's search: name, version, description, weekly downloads, last publish date and link. Up to 20 packages, best match first.

Health unavailableRead-only, no login
Site
npm, United States
Version
v1
Runs, last 7 days
Unavailable
sha256
cc428906372a…
Try it nowRuns on Wield's servers. No key, no install.
Try:

Run it with your agent

after installing Wield

Ask in plain words. Your agent finds this recipe and calls it:

“Search npm packages.”

Read-only: it changes nothing on the site. No login needed.

{
  "tool": "run",
  "arguments": {
    "recipe_id": "npmjs.com/search-packages",
    "params": {
      "query": "pdf parser"
    }
  }
}

Requests

sent from your browser, in order
  1. 1GET/-/v1/search?size&textnpm's public registry search API (/-/v1/search), the data npmjs.com's search shows.

Parameters

from your agent
querystringrequiredWhat to search for, e.g. 'pdf parser'

Returns

to your agent
querystring
resultsobject[]name, url

Where it can send

  • registry.npmjs.org

Anything else is blocked by the extension.

Reads from your session

Nothing. Your browser attaches the site's cookies by itself.

Used only in requests to the addresses on the left. Never sent to wield.run or your agent.

Checks

a run passes when
  • length(output.results) > `0`
  • length(output.results[?starts_with(url, 'https://www.npmjs.com/package/')]) == length(output.results)

Raw recipe

Served as canonical JSON from /api/v1/recipes/npmjs.com/search-packages, so its sha256 matches the ETag and the index.

Check it yourself
curl -s https://wield.run/api/v1/recipes/npmjs.com/search-packages | shasum -a 256
# cc428906372a428c7d25b7f1c6483404d994a7ace0ca61f0b4647f46c58c487d
npmjs.com/search-packages.json, v1
{
  "description": "Searches the npm registry (JavaScript and TypeScript packages) like npmjs.com's search: name, version, description, weekly downloads, last publish date and link. Up to 20 packages, best match first.",
  "effect": "read",
  "id": "npmjs.com/search-packages",
  "keywords": [
    "npm",
    "npmjs",
    "node",
    "nodejs",
    "javascript",
    "typescript",
    "package",
    "packages",
    "library",
    "module",
    "js library"
  ],
  "output": {
    "schema": {
      "properties": {
        "query": {
          "type": "string"
        },
        "results": {
          "items": {
            "properties": {
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "url"
            ],
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "query",
        "results"
      ],
      "type": "object"
    },
    "value": "{query: params.query, results: (steps.search.list || `[]`)[:20].{name: package.name, version: package.version || `null`, description: package.description || `null`, weekly_downloads: downloads.weekly || `null`, updated: package.date || updated || `null`, url: join('', ['https://www.npmjs.com/package/', package.name])}}"
  },
  "params": {
    "additionalProperties": false,
    "properties": {
      "query": {
        "description": "What to search for, e.g. 'pdf parser'",
        "maxLength": 200,
        "minLength": 1,
        "type": "string"
      }
    },
    "required": [
      "query"
    ],
    "type": "object"
  },
  "provenance": {
    "method": "har",
    "notes": "npm's public registry search API (/-/v1/search), the data npmjs.com's search shows.",
    "recorded_at": "2026-11-08T19:11:12.371Z",
    "recorded_by": "wield-forge family devregistries (written by hand)"
  },
  "requires_login": false,
  "schema": "https://wield.run/schema/recipe/v1.json",
  "site": {
    "country": "US",
    "id": "npmjs.com",
    "language": "en",
    "name": "npm",
    "origin": "https://registry.npmjs.org",
    "origins": [
      "https://registry.npmjs.org"
    ]
  },
  "steps": [
    {
      "description": "npm's public registry search API (/-/v1/search), the data npmjs.com's search shows.",
      "expect": {
        "content_type": "json",
        "status": [
          200
        ]
      },
      "extract": {
        "json": {
          "list": "objects"
        }
      },
      "id": "search",
      "request": {
        "headers": {
          "Accept": "application/json"
        },
        "method": "GET",
        "query": {
          "size": "20",
          "text": "{{params.query}}"
        },
        "url": "/-/v1/search"
      }
    }
  ],
  "task": "Search npm packages",
  "tos": {
    "notes": "Not reviewed. One public API search per call, the same data the site's search shows.",
    "reviewed": false
  },
  "verify": {
    "checks": [
      "length(output.results) > `0`",
      "length(output.results[?starts_with(url, 'https://www.npmjs.com/package/')]) == length(output.results)"
    ],
    "example_params": {
      "query": "pdf parser"
    },
    "max_ms": 5000
  },
  "version": 1
}