fast-npm-meta

Resolve npm package versions and dist-tags without full registry manifests.

216|19|Updated Jul 1, 2024
One-click install
npx skills add https://github.com/antfu/fast-npm-meta --skill fast-npm-meta
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fast-npm-meta
Source: https://github.com/antfu/fast-npm-meta/tree/main/skills/fast-npm-meta
Command: npx skills add https://github.com/antfu/fast-npm-meta --skill fast-npm-meta

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

npm registry queries can be slow and download large JSON payloads when you only need a package’s latest version, dist-tags, publish dates, or a resolved version range.

Core Features & Use Cases

  • Latest and range resolution: Get the latest version, resolve tags like alpha, and convert semver ranges (caret, comparators, hyphen ranges) into a specific version.
  • Lean metadata retrieval: Query only the required fields with a caching proxy to reduce bandwidth and latency compared with npm view.
  • Full package inspection: Fetch all versions and dist-tags, optionally including per-version metadata like engines and deprecated/provenance details; filter to versions published after a date.

Quick Start

Ask: "Using fast-npm-meta, tell me the latest version for vite and resolve the range nuxt@^3.5 to an exact version."

Frequently Asked Questions about fast-npm-meta

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get the latest npm package version without downloading the full registry manifest?

To get the latest npm package version efficiently, you can query specific metadata fields through a caching proxy. This avoids downloading large JSON payloads from the registry, reducing bandwidth and latency compared to standard npm view commands.

How do I resolve a semver range like caret or hyphen to an exact npm package version?

You can resolve semver ranges such as caret, comparators, and hyphen ranges to an exact npm package version by requesting range resolution. This returns the specific version matching your specified tag or range specifier.

Can I fetch npm dist-tags and filter versions by publish date?

Yes, you can fetch all dist-tags and full version lists while filtering to versions published after a specific date. This allows you to inspect historical release metadata without retrieving the entire package manifest.

What's the best way to inspect npm package metadata like engines and provenance details?

The best way to inspect per-version npm package metadata like engines, deprecated status, and provenance details is by using lean metadata retrieval. Query only the required fields with metadata flags to get targeted package inspection data.

Does fast-npm-meta require a specific endpoint or CLI to resolve version metadata?

Yes, resolving version metadata requires a caching-backed fast-npm-meta endpoint or CLI. This setup returns version data, tag or range specifiers, and per-version metadata filtered by your specified flags and date parameters.