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

copilot-relay

v0.4.8

Published

Yet, just another relay for Claude Code to use a GitHub Copilot subscription.

Readme

copilot-relay

Use Claude Code with the models available through your GitHub Copilot subscription.

CI npm version Node.js License: MIT

Features

  • Claude Code, familiar workflow — Messages API compatibility, streaming responses, and tool calls.
  • WebSearch that fits the conversation — relay-managed search, followed by an answer that can still use your tools.
  • Your models, your settings — configurable GPT/Opus routes and reasoning effort; existing selections survive upgrades.
  • Use the advertised capacity — discovered context/output limits, without silently shortening your input.
  • Use advertised chat models — catalog-driven endpoint selection, optional effort support, and clear opt-in per-model deep checks.
  • Choose Claude's upstream protocol — claudeUpstreamApi: chat-completions stays the default; opt into auto or messages for native Claude transport.
  • Diagnose offline — debug mode captures full observed bodies for copilot-relay replay; captures contain unredacted prompts and must never be shared wholesale.
  • Run it your way — foreground CLI or background service on macOS, Windows, and Linux; set apiKey to require a client key before binding beyond loopback.

Quick start

You need Node.js 22+, Claude Code, and a GitHub account with Copilot access to the models you select.

npm install -g copilot-relay
copilot-relay auth
copilot-relay start

Follow the device-login prompt. Keep the relay running in this terminal; by default, startup configures Claude Code's connection in ~/.claude/settings.json. Open a second terminal and run:

claude

Configuration lives in ~/.copilot-relay/config.yaml. Model access depends on your account and organization policy; if startup rejects a model, choose an available one using the configuration guide. Behind a proxy, set upstreamProxy in config.yaml to its URL, or env, before copilot-relay auth.

Discover models, find the config value for one, and optionally test it:

copilot-relay models
copilot-relay models sol fast    # prints the exact gptModel or opusModel line
copilot-relay models --deep --model claude-opus-5.5

Deep checks consume Copilot usage and test an isolated relay pipeline, not the running daemon. Add --details for safe failure evidence and private replay hints. Use copilot-relay status --deep for daemon health, and copilot-relay stop when finished.

Check how well prompt caching works per model and upstream route. The report reads only local logs and shows a hit rate below the goal, 95% by default, in red:

copilot-relay cache                  # last 24 hours
copilot-relay cache --hourly         # or --daily; narrow with --since 6h or --model opus
copilot-relay cache --json

Check your Copilot plan and quota with copilot-relay usage; add --json for scripts. It asks GitHub with the stored token, so no relay needs to run.

Go further

Open the Wiki · English / 中文

Unofficial research project; not affiliated with GitHub or Anthropic. Upstream services and compatibility can change. Model and tool support are not guaranteed; see the Wiki for known limitations. MIT licensed.