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

llm-relay

v0.37.0

Published

Loopback bidirectional Anthropic/OpenAI API proxy with tool-call validation and multi-provider routing.

Readme

llm-relay

A loopback proxy that steers your LLM traffic across providers. Point Claude Code, Codex, or any Anthropic/OpenAI-compatible client at http://127.0.0.1:8791; the relay resolves the requested model to a real deployment, ranks candidates by benchmark and live health, fails over on errors, and validates/repairs malformed tool calls so agent harnesses can run on weaker (often free) models.

Quick start

npm install -g llm-relay
llm-relay onboard          # collect free provider keys (NIM, Groq, Gemini, OpenRouter, ...)
llm-relay onboard --import keys.env  # import dotenv or a FreeLLMAPI export JSON
llm-relay setup claude-desktop   # or: llm-relay setup claude-cli
llm-relay                  # start the proxy — leave it running

Then verify:

llm-relay keys             # are the credentials good?
llm-relay pools --probe    # does every configured model actually answer?

With the relay still running, open its local read-only analytics in another terminal:

llm-relay dashboard

New here? docs/QUICKSTART.md is a staged setup guide you can hand straight to an AI assistant ("set this up for me"). It also covers keeping the relay running at login.

What you get

  • Credential fleets — give one provider multiple labeled, env-backed keys; the relay walks slots breadth-first and keeps account faults and limits separate. Configure fleets.
  • Pools with failovermodel: "pool/medium" expands to a ranked candidate list; 429s and outages cascade to the next member. Free-model pools update themselves from live catalogs.
  • Passthrough — Claude traffic keeps your own credentials and reaches real Anthropic untouched, while pool/* requests go elsewhere. One proxy, both behaviours.
  • Opt-in offload — route Claude/Codex subagents (or whole conversations) to free providers. llm-relay candidates compares targets; a freeOnly guard ensures rerouted traffic never spends money.
  • Tool-call repair — malformed tool calls are corrected and re-validated; destructive tool calls are refused, never fabricated; unrepairable calls fail clean.
  • Both API fronts — Anthropic /v1/messages plus OpenAI /v1/chat/completions and /v1/responses, translated in either direction, streaming included.
  • Local analytics dashboardllm-relay dashboard opens bounded request/attempt, token, latency, provider/model/client/credential, quota, and cooldown views. Unknown or unavailable accounting remains explicit; the dashboard never guesses a value or starts provider probes.
  • Honest metadata — per-deployment limits and prices with provenance, capability scores synced from four leaderboards, metadata-only logging, loopback-only binding.

Learn more

llm-relay help lists every command. CLAUDE.md maps the source for contributors.