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

@1xmint/clawnet-sdk

v1.0.0

Published

TypeScript SDK for the ClawNet AI agent orchestration API

Readme

@clawnet/sdk

TypeScript SDK for the ClawNet AI agent orchestration API.

Zero dependencies. Works in Node.js 18+ and any runtime with a global fetch.

Install

npm install @clawnet/sdk

Quick Start

import { ClawNet } from '@clawnet/sdk';

const claw = new ClawNet({ apiKey: 'cn-xxxx' });

// Orchestrate a query (AI selects the best API endpoints)
const result = await claw.orchestrate('What is the price of SOL?');
console.log(result.answer);
console.log(`Cost: ${result.totalCredits} credits`);

Configuration

const claw = new ClawNet({
  apiKey: 'cn-xxxx',           // Required - your ClawNet API key
  baseUrl: 'https://claw-net.org', // Optional - defaults to production
  cache: 'smart',             // Optional - 'prefer' | 'fresh' | 'smart'
  diff: false,                // Optional - return diffs for changed data
});

Methods

Core

// Orchestrate with budget control
const result = await claw.orchestrate('SOL price', {
  maxCredits: 5,
  strategy: 'cheapest', // 'cheapest' | 'balanced' | 'fastest' | 'reliable'
});

// Estimate cost before running
const estimate = await claw.estimate('SOL price history');

// Check your balance
const balance = await claw.getBalance();

Skills

// List available skills (with optional filters)
const skills = await claw.listSkills({ tag: 'defi', type: 'data' });

// Invoke a prompt skill
const invoke = await claw.invokeSkill('skill-id', { token: 'SOL' });

// Query a data skill
const data = await claw.queryDataSkill('skill-id', { chain: 'solana' });

Discovery

// Search for skills by natural language
const found = await claw.discover('DeFi yield farming');

// Get personalized recommendations
const recs = await claw.getRecommendations();

// Browse trending skills
const trending = await claw.getTrending();

Economy

// Transfer credits to another key
await claw.transferCredits('cn-recipient-key', 100);

// Get transaction receipts (with cryptographic hashes)
const receipts = await claw.getReceipts(10);

Cache

// View cache performance
const stats = await claw.getCacheStats();

// Get TTL optimization suggestions
const suggestions = await claw.getCacheOptimizer();

Static Methods (No Auth Required)

// Self-service onboarding - get an API key
const { apiKey, credits } = await ClawNet.onboard({
  name: 'My Agent',
  email: '[email protected]',
});

// Fetch the API manifest
const manifest = await ClawNet.getManifest();

Error Handling

import { ClawNet, ClawNetError } from '@clawnet/sdk';

try {
  await claw.orchestrate('query');
} catch (err) {
  if (err instanceof ClawNetError) {
    console.error(`${err.code}: ${err.message} (HTTP ${err.status})`);
  }
}

x402 Mode

ClawNet supports the x402 payment protocol for pay-per-call API access using USDC on Solana. Surcharges are automatically handled server-side -- no SDK changes needed.

Documentation

Full API reference: https://claw-net.org/docs