npm-trends

Fetch and compare download statistics for npm packages using the official npm registry API.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "npm-trends" with this command: npx skills add ocmrz/skills/ocmrz-skills-npm-trends

npm Trends

Fetch and compare download statistics for npm packages using the official npm registry API.

Usage

<your-skill-directory>/npm-trends/scripts/npm_trends.ts <package1> [package2] ... [options]

Options

Option Description

--period

Time period: last-day , last-week , last-month , last-year . Default: last-month

--range

Custom date range: YYYY-MM-DD:YYYY-MM-DD (overrides --period )

--daily

Show daily breakdown (with --range )

--trends

Show weekly trends with growth analysis and ASCII chart

--weeks

Number of weeks for trend analysis (default: 12, max: 52)

Examples

Compare packages (last month totals):

<your-skill-directory>/npm-trends/scripts/npm_trends.ts skills add-skill

Weekly trend analysis (recommended for comparison):

<your-skill-directory>/npm-trends/scripts/npm_trends.ts skills add-skill --trends

Extended trend analysis (6 months):

<your-skill-directory>/npm-trends/scripts/npm_trends.ts react vue --trends --weeks 26

Custom date range:

<your-skill-directory>/npm-trends/scripts/npm_trends.ts express fastify --range 2025-01-01:2025-01-25

Output

Basic mode

  • Total downloads and daily average

  • Comparison ranking with bar chart

Trends mode (--trends )

  • Weekly download totals

  • Growth rate (overall and recent 4 weeks)

  • Momentum indicator (📈 accelerating, ➡️ steady, 📉 decelerating)

  • ASCII chart showing weekly downloads

  • Crossover analysis (when comparing 2 packages)

  • Gap analysis showing which package is gaining ground

API Reference

Uses the official npm downloads API:

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

google-search

No summary provided by upstream source.

Repository SourceNeeds Review
General

conventional-commits

No summary provided by upstream source.

Repository SourceNeeds Review
General

image-generation

No summary provided by upstream source.

Repository SourceNeeds Review
General

nano-banana-2

Nano Banana 2 - Gemini 3.1 Flash Image Preview

Repository Source
41.4K153inferen-sh