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

contextlab

v0.1.4

Published

See what is actually filling your AI coding agent's context window — and what to change to fix it.

Readme

contextlab

See what is actually filling your AI coding agent's context window — and what to change to fix it.

Your agent tells you "142,000 tokens, $3.20." It does not tell you that 105,000 of those are one npm install log stuck in the history since turn 3, being re-uploaded on every turn since.

npx contextlab claude       # run your agent through a local proxy
npx contextlab optimize     # then: what to change, ranked by money
A 105,716-token result from Bash has been re-sent 6 times
105,716 tokens × 6 turns = 528,580 wasted  ·  $2.67

FIX
Start a fresh session once you have taken what you need from this output.

Commands

| Command | Does | | :--- | :--- | | contextlab <tool> | run a coding agent through the proxy | | contextlab optimize | ranked waste + the exact config change | | contextlab why | why was my last turn expensive? | | contextlab cost | historical spend, by day or project | | contextlab watch | live context gauge in the terminal | | contextlab dashboard | the web UI on localhost:4041 | | contextlab doctor | check everything is ready |

Agents

Claude Code, Aider, Gemini CLI and Copilot CLI work with nothing installed. Codex, Cline and OpenCode cannot be redirected by an environment variable and need brew install mitmproxy — contextlab doctor checks the certificate too.

Nothing leaves your machine

No account, no cloud, no telemetry, and no LLM is called anywhere in the product. Every number is arithmetic; every recommendation is a deterministic rule. It works offline.

The proxy is the only component that sees a credential, so it is ~560 lines with zero dependencies — short enough to read before trusting it. Header values are destroyed before any capture reaches disk.


Full documentation, architecture and the export format: https://github.com/eyekaushal/contextlab

MIT