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

barq-bench

v1.0.0

Published

Compare AI API prices in one command — benchmark 5 models through Barq

Readme

⚡ barq-bench

Compare AI API prices in one command.

BARQ_API_KEY=*** npx barq-bench

Run the same prompt across 5 models simultaneously — GPT-4o, Claude 3.5 Sonnet, DeepSeek, MiMo, Gemini 2.0 Flash. See latency, token usage, and exactly how much you'd save by routing through Barq.

Quick Start

# Estimated comparison (no API key needed)
npx barq-bench

# Live benchmark (get a free key at barqapi.com)
BARQ_API_KEY=sk-... npx barq-bench

Why

AI API pricing is opaque. Most developers don't know they're paying 2–3x for the same model output.

barq-bench makes the comparison visible in 3 seconds — no signup page, no pitch, just a terminal table.

Output

  gpt-4o                 OpenAI      $0.0059    $0.0029    50%  ⬇ 50% cheaper
  claude-3-5-sonnet      Anthropic   $0.0056    $0.0028    50%  ⬇ 50% cheaper
  deepseek-chat          DeepSeek    $0.0004    $0.0004    —    one endpoint
  mimo-v2.5-pro          MiMo        $0.0012    $0.0012    —    one endpoint
  gemini-2.0-flash       Google      $0.0002    $0.0002    —    one endpoint

  💰 Monthly: 1,000 GPT-4o calls/day → ~$88/month saved

How it works

  1. Each model runs the same coding prompt through Barq's API
  2. Real latency and token counts are measured live
  3. Competitor prices (verified June 2026) are applied to the actual token counts
  4. Savings = direct provider cost − Barq's actual charge

No synthetic benchmarks. No marketing math. Real API responses, real prices.

Models

| Model | Direct Provider | Barq Est. | |-------|----------------|-----------| | GPT-4o | OpenAI — $5.00/M | $2.50/M | | Claude 3.5 Sonnet | Anthropic — $3.00/M | $1.50/M | | DeepSeek Chat | DeepSeek — $0.27/M | $0.27/M | | MiMo V2.5 Pro | Xiaomi — $1.00/M | $1.00/M | | Gemini 2.0 Flash | Google — $0.10/M | $0.10/M |

Get a Free API Key

→ barqapi.com — no credit card required.

License

MIT