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

cc-mux

v1.1.0

Published

Resilience and observability gateway for Claude Code — 529 recovery, traffic monitoring, optional Codex routing

Downloads

42

Readme

cc-mux

Resilience and observability gateway for Claude Code — recover from 529 overloads, monitor API traffic, and optionally route tool-continuation turns to Codex.

Quick Start

npm install -g cc-mux
cc-mux init        # detect Codex CLI, create config
cc-mux run         # start gateway + Claude Code

What It Does

Out of the box (no Codex needed):

  • Monitor all Claude Code API traffic in real time
  • Live dashboard with token usage, latency, cost estimates
  • Session analytics and optimization recommendations

With Codex CLI installed:

  • 529 overload recovery — when Claude is overloaded, Codex handles the request
  • Tool-continuation routing (opt-in) — route mechanical tool-chaining turns to Codex

How Routing Works

You → Claude Code → cc-mux
                       │
           ┌───────────┼───────────┐
           │                       │
   User messages              Tool continuations
   (thinking, planning)       (Read, Grep, Edit chains)
           │                       │
           ▼                       ▼
     Anthropic API            Codex CLI
      (Claude)               (GPT-5.4)

When Claude reads a file and decides to read another, that second call is a tool continuation. cc-mux can route these to Codex. This is opt-in — disabled by default.

  • Error tool results are never routed (Claude handles failures)
  • User-initiated turns always go to Claude
  • 529 fallback works for any request type

Commands

| Command | Description | |---------|-------------| | cc-mux init | Create config at ~/.cc-mux/config.json | | cc-mux run | Start gateway + launch Claude Code | | cc-mux start | Start gateway only | | cc-mux stop | Stop running gateway | | cc-mux dashboard | Live terminal dashboard | | cc-mux stats | Session metrics | | cc-mux advise | Optimization recommendations |

Options: --port 8080 --config <path> --lang en|ko --fresh

Configuration

cc-mux init generates a config. To enable Codex routing, edit ~/.cc-mux/config.json:

{
  "routing": {
    "enabled": true,
    "rules": [
      {
        "name": "tool-continuation-to-codex",
        "enabled": true,
        "target": "openai",
        "model": "gpt-5.4",
        "condition": {
          "last_message_tool_result": true
        }
      }
    ]
  },
  "fallback_529": {
    "enabled": true,
    "target_query_sources": []
  }
}

Trade-offs

  • Codex routing reduces Claude API usage but adds latency (Codex CLI is slower)
  • 529 fallback has no quality trade-off — it only activates when Claude is unavailable
  • Cost estimates in the dashboard are approximate (model-specific pricing applied)

Requirements

  • Node.js ≥18
  • Zero external dependencies
  • Codex CLI for routing/fallback features (optional)
  • oh-my-codex supported — auto-detected when installed

Disclaimer

This is NOT an official Anthropic or OpenAI product. cc-mux is an independent open-source tool. Use at your own discretion.

License

MIT