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

@agentis-hq/sdk

v0.2.0

Published

Agentis SDK — AI agent payment infrastructure for Solana

Readme

@agentis-hq/sdk

AI agent payment infrastructure for Solana. Drop-in fetch replacement that silently handles MPP/x402 payments, enforces spending policies, and signs transactions via your Agentis agent wallet.

Install

npm install @agentis-hq/sdk

Usage

import { AgentisClient } from '@agentis-hq/sdk'

const agentis = await AgentisClient.create({
  apiKey: 'agt_live_xxxx',        // from Agentis Dashboard
})

// Paid HTTP/x402/MPP endpoints — handles 402 silently
const res = await agentis.fetch('https://api.dune.com/some/paid/endpoint')
const data = await res.json()

// Direct wallet payments
const signature = await agentis.pay('recipient-solana-address', 0.01)

// Balances
const balances = await agentis.balance()
const sol = await agentis.balance('So11111111111111111111111111111111111111112')

Policy management

// Get current policy
const policy = await agentis.policy.get()

// Update policy
await agentis.policy.update({
  dailyLimit: 0.1,
  maxPerTx: 0.01,
  allowedDomains: ['api.dune.com', 'api.openai.com'],
})

Options

const agentis = await AgentisClient.create({
  apiKey: 'agt_live_xxxx',
  simulate: true,              // dry run — logs payments, no real transactions
  autoEarn: true,              // auto-deposit idle funds to Jupiter Earn (coming soon)
  onPayment: (details) => {
    console.log(`Paid ${details.amount} ${details.currency} to ${details.recipient}`)
  },
})

Server-side paywall

Turn any endpoint into an MPP and/or x402 paid endpoint. Amounts are atomic token units: for USDC/USDT, 1000 means 0.001 token; for SOL, 10000 means 10000 lamports.

// app/api/data/route.ts (Next.js)
import { paywall } from '@agentis-hq/sdk/server'

export const GET = paywall(
  {
    protocol: 'both',
    asset: 'usdc',
    amount: '1000',
    recipient: 'YourSolanaWallet',
  },
  async (req) => {
    return Response.json({ data: 'premium content' })
  }
)
// Hono
import { honoPaywall } from '@agentis-hq/sdk/server'
app.use('/api/data', honoPaywall({
  protocol: 'x402',
  asset: 'usdc',
  amount: '1000',
  recipient: 'YourSolanaWallet',
}))

Supported Solana devnet assets:

  • MPP: native SOL, USDC, and USDT/SPL-compatible token mints.
  • x402: SPL tokens through the x402 SVM exact scheme. USDC and USDT are supported; native SOL is intentionally MPP-only unless wrapped as an SPL asset and supported by your facilitator.

The server helpers use standard protocol headers: MPP uses WWW-Authenticate, Authorization, and Payment-Receipt; x402 v2 uses PAYMENT-REQUIRED, PAYMENT-SIGNATURE, and PAYMENT-RESPONSE.