Skip to content

bdeitte/cloudsmith-downloads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudsmith Downloads

Extract and visualize Cloudsmith package download statistics from a Cloudsmith page. If you don't have an API key, a helpful way to get more information on Cloudsmith pages. It extracts download statistics from Cloudsmith package pages, supports batch processing with automatic pagination, and generates HTML charts.

Installation

npm install

Quick Start

# Extract statistics and generate a chart in the output dir
node index.js "https://cloudsmith.io/~org/repos/repo/packages/?q=..." ./output

Usage

node index.js <cloudsmith-url> [output-dir]

Arguments

  • <cloudsmith-url>: Cloudsmith index page or package statistics URL
  • [output-dir]: Output directory (default: ./output)

Output

CSV Files

Each package generates a CSV file with columns:

  • Date: Statistics date
  • Downloads: Number of downloads
  • Bytes: Total bytes downloaded

Files are automatically named: {package-name}_{format}_{version}.csv

Chart

Generates downloads-chart.html showing:

  • Combined downloads across all packages over time
  • Interactive hover tooltips
  • Summary statistics

Testing

npm test

About

Extract and visualize Cloudsmith package download statistics from a Cloudsmith page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published