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

@solrouter/sdk

v1.0.0

Published

SolRouter Privacy SDK - End-to-end encrypted AI API calls

Readme

@solrouter/sdk

Privacy-first AI API client with end-to-end encryption.

Installation

npm install @solrouter/sdk

Quick Start

import { SolRouter } from '@solrouter/sdk';

const client = new SolRouter({
  apiKey: 'sk_solrouter_your_key_here'
});

// Your prompt is encrypted client-side before being sent
const response = await client.chat('Explain quantum computing');
console.log(response.message);

How It Works

  1. Client-side Encryption: Your prompt is encrypted using Arcium's RescueCipher before leaving your device
  2. Blind Backend: The server only sees encrypted data - it cannot read your prompt
  3. TEE Processing: Decryption only happens inside a Trusted Execution Environment (hardware-isolated)
  4. Encrypted Response: The AI response is encrypted back to you

API Reference

new SolRouter(config)

Create a new SolRouter client.

const client = new SolRouter({
  apiKey: 'sk_solrouter_...',  // Required: Your API key
  baseUrl: 'https://...',       // Optional: Custom API URL
  encrypted: true,              // Optional: Enable encryption (default: true)
});

client.chat(prompt, options?)

Send a chat message.

const response = await client.chat('Hello!', {
  model: 'gpt-oss-20b',         // Model to use
  encrypted: true,               // Override encryption setting
  systemPrompt: 'You are...',    // System prompt
  chatId: 'conv-123',            // For multi-turn conversations
  useRAG: false,                 // Enable knowledge retrieval
  useLiveSearch: false,          // Enable web search
});

console.log(response.message);        // AI response
console.log(response.encrypted);      // Was request encrypted?
console.log(response.usage);          // Token usage
console.log(response.cost);           // Cost in USDC

Available Models

| Model | Description | |-------|-------------| | gpt-oss-20b | Open-source GPT 20B (default, cheapest) | | qwen3-8b | Qwen 3 8B parameters | | gemini-flash | Google Gemini Flash | | claude-sonnet | Anthropic Claude Sonnet | | gpt-4o-mini | OpenAI GPT-4o Mini |

client.getBalance()

Check your account balance.

const balance = await client.getBalance();
console.log(balance.balanceFormatted); // "$10.5000"

Pricing

| Model | Input (per 1M tokens) | Output (per 1M tokens) | |-------|----------------------|------------------------| | gpt-oss-20b | $0.15 | $0.30 | | qwen3-8b | $0.05 | $0.10 | | gemini-flash | $0.075 | $0.30 | | claude-sonnet | $3.00 | $15.00 | | gpt-4o-mini | $0.15 | $0.60 |

Privacy Guarantee

When encryption is enabled (default):

  • Your prompts are encrypted on your device using Arcium's MPC encryption
  • The SolRouter backend NEVER sees your plaintext prompts
  • Decryption only happens inside a hardware-isolated TEE
  • On-chain privacy attestations are available for verification

Get an API Key

  1. Visit solrouter.com/api
  2. Connect your wallet
  3. Generate an API key
  4. Deposit USDC to fund your account

Links