npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

gh-cost

v1.0.0

Published

GitHub Actions cost estimator — see which workflows cost the most, per-workflow breakdown, CSV export

Readme

gh-cost

GitHub Actions cost estimator. See which workflows are eating your CI budget — per-workflow breakdown, trend by day count, CSV export. No config files, no external dependencies.

$ npx gh-cost

GitHub Actions cost — acme/api
Last 30 days · ubuntu pricing ($0.008/min) · 312 runs

WORKFLOW              RUNS   AVG DUR   FAILURES   EST COST
──────────────────────────────────────────────────────────
CI / Full test suite   148    12m34s      3/148     $14.77
Deploy to staging       52     4m12s      0/52       $1.74
Lint & typecheck       112      1m8s      1/112      $0.97
──────────────────────────────────────────────────────────
TOTAL                  312                          $17.48

Note: Estimates only — wall time × ubuntu rate.
Exact billable minutes: github.com/acme/api/settings/billing

Install

# Run once without installing
npx gh-cost

# Install globally
npm install -g gh-cost

Usage

gh-cost                          # auto-detects repo from git remote
gh-cost owner/repo               # explicit repo
gh-cost owner/repo --days=7      # last 7 days (default: 30)
gh-cost owner/repo --os=macos    # use macOS pricing ($0.080/min)
gh-cost owner/repo --csv         # CSV output for spreadsheets
gh-cost owner/repo --csv > report.csv

Auth

gh-cost tries these in order:

  1. --token=<token> flag
  2. GITHUB_TOKEN environment variable
  3. gh auth token (if you have the GitHub CLI installed)

Public repos with public Actions logs need no token.

# Quickest auth if you have gh CLI:
gh auth login

# Or export a classic PAT with repo + workflow read scopes:
export GITHUB_TOKEN=ghp_...

Runner pricing

GitHub's 2025 public rates (Linux runners included in free tier minutes):

| OS | $/min | |---------|--------| | ubuntu | $0.008 | | windows | $0.016 | | macos | $0.080 |

Pass --os=windows or --os=macos to use the correct rate for your runners.

Accuracy note

Costs are estimates based on wall time (run_started_atupdated_at) rounded up per minute, then multiplied by the runner rate. GitHub charges billable minutes (which exclude time waiting in queue and may differ slightly). For exact numbers, visit your repo's billing page.

Why this exists

GitHub's billing UI shows total minutes consumed — but not which workflow is responsible for most of your spend. This tool gives you the per-workflow breakdown in seconds, scriptable and CSV-friendly.

Buy / Support

If gh-cost saved you money (ironic, we know), you can buy me a coffee — link coming once Stripe is configured.

License

MIT © Anish Punati