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

provenby-proxy

v0.1.0

Published

Transparent LLM API proxy that captures skill metadata for ProvenBy

Readme

ProvenBy-proxy

Transparent LLM API proxy that captures skill metadata for ProvenBy. Change one env var, keep all your existing code.

Quick start

# Start the proxy
npx ProvenBy-proxy --port 4000 --candidate-id YOUR_ID --api-key sig_YOUR_KEY

# Point your SDK at it (one env var change)
export OPENAI_BASE_URL=http://localhost:4000/v1

# All existing code works unchanged
python -c "import openai; openai.chat.completions.create(model='gpt-4o', messages=[...])"

How it works

  1. Your code sends API requests to localhost:4000 instead of api.openai.com
  2. The proxy forwards the request to the real provider -- unchanged, with all your headers and auth
  3. The provider's response streams back to your code -- identical, transparent
  4. In the background, the proxy extracts skill patterns (languages, frameworks, domains) from the request
  5. Only anonymized metadata is sent to ProvenBy -- never raw text

Supported providers

Routes are auto-detected from request paths:

| Path | Provider | |---|---| | /v1/chat/completions | OpenAI (also xAI, DeepSeek, any OpenAI-compatible) | | /v1/messages | Anthropic | | /v1/chat/complete | Mistral |

Override with path prefixes: /openai/v1/..., /anthropic/v1/..., /deepseek/v1/...

Configuration

CLI flags

--port, -p          Port to listen on (default: 4000)
--candidate-id, -c  ProvenBy candidate ID
--api-key, -k       ProvenBy API key
--server-url, -s    ProvenBy server URL
--config            Path to config file (default: ~/.provenby/proxy.json)
--debug             Log extraction activity to stderr

Config file (~/.provenby/proxy.json)

{
  "port": 4000,
  "candidateId": "xxx",
  "apiKey": "sig_xxx",
  "serverUrl": "https://provenby.dev",
  "providers": {
    "openai": "https://api.openai.com",
    "anthropic": "https://api.anthropic.com",
    "xai": "https://api.x.ai",
    "deepseek": "https://api.deepseek.com",
    "mistral": "https://api.mistral.ai"
  }
}

Environment variables

PROVENBY_PROXY_PORT=4000
PROVENBY_CANDIDATE_ID=xxx
PROVENBY_API_KEY=sig_xxx
PROVENBY_SERVER_URL=https://provenby.dev

Priority: CLI flags > config file > env vars.

Privacy model

The proxy sees raw text (it has to, to forward it). But it:

  1. Extracts skills from the request messages locally
  2. Runs PII stripping on the extraction (not the forwarded request)
  3. Sends ONLY extraction metadata to ProvenBy (languages, frameworks, domains, complexity)
  4. Does NOT log, store, or cache the raw request/response body
  5. The forwarded request goes directly to the provider -- unchanged

What IS sent to ProvenBy: { model: "gpt-4o", languages: ["Python"], frameworks: ["FastAPI"], domain: "backend", complexity: "moderate" }

What is NOT sent: Your prompts, code, API keys, or any raw text.

For maximum privacy, use ProvenBy-sdk instead (extraction happens inside your process with no proxy).

Streaming

The proxy fully supports SSE streaming (stream: true). Streaming responses are piped directly from the provider to your code without buffering. Skill extraction runs on the request body only, so streaming adds zero latency.

Zero dependencies

Built entirely on Node.js built-in modules (http, https, url, path, fs, crypto). No node_modules needed.

Health check

curl http://localhost:4000/health
# {"status":"ok","version":"0.1.0"}