{"uid":"cap_UDSMsP84wOc-P7P5qjIIW","slug":"code-search-github-npm-c39efeaf","name":"Code Search: GitHub + npm","description":"Find libraries and repositories for a coding task: GitHub repositories ranked by stars and relevance (popular, maintained ones first; under 30 stars dropped) plus npm packages for JavaScript / TypeScript, with description, stars, last push or publish date and links.","url":"https://agent-search.centorprat.workers.dev/code?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"query":{"type":"string","description":"the task or library, e.g. python pdf table extraction"},"language":{"type":"string","description":"python, javascript, rust, go, ..."},"numResults":{"type":"integer","description":"1-20 (default 10)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QNv3Gh_tctfdI5RZX1BK6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search GitHub repositories and npm packages for a coding task, returning results ranked by stars and relevance with metadata like last push date and links.","exampleAgentPrompt":"Search for the best Python libraries for extracting tables from PDFs — show me up to 10 results ranked by stars and relevance, with GitHub repos and npm packages where applicable.","exampleUseCases":[{"title":"Finding a PDF parsing library","prompt":"I need to extract tables from PDF files in Python — can you find the most popular and actively maintained libraries for that? Show me the top 10 with star counts and last update dates."},{"title":"Discovering JavaScript date utilities","prompt":"What are the best npm packages for handling date and time manipulation in JavaScript? I want to see the top 8, ranked by popularity, with descriptions and links."},{"title":"Evaluating Rust HTTP client options","prompt":"Find me the top Rust libraries for making HTTP requests — I want to see which ones are most popular on GitHub and still actively maintained, up to 10 results."}],"resultDescription":"A ranked list of GitHub repositories and npm packages matching the coding task query. Each result includes the name, description, star count, last push or publish date, and a direct link. GitHub results are ranked by stars and relevance with repos under 30 stars excluded; npm results are included for JavaScript/TypeScript queries.","failureModes":["Query too vague returns irrelevant or low-quality results","Language filter mismatch causes empty npm results for non-JS queries","numResults out of range (outside 1-20) may cause validation error","Network or upstream GitHub/npm API failure returns partial or empty results","Obscure or very new libraries may not appear due to minimum star threshold"],"whenToPreferThis":"Choose this endpoint when you need to discover libraries or repositories for a specific coding task and want results filtered for quality (minimum star threshold) and recency. It combines GitHub and npm in one call, making it ideal for JavaScript/TypeScript work or cross-ecosystem discovery. Prefer this over general web search when you specifically need ranked, maintained open-source packages with metadata like stars and last activity date.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:32:57.689Z","isFirstParty":false,"canonicalSlug":"code-search-github-npm-c39efeaf"}