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

@auteng/agent-utils

v1.0.0

Published

x402 payments and sandboxed compute for autonomous AI agents

Readme

@auteng/agent-utils

x402 payments and sandboxed compute for autonomous AI agents. Discover, probe, and pay for x402-enabled services, and run sandboxed compute — all with USDC on Base.

Wallet management has moved to @auteng/pocket-money. This package focuses on x402 protocol tools and compute. Agents can use any wallet — pocket-money, Coinbase Agentic Wallet, viem, ethers, or raw key management.

Install

npm install @auteng/agent-utils

Quick Start

import { x402, compute } from '@auteng/agent-utils';

// Probe any URL to check if it's x402-enabled
const info = await x402.probe('https://api.example.com/generate');
console.log(info.price); // "$0.05 USDC on Base"

x402 — Discover & Inspect Services

Standalone functions for working with x402 services.

Probe a URL

Check if a URL is x402-enabled and see what it costs:

import { x402 } from '@auteng/agent-utils';

const info = await x402.probe('https://api.example.com/generate');
if (info.enabled) {
  console.log(info.price);                        // "$0.05 USDC on Base"
  console.log(info.paymentRequired.accepts[0]);    // full payment details
  console.log(info.paymentRequired.resource);      // what you're paying for
}

Discover services

Browse the Bazaar registry to find x402 services:

const { services, total } = await x402.discover({ limit: 10 });
for (const svc of services) {
  console.log(`${svc.description} — ${svc.price}`);
  console.log(`  ${svc.url}`);
}

Format prices

Convert raw x402 amounts to human-readable strings:

x402.formatPrice("2000", "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "eip155:8453");
// → "$0.002 USDC on Base"

x402.formatPrice("2000", "0x833589f...", "eip155:8453", { short: true });
// → "$0.002 USDC"

Compute (AutEng)

Convenience wrapper for AutEng's x402 sandboxed compute service. Accepts any object with a fetch() method as the wallet:

import { compute } from '@auteng/agent-utils';

const result = await compute.run({
  code: 'print("hello world")',
  stack: 'python',  // 'python' | 'node'
  size: 'small',    // 'small' | 'med' | 'large'
  wallet: myWallet, // any object with fetch()
});
console.log(result.stdout); // "hello world\n"

Pricing

| Size | vCPU | RAM | Base price | Per second | |-------|------|-------|-----------|------------| | small | 2 | 1 GB | $0.002 | $0.00005 | | med | 4 | 4 GB | $0.008 | $0.00012 | | large | 8 | 16 GB | $0.03 | $0.00025 |

compute.pricing(); // returns full pricing table

Development

npm install          # install dependencies
npm run build        # build CJS/ESM/DTS to dist/
npm test             # run tests
npm run test:watch   # run tests in watch mode

License

MIT