{"description":"Searches the Clojars repository of Clojure and ClojureScript libraries like its search page: group/artifact name, latest version, one-line description and package link. First results page only. Returns an empty list when nothing matches.","effect":"read","id":"clojars.org/search-packages","keywords":["clojars","clojars.org","clojure","clojurescript","clj","library","libraries","package","maven","jvm","leiningen","deps","repository","dependency"],"output":{"schema":{"properties":{"packages":{"items":{"properties":{"description":{"type":["string","null"]},"name":{"description":"group/artifact, e.g. 'ring/ring-codec'","type":"string"},"url":{"type":"string"},"version":{"description":"Latest version on Clojars","type":["string","null"]}},"required":["name","url"],"type":"object"},"type":"array"},"query":{"type":"string"}},"required":["query","packages"],"type":"object"},"value":"{query: params.query, packages: steps.search.packages[?name != `null` && href != `null`].{name: name, version: (name_and_version && split(name_and_version, ' ')[1]) || `null`, description: description || `null`, url: join('', ['https://clojars.org', href])}}"},"params":{"additionalProperties":false,"properties":{"query":{"description":"Library name or keyword, e.g. 'ring', 'cheshire', 'core.async'","maxLength":100,"minLength":2,"type":"string"}},"required":["query"],"type":"object"},"provenance":{"method":"har","notes":"GET /search?q=<query> answers 200 HTML with li.search-results cards. The link text is group/artifact, the version follows it in the same div, and span.desc holds the description. Only the result list is read.","recorded_at":"2026-11-08T16:22:40.000Z","recorded_by":"wield-forge (claude-haiku agent)"},"requires_login":false,"schema":"https://wield.run/schema/recipe/v1.json","site":{"country":"US","id":"clojars.org","language":"en","name":"Clojars","origin":"https://clojars.org","origins":["https://clojars.org"]},"steps":[{"description":"Clojars search page /search?q=…; read-only GET. Each result is an li.search-results card with the package link, version text and description.","expect":{"assert":"status == `200` && contains(body, 'Clojars')","content_type":"html","status":[200]},"extract":{"html_items":{"packages":{"fields":{"description":{"selector":"span.desc"},"href":{"attr":"href","selector":"div.result a"},"name":{"selector":"div.result a"},"name_and_version":{"selector":"div.result > div > div"}},"max":50,"selector":"li.search-results"}}},"id":"search","request":{"headers":{"Accept":"text/html"},"method":"GET","query":{"q":"{{params.query}}"},"url":"/search"}}],"task":"Search Clojars libraries","tos":{"notes":"Not reviewed. One search page per call, the same page a visitor loads. The site's terms on automated access were not checked.","reviewed":false},"verify":{"checks":["length(output.packages) > `0`","length(output.packages[?starts_with(url, 'https://clojars.org/')]) == length(output.packages)","length(output.packages[?name != `null`]) == length(output.packages)","length(output.packages[?version != `null`]) > `0`"],"example_params":{"query":"ring"},"max_ms":5000},"version":1}