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 chart
node index.js "https://cloudsmith.io/~org/repos/repo/packages/?q=..." ./output --graph
node index.js <cloudsmith-url> [output-dir] [options]
<cloudsmith-url>
: Cloudsmith index page or package statistics URL[output-dir]
: Output directory (default:./output
)
--graph
: Generate interactive HTML chart after extraction--interactive
: Open browser for manual login (for private repositories)
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
Most public repositories work without authentication. For private repositories:
node index.js "URL" ./output --interactive
This opens a browser window for manual login.
npm test