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

minipay-bot

v0.1.0

Published

> Your AI financial assistant for Celo MiniPay. Chat to send stablecoins, check balances, or learn about Celo — every action is an on-chain Celo transaction.

Downloads

23,758

Readme

MiniPayBot

Your AI financial assistant for Celo MiniPay. Chat to send stablecoins, check balances, or learn about Celo — every action is an on-chain Celo transaction.

Live on Celo Mainnet ERC-8004

What is MiniPayBot?

MiniPayBot is an AI-powered financial assistant that operates on the Celo blockchain. It uses natural language to help users:

  • Send stablecoins (cUSD, USDC) to any address
  • Check wallet balances across CELO, cUSD, and USDC
  • Look up transactions on CeloScan
  • Learn about Celo -- fee abstraction, stablecoins, MiniPay, ERC-8004

Every interaction creates a real, verifiable on-chain transaction on Celo mainnet. The agent pays network fees in stablecoins via Celo's fee abstraction, so it never needs native CELO for gas.

Live Demo

Try MiniPayBot →

Architecture

User (MiniPay / Browser)
    ↓ chat message
Next.js API Route (/api/chat)
    ├── AI SDK (streaming)
    ├── OpenAI GPT-4o-mini (reasoning)
    └── Celo Tools (viem)
        ├── checkBalance     → readContract (ERC-20)
        ├── transferStable   → writeContract (feeCurrency: cUSD adapter)
        ├── getAgentIdentity → ERC-8004 Identity Registry
        └── explainCelo      → Static knowledge base
    ↓ signed transaction
Celo Mainnet (Chain ID: 42220)
    └── Fee paid in cUSD via adapter 0x4806...

Deployed Contracts (Celo Mainnet)

| Contract | Address | Purpose | |----------|---------|---------| | AgentActionLog | 0xC30240D5ce3CD2AcB83968592AA5b9c8aE8Eb3cC | On-chain audit trail of agent actions | | ERC-8004 Identity | 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 | Agent identity registry | | ERC-8004 Reputation | 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 | Agent reputation system |

Tech Stack

  • Next.js 15 -- React framework with App Router
  • Vercel AI SDK -- LLM streaming and tool calling
  • viem -- TypeScript Ethereum client
  • OpenAI GPT-4o-mini -- Reasoning engine
  • ERC-8004 -- On-chain agent identity (Agent Trust Protocol)
  • Celo Fee Abstraction -- Gas paid in cUSD (CIP-64)
  • Tailwind CSS -- Styling
  • Foundry -- Smart contract development

MiniPay Compatible

MiniPayBot detects the MiniPay WebView environment and auto-connects. It follows all MiniPay UI copy rules:

  • Uses "network fee" instead of "gas"
  • Uses "stablecoin" instead of "crypto"
  • Never displays or requires CELO token

Getting Started

git clone https://github.com/cryptoflops/minipay-bot.git
cd minipay-bot
npm install
cp .env.example .env
# Add your OPENAI_API_KEY and AGENT_PRIVATE_KEY
npm run dev

Visit http://localhost:3000/chat to start chatting with the bot.

Celo Proof-of-Ship

This project is submitted to the AI Powered Apps & Agents track in Celo Proof-of-Ship.

  • KarmaGAP: MiniPayBot on KarmaGAP
  • Track: AI Powered Apps & Agents
  • One-liner: AI financial assistant for Celo MiniPay -- chat to send stablecoins, check balances, or manage savings

License

MIT