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

claude-remap

v1.12.0

Published

Local API proxy for third-party model relay stations. Zero deps, pure Node.js.

Readme

claude-remap

Local API proxy with model name remapping. Zero dependencies, pure Node.js.

Point your AI tools at localhost, use custom model names — the proxy rewrites them to the real upstream model and rewrites responses back. Supports both OpenAI (Authorization: Bearer) and Claude (x-api-key) auth formats, auto-detected per request.

Install & Run

npx claude-remap \
  -t https://your-relay.com \
  -k sk-your-api-key \
  -m my-model:real-model-name

What It Does

Your Tool                    claude-remap                  Relay Station
─────────                    ────────────                  ─────────────
model: "my-gpt4"    →    rewrites to "deepseek-chat"   →   upstream API
                     ←    rewrites back to "my-gpt4"    ←   response
  • Proxies all requests from localhost to the target relay station
  • Replaces the model field in request JSON with the mapped real name
  • Rewrites the model field in responses (including SSE streams) back to your alias
  • Injects your API key automatically — clients don't need a real key
  • Auto-detects Claude vs OpenAI auth format

Options

| Flag | Env Var | Default | Description | |------|---------|---------|-------------| | -t, --target <url> | PROXY_TARGET | — | Relay station base URL (required) | | -k, --key <key> | PROXY_KEY | — | API key, injected into every request | | -p, --port <port> | PROXY_PORT | 9960 | Local port | | -m, --map <a:b> | — | — | Model alias mapping, repeatable | | -v, --verbose | — | — | Log upstream details |

Examples

Single model remap

npx claude-remap \
  -t https://api.relay.com \
  -k sk-xxxx \
  -m gpt4:deepseek-chat

Multiple models

npx claude-remap \
  -t https://api.relay.com \
  -k sk-xxxx \
  -m claude-sonnet:deepseek-v4-pro \
  -m claude-opus:deepseek-reasoner \
  -m gpt4:qwen-max

Use with Claude Code

  1. Start the proxy:
npx claude-remap \
  -t https://your-relay.com \
  -k sk-real-key \
  -m claude-deepseek-v4-pro:deepseek-v4-pro
  1. Configure Claude Code to use http://localhost:9960 as API base URL, with any placeholder API key.

  2. Select model claude-deepseek-v4-pro — it hits deepseek-v4-pro on the relay station.

Env vars (no key in shell history)

export PROXY_TARGET=https://api.relay.com
export PROXY_KEY=sk-xxxx
npx claude-remap -m my-model:real-model

Requirements

  • Node.js >= 18

License

MIT