{"uid":"cap_yT4iUo8OOyEGL-GX57UM3","slug":"npm-dependency-tree-top-e10dc511","name":"npm-dependency-tree-top","description":"Direct dependencies of an npm package's latest (or given) version: the dependencies, peerDependencies and optionalDependencies with their ranges, counts of each, plus the engines field and whether the package has install scripts. One-hop supply-chain view. $0.01 per package.","url":"https://intel.rallylive.ca/dev/npm-deps","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6KRvC3nVj5qwNRR6ruxdY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the direct (one-hop) dependencies of an npm package — dependencies, peerDependencies, and optionalDependencies with version ranges, counts, engines field, and install script presence.","exampleAgentPrompt":"What are the direct dependencies of the latest version of the 'lodash' npm package — including peer and optional dependencies, their version ranges, and whether it has any install scripts?","exampleUseCases":[{"title":"Security audit of package dependencies","prompt":"Before I install 'sharp' in my project, can you pull up all of its direct dependencies, peerDependencies, and optional dependencies, and tell me if it runs any install scripts I should be aware of?"},{"title":"Checking Node.js engine compatibility","prompt":"I need to know what Node.js engine versions 'next' version 14.0.0 requires — can you look up its engines field and list its direct dependencies?"},{"title":"Supply chain vetting for open source library","prompt":"Can you give me a one-hop supply chain snapshot for 'axios' — all direct dependencies with their version ranges, dependency counts by type, and whether it has any postinstall scripts?"}],"resultDescription":"Returns a structured object containing the package's dependencies, peerDependencies, and optionalDependencies as key-value maps of package name to version range, counts of each dependency type, the engines field (e.g. required Node.js version), and a boolean indicating whether the package has install scripts (preinstall, postinstall, etc.).","failureModes":["Package name not found on npm registry — returns 404 or error object","Version string not found for the given package — returns version-not-found error","Network timeout reaching npm registry — returns timeout error","Malformed package name input — returns validation error","Private or scoped package without public access — returns access error"],"whenToPreferThis":"Use this endpoint when you need a fast, structured one-hop view of an npm package's direct dependencies without running a full recursive tree resolution. It is ideal for supply-chain audits, compatibility checks, or pre-install vetting of a single package, and is cheaper and faster than tools that resolve the full transitive dependency graph.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:13:23.624Z","isFirstParty":false}