Sign inTry it

Search PHP packages on Packagist.

Searches Packagist (PHP Composer packages) like its search: package name, description, downloads, GitHub stars and link. Up to 20 packages, best match first.

Health unavailableRead-only, no login
Site
Packagist, United States
Version
v1
Runs, last 7 days
Unavailable
sha256
f6cc8b277370…
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 PHP packages on Packagist.”

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

{
  "tool": "run",
  "arguments": {
    "recipe_id": "packagist.org/search-packages",
    "params": {
      "query": "pdf"
    }
  }
}

Requests

sent from your browser, in order
  1. 1GET/search.json?per_page&qPackagist's public search API (/search.json). robots.txt disallows /search/ (the HTML page), not /search.json.

Parameters

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

Returns

to your agent
querystring
resultsobject[]name, url

Where it can send

  • packagist.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://packagist.org/packages/')]) == length(output.results)

Raw recipe

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

Check it yourself
curl -s https://wield.run/api/v1/recipes/packagist.org/search-packages | shasum -a 256
# f6cc8b2773702f6971a349ae9413800d227d27603c7941e2b2b21447545cbe15
packagist.org/search-packages.json, v1
{
  "description": "Searches Packagist (PHP Composer packages) like its search: package name, description, downloads, GitHub stars and link. Up to 20 packages, best match first.",
  "effect": "read",
  "id": "packagist.org/search-packages",
  "keywords": [
    "packagist",
    "composer",
    "php",
    "php package",
    "laravel",
    "symfony",
    "packages",
    "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: name, description: description || `null`, downloads: downloads || `null`, stars: favers || `null`, url: url}}"
  },
  "params": {
    "additionalProperties": false,
    "properties": {
      "query": {
        "description": "What to search for, e.g. 'pdf'",
        "maxLength": 200,
        "minLength": 1,
        "type": "string"
      }
    },
    "required": [
      "query"
    ],
    "type": "object"
  },
  "provenance": {
    "method": "har",
    "notes": "Packagist's public search API (/search.json). robots.txt disallows /search/ (the HTML page), not /search.json.",
    "recorded_at": "2026-11-08T19:12:00.964Z",
    "recorded_by": "wield-forge family devregistries (written by hand)"
  },
  "requires_login": false,
  "schema": "https://wield.run/schema/recipe/v1.json",
  "site": {
    "country": "US",
    "id": "packagist.org",
    "language": "en",
    "name": "Packagist",
    "origin": "https://packagist.org",
    "origins": [
      "https://packagist.org"
    ]
  },
  "steps": [
    {
      "description": "Packagist's public search API (/search.json). robots.txt disallows /search/ (the HTML page), not /search.json.",
      "expect": {
        "content_type": "json",
        "status": [
          200
        ]
      },
      "extract": {
        "json": {
          "list": "results"
        }
      },
      "id": "search",
      "request": {
        "headers": {
          "Accept": "application/json"
        },
        "method": "GET",
        "query": {
          "per_page": "20",
          "q": "{{params.query}}"
        },
        "url": "/search.json"
      }
    }
  ],
  "task": "Search PHP packages on Packagist",
  "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://packagist.org/packages/')]) == length(output.results)"
    ],
    "example_params": {
      "query": "pdf"
    },
    "max_ms": 5000
  },
  "version": 1
}