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

gt-cost

v0.1.0

Published

Cost aggregation tool for Gas Town multi-agent workflows

Readme

gt-cost

Cost aggregation tool for Gas Town multi-agent workflows.

The Problem

Gas Town can spawn 20-30 concurrent Claude agents. Each one burns tokens independently. Without tracking, you could spend $50-100 in an hour without realizing it.

The Solution

gt-cost reads Gas Town activity logs and aggregates costs by:

  • Rig (project)
  • Convoy (batch of related work)
  • Agent (individual polecat)

Installation

npm install -g gt-cost

Usage

# Overall cost report
gt-cost

# Costs in last 24 hours
gt-cost --since 1d

# Costs for specific rig
gt-cost --rig token-guard

# Top 5 convoys by cost
gt-cost convoys --top 5

# Agent costs this week
gt-cost agents --since 1w

# JSON output for scripting
gt-cost --format json

Commands

| Command | Description | |---------|-------------| | report | Show overall cost report (default) | | rigs | List rigs with costs | | convoys | List convoys with costs | | agents | List agents with costs | | watch | Live cost monitoring (coming soon) |

Options

| Option | Description | |--------|-------------| | --rig <name> | Filter by rig | | --convoy <name> | Filter by convoy | | --since <date> | Start date (ISO or relative: 1h, 1d, 1w) | | --until <date> | End date | | --format <type> | Output format: text, json | | --top <n> | Show top N items (default: 10) |

Example Output

═══════════════════════════════════════════════════
  Gas Town Cost Report
═══════════════════════════════════════════════════

  Period: 1/3/2026 - 1/4/2026

  TOTALS
  ───────────────────────────────────────────────
  Total Cost:     $47.23
  Total Tokens:   2.1M
    Input:        450k
    Output:       1.65M

  BY RIG
  ───────────────────────────────────────────────
  token-guard              $18.50 (39%)
  ai-code-audit            $15.20 (32%)
  mcp-servers              $13.53 (29%)

  BY CONVOY
  ───────────────────────────────────────────────
  feature-auth             $12.30 (token-guard)
  bug-fixes                 $8.40 (ai-code-audit)

═══════════════════════════════════════════════════

How It Works

  1. Reads Gas Town's activity logs from ~/gt
  2. Parses Beads issue metadata for token counts
  3. Reads polecat stats files
  4. Aggregates by rig, convoy, and agent
  5. Applies model-specific pricing

Related Tools

License

MIT