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

inferock-bench

v0.1.10

Published

Local LLM cost-tracking proxy for OpenAI, Anthropic, Gemini, and pinned OpenRouter calls with token usage, failure, and billing-integrity receipts.

Readme

inferock-bench

Local benchmark proxy for OpenAI, Anthropic, Gemini, and pinned OpenRouter calls. Provider keys are not sent to Inferock; attached only to provider requests. It accepts a generated local ibl_ bench key from your SDK and writes per-call receipts with spent dollars, bill-bounded money loss, time loss, provider-recognized recovery, recognition gap, and invoice-check exposure kept separate.

Use it when you want to audit an AI/LLM bill, measure Claude or GPT token usage locally, or answer whether a failed API call was still billed. It helps investigate OpenAI overcharging-token questions and Anthropic billing-error questions by preserving local token usage, cost, retry, and failure evidence without sending provider keys to a hosted service.

Full docs, screenshots, and the public standard live at https://github.com/inferock/inferock-bench.

| Need | Start here | | --- | --- | | Run the local proxy | Quickstart | | See command surface | Commands | | Understand the trust boundary | What leaves your machine | | Read the receipt rulebook | The Inferock Standard |

Quickstart

npx inferock-bench

Open http://127.0.0.1:4318/, save your provider key locally, then copy the local bench key into your SDK config with the local base URL.

OpenAI:

const openai = new OpenAI({
  apiKey: process.env.INFEROCK_BENCH_KEY ?? "ibl_your_generated_local_key",
  baseURL: "http://127.0.0.1:4318/v1",
});

Anthropic:

const anthropic = new Anthropic({
  apiKey: process.env.INFEROCK_BENCH_KEY ?? "ibl_your_generated_local_key",
  baseURL: "http://127.0.0.1:4318",
});

Gemini:

await fetch("http://127.0.0.1:4318/v1beta/models/gemini-2.5-flash:generateContent", {
  method: "POST",
  headers: {
    "content-type": "application/json",
    "x-api-key": process.env.INFEROCK_BENCH_KEY ?? "ibl_your_generated_local_key",
  },
  body: JSON.stringify({
    contents: [{ parts: [{ text: "Write one sentence about local receipts." }] }],
  }),
});

OpenRouter:

const openrouter = new OpenAI({
  apiKey: process.env.INFEROCK_BENCH_KEY ?? "ibl_your_generated_local_key",
  baseURL: "http://127.0.0.1:4318/openrouter/v1",
});

The terminal prints first call measured ✓ after the first successful proxied call.

inferock-bench init --patch path/to/client.ts --yes can patch simple new OpenAI({ ... }) and new Anthropic({ ... }) constructors. It updates both apiKey and baseURL; if it cannot do that safely, it refuses and tells you what to change by hand. Gemini and OpenRouter setup are supported through inferock-bench setup, the dashboard, and their local proxy paths.

Commands

inferock-bench start
inferock-bench init
inferock-bench test --providers all
inferock-bench test --generator agent
inferock-bench report --last 24h
inferock-bench receipt --compact
inferock-bench telemetry enable --reliability-index

inferock-bench test shows the full-battery estimated price before any provider call. Agent mode auto-provisions pinned [email protected] locally only after explicit consent, or uses --agent-cmd as a user-supplied agent.

Production routing, secure key custody, invoice reconciliation, provider leverage, and audit workflows belong in hosted Inferock: https://inferock.opiusai.com.

What to read next