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

skillforge-sdk

v1.0.1

Published

TypeScript SDK for SkillClaw — AI agent skill marketplace on Base

Readme

@skillforge/sdk

TypeScript SDK for SkillForge — the AI agent skill marketplace on Base.

Installation

npm install @skillforge/sdk

Quick Start

import { SkillForge } from '@skillforge/sdk';

const sf = new SkillForge({
  apiKey: 'sf_your_api_key_here',
  baseUrl: 'https://skillforge-api.example.com', // optional, defaults to localhost:3001
});

Authentication (Wallet Sign-In)

// 1. Get a nonce for your wallet address
const nonce = await sf.getNonce('0xYourWalletAddress');

// 2. Sign the nonce message with your wallet (e.g., ethers.js)
import { Wallet } from 'ethers';
const wallet = new Wallet('your-private-key');
const message = `Sign this message to authenticate with SkillForge:\n\n${nonce}`;
const signature = await wallet.signMessage(message);

// 3. Verify and get JWT + API key
const { token, apiKey } = await sf.verify('0xYourWalletAddress', signature, nonce);
console.log('Your API key:', apiKey); // sf_xxxxxxxxxxxx...

Generate a Skill

const result = await sf.generate({
  description: 'Monitor Ethereum gas prices and alert when below 20 gwei',
});

console.log(result.skill);  // Generated skill manifest
console.log(result.files);  // { skillJson, handlerTs, description }

Publish to Marketplace

const { skillId, txHash } = await sf.publish({
  name: 'Gas Monitor',
  description: 'Monitors ETH gas prices and sends alerts',
  price: 0.005, // USDC
});

Browse Marketplace

// List all skills
const { skills, total } = await sf.listSkills({ page: 1, limit: 20 });

// Get skill details
const skill = await sf.getSkill(1);

// Filter by creator
const mySkills = await sf.listSkills({ creator: '0xMyAddress' });

Install a Skill

const { txHash } = await sf.install({ skillId: 1 });

With x402 Payment (for paid skills)

const { txHash } = await sf.install({
  skillId: 1,
  paymentProof: {
    txHash: '0xPaymentTxHash',
    chain: 'base-sepolia',
    amount: 0.005,
    payer: '0xYourAddress',
  },
});

Creator Dashboard

const stats = await sf.getCreatorStats('0xCreatorAddress');
console.log(`Total skills: ${stats.totalSkills}`);
console.log(`Pending earnings: ${stats.pendingEarnings} USDC`);

const earnings = await sf.getEarnings('0xCreatorAddress');

Platform Stats & Health

const stats = await sf.getStats();
console.log(stats.version, stats.uptime, stats.contracts);

const health = await sf.getHealth();
console.log(health.status); // "ok"

Error Handling

import { SkillForgeError } from '@skillforge/sdk';

try {
  await sf.getSkill(999);
} catch (err) {
  if (err instanceof SkillForgeError) {
    console.log(err.status); // 404
    console.log(err.message); // "Failed to fetch skill"
  }
}

License

MIT