Suggest better-maintained npm alternatives
suggest_alternativeGiven a package that looks deprecated, vulnerable, abandoned, or suspicious, suggest better-maintained alternatives in the same category. This tool first checks the source package's own latest-version health (deprecation, latest-version OSV verdict, popularity/maintenance tiers, typosquat flag), then combines maintainer-provided deprecation hints with deterministic npm search-based category matching. It ranks candidates using category overlap plus search_packages-style popularity/maintenance signals, filters out typosquats and weak/stale contenders, and returns a short list with plain-language whySuggested notes. Best for turning a 'don't use this package' warning into an actionable replacement shortlist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact npm package name, e.g. "request" or "node-sass" | |
| limit | No | Max suggestions to return (default 5, max 10) | |
| reason | No | Optional reason to bias filtering/ranking |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| source | Yes | ||
| confidence | Yes | ||
| suggestions | Yes | ||
| categoryTokens | Yes | ||
| searchedQueries | Yes | ||
| nonPackageAlternatives | Yes |