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.
npm install# Extract statistics and generate a chart in the output dir
node index.js "https://cloudsmith.io/~org/repos/repo/packages/?q=..." ./outputnode index.js <cloudsmith-url> [output-dir]<cloudsmith-url>: Cloudsmith index page or package statistics URL[output-dir]: Output directory (default:./output)
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
Generates downloads-chart.html showing:
- Combined downloads across all packages over time
- Interactive hover tooltips
- Summary statistics
npm test