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

sub-bridge

v1.2.5

Published

MCP bridge to use ChatGPT Pro, Claude Max, etc. in Cursor via an OpenAI-compatible proxy

Readme

Sub Bridge

Use ChatGPT Pro/Max, Claude Max, etc. directly in Cursor via an MCP-managed OpenAI-compatible proxy.

Demo video

Why Sub Bridge

  • Subscriptions win: Claude Code and ChatGPT Max typically deliver 3x to 5x more tokens per dollar than usage pricing.
  • Use existing subscriptions: keep what you already pay for and route usage into Cursor.
  • Keep Cursor UX: chat, agents, and tools continue to work; autocomplete still needs a Cursor plan.

Quick Start

  1. Install the MCP server:

  1. Ask chat to connect ChatGPT Pro or Claude Max and login with your credentials locally and generate API Key for Cursor locally.
  1. Finish setup in Cursor (two steps side-by-side)

How it works

graph LR
  A[Cursor] --> B[MCP server]
  A --> C[Local OpenAI-compatible proxy]
  B --> F[OpenAI OAuth]
  B --> G[Claude OAuth]
  C --> D[Claude APIs]
  C --> E[OpenAI APIs]
  subgraph SB[Sub-bridge]
    B
    C
  end

Sub Bridge is an MCP server that includes OpenAI API proxy. It lets you login with Claude or ChatGPT and generate API keys for the proxy, which then set in Cursor Settings as an external provider.

The proxy uses Codex and Claude Code specific instructions that enables you to use Cursor with your local credentials.

API key format and parsing

Sub Bridge reads the Authorization: Bearer ... header and supports multiple tokens so you can route Cursor models to Claude while still passing an OpenAI or ChatGPT token.

Rules:

  • Tokens are space-separated. Comma separation is supported as a fallback.
  • A routed key contains mappings before the last : and the API key after it.
  • A mapping is cursor_model=claude_model, and multiple mappings are comma-separated.
  • A plain token (no =) is treated as the default key.
  • If a token contains #account_id, the suffix is used as the ChatGPT account id.
  • Model aliases opus-4.5 and sonnet-4.5 expand to their full Claude model IDs.
  • If the default key is a JWT or has an account id, requests go to the ChatGPT backend; otherwise they go to the OpenAI API.

Examples:

Authorization: Bearer o3=opus-4.5,o3-mini=sonnet-4.5:sk-ant-xxx sk-openai-xxx

Routes o3 and o3-mini to Claude using sk-ant-xxx, while sk-openai-xxx becomes the default token.

Authorization: Bearer o3=opus-4.5:sk-ant-xxx,sk-openai-xxx

Comma fallback: splits into a routed Claude token plus a default token.

Authorization: Bearer sk-chatgpt-xxx#account_id

Single default token routed to the ChatGPT backend.

Known Limitations

  • Image/file uploads in Cursor chat may not work due to a Cursor bug that validates API keys against OpenAI's servers even with a custom base URL. See #15 for details and workarounds.