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

@reclaimprotocol/llm-x402-client

v1.0.1

Published

Client SDK for x402-powered LLM API with automatic payment handling and zkTLS proofs

Readme

x402 zkTLS LLM Router

An OpenRouter alternative, where you have guarantee that you are getting responses from the model you requested, and not a cheaper/smaller model. With proofs of correct model being called provided by Reclaim Protocol

You can pay for each request, without having to buy a subscription or credits using USDC on Base Network.

Quickstart

Installation

Install the LLM x402 client

npm install @reclaimprotocol/llm-x402-client

Usage

import { LLMClient } from '@reclaimprotocol/llm-x402-client';

Call the LLM

    const client = new LLMClient({
      apiUrl: "https://llm-x402.reclaimprotocol.org",
      walletPrivateKey: process.env.X402_WALLET_PRIVATE_KEY,
      network: 'base',
    });
    const result = await client.callLlm({
      model,
      messages: [
        { role: 'user', content: message }
      ],
    });

Wallet private key

You can use a private key that you own on Base Network. If you don't own one, you can create one using

npx create-wallet

You must then send USDC and some ETH to the above wallet. Make sure you add the private key to your .env.local file

LLM_API_URL=https://llm-x402.reclaimprotocol.org/api/call-llm
X402_NETWORK=base
X402_WALLET_PRIVATE_KEY=0x...

Models

Currently supports Anthropic, OpenAI and Google (soon) You can see supported models on Supported Models page

Self Hosting

When initializing LLMClient, you can pass your own self hosted x402 server as apiUrl.

To self host,

Clone

$ git clone https://github.com/reclaimprotocol/llm-x402.git

Env variables

Set these in the .env file

# API Keys for LLM Providers
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-proj-...
GOOGLE_API_KEY=AI...

# x402 Payment Configuration
X402_WALLET_ADDRESS=0x...
X402_NETWORK=base

# CDP API Keys for mainnet facilitator
CDP_API_KEY_ID=...
CDP_API_KEY_SECRET=...

# Reclaim Protocol zkFetch Configuration
RECLAIM_APP_ID=...
RECLAIM_APP_SECRET=...

Where to get the API Keys

LLM API Keys :

Payment configuration

CDP API Keys

Reclaim API Keys

Run it

$ npm run build && npm run start