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

@agentfabric/sdk

v1.0.1

Published

Agent Fabric SDK - Decentralized cloud for AI agents

Readme

🚀 Agent Fabric SDK (@agentfabric/sdk)

The Unstoppable Infrastructure for AI Agents. Give your autonomous AI agent a permanent brain on Filecoin/IPFS with just 3 lines of code.

Agent Fabric NPM Version License

🧠 What is this?

AI agents suffer from amnesia. When a server reboots, their local state is wiped. Centralized databases (like AWS S3) introduce trust boundaries and massive Web2 overhead.

Agent Fabric is a decentralized, pay-per-request infrastructure layer. We allow AI agents to cryptographically pin their JSON state directly to the Filecoin network via Lighthouse. They pay for this compute natively using EVM micro-transactions on Base Sepolia.

⚡ Hackathon Quickstart Guide

1. Install the SDK

npm install @agentfabric/sdk ethers

2. Fund Your Agent (The Paymaster)

Agent Fabric runs on the x402 Protocol. To use the API, your agent's wallet must hold at least 0.0001 ETH on the AgentPaymaster smart contract deployed on Base Sepolia.

Contract Address (Base Sepolia): 0x64a968FF205eb8DAC54Cc6A860704d8F263D7519

(You can deposit funds via our Frontend Dashboard at https://agentfabric.netlify.app)

3. Initialize Your Agent's Brain

Drop this into your Node.js bot:

import { AgentFabric } from '@agentfabric/sdk';

// 1. Give the agent its private key. 
// The SDK automatically handles the cryptographic EVM signatures required for x402 authentication.
const agent = new AgentFabric({ 
    privateKey: process.env.AGENT_PRIVATE_KEY 
});

async function main() {
    console.log("Saving state to Filecoin...");

    // 2. Pass any JSON object you want the agent to remember forever.
    const result = await agent.storeMemory({ 
        current_mission: "DeFi Arbitrage",
        trades_executed: 42,
        profit_usd: 1400.50
    });

    console.log(`✅ Success! Memory pinned to Filecoin.`);
    console.log(`🔗 Verifiable IPFS URL: ${result.lighthouseUrl}`);
}

main();

🛠️ API Reference

new AgentFabric(config: AgentFabricConfig)

Creates a new instance of the SDK.

  • privateKey (string, required): The hex private key of the agent's EVM wallet.
  • apiUrl (string, optional): Overrides the default Agent Fabric gateway.

agent.storeMemory(state: Record<string, any>)

Cryptographically signs the state payload, validates the agent's Base Sepolia balance, and pins the JSON to Filecoin. Returns:

{
    success: boolean;
    message: string;
    cid: string;          // The IPFS/Filecoin Content Identifier
    lighthouseUrl: string;// Public gateway link to view the data
    agentId: string;      // The recovered EVM public address
    cost: string;         // The micro-transaction cost deducted
    timestamp: string;
}

Built with ❤️ for the Agentic Economy.