Check one package
check_packageVerify an npm or PyPI package before installing it. Returns existence and flags slopsquatting, malware, install scripts, deprecation, and abandonment.
Instructions
Verify a single npm or PyPI package before installing, importing, or recommending it. Returns whether it actually exists, and flags slopsquatting (a low-adoption package impersonating a popular one), names npm removed for malware, install-time scripts, deprecation, and abandonment. Call this whenever you are about to introduce a dependency you have not verified in this session. Read-only; one or two requests to the public registry. A verdict of UNKNOWN means the registry did not answer — retry, never assume safe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact package name as it would be installed, e.g. "express", "@scope/pkg", or for PyPI "requests". No version suffix. | |
| ecosystem | No | Registry to check against. Default npm. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| score | No | 0–100 risk score behind the verdict; null when the registry was unreachable. | |
| exists | No | ||
| ageDays | No | Days since first publish. | |
| signals | Yes | ||
| summary | Yes | One-paragraph explanation with the suggested real package when there is one. | |
| verdict | Yes | HALLUCINATED: no such package. DANGER: do not install as-is. CAUTION: review first. UNKNOWN: could not verify — never treat as safe. SAFE: nothing found. | |
| version | No | Latest published version. | |
| complete | No | false when a check could not run (rate limit, outage); such a result is UNKNOWN unless already DANGER. | |
| pointsTo | No | The package this one's own deprecation notice tells users to install instead, if any. | |
| ecosystem | Yes | ||
| didYouMean | No | For HALLUCINATED names: real packages with a similar name. | |
| repository | No | ||
| weeklyDownloads | No |