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

copilot-arewecooked

v0.10.0

Published

Local GitHub Copilot AI-credit billing estimator for usage logs.

Readme

Yo GitHub Copilot: are we cooked?

npm version npm downloads

Estimate your GitHub Copilot AI-credit cost in preparation for June 1st. Pulls usage from VS Code, OpenCode, Pi, Zed, GitHub Copilot CLI, and Copilot for Xcode, aggregates it based on the new per-token pricing, and generates a local HTML report. Fully local.

HTML report preview

Relevant links

TL;DR: GitHub Copilot is moving from premium-request quotas to per-token billing on June 1st. Agentic workflows can now cost more than the old premium-request mental model suggests.

Quick start

npx copilot-arewecooked

This scans your local Copilot usage data, estimates your AI-credit cost under the new billing, and writes an HTML report + PNG screenshot to your current directory:

copilot-report-*.html
copilot-report-*.png

Flags

| Flag | Description | | ---------------------- | --------------------------------------------------------------------------------------------------------------------- | | --days <n> | Days to look back (default: all available data) | | --since <date> | Only include records from this date onward (YYYY-MM-DD) | | --auto-model <model> | Treat records reported as auto as a specific model for cost estimation (e.g. gpt-5.3-codex) | | --json | Print detailed normalized JSON to stdout (mutually exclusive with --terminal) | | --terminal | Print a compact report to the terminal instead of generating HTML/PNG (mutually exclusive with --json and --html) | | --html [path] | Write HTML report to a specific path (default: auto-generated filename) |

Note on auto model: Some tools (e.g. VS Code Copilot) may report the model as auto when the user has not selected a specific model. Credits for those requests will show as zero unless you specify --auto-model to map them to a known priced model. The HTML report will include a note when any auto records are remapped.

How data is extracted

| Source | Paths | Token accuracy | | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | | VS Code | ~/Library/Application Support/Code{, - Insiders}/User/workspaceStorage/*/chatSessions/*.jsonl (macOS) · %APPDATA%/Code{, - Insiders}/User/workspaceStorage/*/chatSessions/*.jsonl (Windows) · ~/.config/Code{, - Insiders}/User/workspaceStorage/*/chatSessions/*.jsonl (Linux) | Input estimated, output exact, cache not persisted | | VS Code (OTel) | ~/.config/Code/User/globalStorage/github.copilot-chat/agent-traces.db (Linux) · ~/Library/Application Support/Code/User/globalStorage/github.copilot-chat/agent-traces.db (macOS) · %APPDATA%/Code/User/globalStorage/github.copilot-chat/agent-traces.db (Windows) | All exact (input, output, cache read); requires github.copilot.chat.otel.dbSpanExporter.enabled | | OpenCode | ~/.local/share/opencode/opencode.db (macOS and Linux) · %LOCALAPPDATA%/opencode/opencode.db / %APPDATA%/opencode/opencode.db (Windows) | All exact (input, output, cache read/write) | | Pi | ~/.pi/agent/sessions/**/*.jsonl (all platforms) | All exact (input, output, cache read/write) | | Zed | ~/.local/share/zed/threads/threads.db or Library/Application Support/Zed/threads/threads.db | All exact (input, output, cache read/write) | | Copilot CLI | ~/.copilot/session-state/*/events.jsonl (all platforms) | Output exact, input estimated, compaction exact | | Copilot for Xcode | ~/Library/Logs/GitHubCopilot/*.log (macOS only) | All exact (input, output, cache read); model attribution via heuristic |