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

@barzkit/elizaos

v0.1.0

Published

BarzKit plugin for ElizaOS — self-custody AI agent wallets with send, swap, lend, freeze, and x402 payments

Readme

@barzkit/elizaos

BarzKit plugin for ElizaOS — self-custody AI agent wallets with send, swap, lend, freeze, and x402 payments.

Installation

npm install @barzkit/elizaos @barzkit/sdk

@elizaos/core is a peer dependency — your ElizaOS project already has it.

Configuration

Add these to your ElizaOS character settings or .env:

BARZ_OWNER_KEY=0x...       # Owner private key (hex, 32 bytes)
PIMLICO_API_KEY=pk_...     # Get one at https://dashboard.pimlico.io
BARZ_CHAIN=sepolia         # sepolia | base-sepolia | base

Usage

import { barzPlugin } from '@barzkit/elizaos'

// Register the plugin in your ElizaOS character config
const character = {
  name: 'DeFi Agent',
  plugins: [barzPlugin],
  settings: {
    secrets: {
      BARZ_OWNER_KEY: process.env.BARZ_OWNER_KEY,
      PIMLICO_API_KEY: process.env.PIMLICO_API_KEY,
      BARZ_CHAIN: 'sepolia',
    },
  },
}

Once registered, your agent responds to natural language:

  • "Send 0.01 ETH to 0x..." — sends ETH via gasless UserOperation
  • "What is my balance?" — checks wallet ETH balance
  • "Swap 100 USDC for WETH" — swaps via Uniswap V3
  • "Lend 50 USDC" — supplies to Aave V3
  • "Freeze the wallet" — emergency kill switch
  • "Unfreeze the wallet" — re-enables transactions
  • "Fetch https://api.example.com/data" — x402 auto-payment fetch

Actions

| Action | Trigger Examples | |--------|-----------------| | SEND_TRANSACTION | "send 0.1 ETH to 0x...", "transfer", "pay" | | CHECK_BALANCE | "balance", "how much ETH", "wallet balance" | | SWAP_TOKENS | "swap 100 USDC for WETH", "trade", "exchange" | | LEND_TOKENS | "lend 50 USDC", "deposit", "supply" | | BATCH_TRANSACTIONS | "batch transactions: [{...}]" | | FREEZE_WALLET | "freeze", "lock wallet", "kill switch" | | UNFREEZE_WALLET | "unfreeze", "unlock wallet", "resume" | | FETCH_WITH_PAYMENT | "fetch https://...", "pay and fetch" |

Architecture

@barzkit/elizaos (Plugin)
  ├── BarzService     — creates & holds BarzAgent via @barzkit/sdk
  ├── walletProvider  — injects wallet context (address, balance, status)
  └── 8 Actions       — NLP-parsed handlers for wallet operations

The plugin uses BarzService to manage the smart account lifecycle. Each action gets the service from the ElizaOS runtime, parses the user's message with regex, and calls the appropriate BarzAgent method.

Provider

The walletProvider injects wallet context into the agent's conversation:

Agent wallet: 0x... on sepolia. Balance: 0.5 ETH. Status: active.

Development

npm run build    # tsup build (ESM + DTS)
npm test         # vitest unit tests
npm run lint     # tsc --noEmit type check
npm run dev      # tsup watch mode

License

MIT