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

create-aixyz-app

v0.35.0

Published

Payment-native SDK for AI Agent

Downloads

2,661

Readme

Documentation

Full documentation, API reference, and guides at aixyz.sh.

Quick Start

bunx create-aixyz-app my-agent
cd my-agent
bun run dev

Your agent is running. It exposes:

| Endpoint | Protocol | What it does | | ------------------------------ | -------- | ------------------------------------ | | /.well-known/agent-card.json | A2A | Agent discovery card | | /agent | A2A | JSON-RPC endpoint, x402 payment gate | | /mcp | MCP | Tool sharing with MCP clients |

How It Works

An aixyz agent has three parts: a config, an agent, and tools.

1. Config

aixyz.config.ts declares your agent's identity and payment address:

import type { AixyzConfig } from "aixyz/config";

const config: AixyzConfig = {
  name: "Weather Agent",
  description: "Get current weather for any location worldwide.",
  version: "0.1.0",
  x402: {
    payTo: "0x...",
    network: "eip155:8453", // Base mainnet
  },
};

export default config;

2. Agent

app/agent.ts defines your agent and its payment price:

import { openai } from "@ai-sdk/openai";
import { stepCountIs, ToolLoopAgent } from "ai";
import type { Accepts } from "aixyz/accepts";
import weather from "./tools/weather";

export const accepts: Accepts = {
  scheme: "exact",
  price: "$0.005",
};

export default new ToolLoopAgent({
  model: openai("gpt-4o-mini"),
  instructions: "You are a helpful weather assistant.",
  tools: { weather },
  stopWhen: stepCountIs(10),
});

3. Tools

Each file in app/tools/ exports a Vercel AI SDK tool and an optional accepts for MCP payment gating:

import { tool } from "ai";
import { z } from "zod";
import type { Accepts } from "aixyz/accepts";

export const accepts: Accepts = {
  scheme: "exact",
  price: "$0.0001",
};

export default tool({
  description: "Get current weather conditions for a city.",
  inputSchema: z.object({
    location: z.string().describe("City name"),
  }),
  execute: async ({ location }) => {
    // your logic here
  },
});

That's it. Run bun run dev and aixyz auto-generates the server, wires up A2A + MCP + x402, and starts serving.

Examples

| Example | Description | | ---------------------------------------------------------------- | ----------------------------------------------- | | boilerplate | Minimal starter (auto-generated server) | | chainlink | Chainlink data feeds with custom server | | flight-search | Flight search with Stripe payments | | local-llm | Local LLM via Docker (no external API) | | with-custom-facilitator | Bring-your-own x402 facilitator | | with-custom-server | Custom server setup | | with-express | Express middleware integration | | sub-agents | Multiple A2A endpoints from one deployment | | with-tests | Agent with test examples | | fake-llm | Fully deterministic testing with fake() model |

CLI

bun add aixyz            # CLI included with the aixyz package
bunx aixyz --help        # or run without installing
aixyz dev                # Dev server with hot reload
aixyz build              # Bundle for deployment (standalone, Vercel, or executable)
aixyz erc-8004 register  # Register on-chain agent identity
aixyz erc-8004 update    # Update agent metadata URI

See the CLI reference for all options.

Protocols

A2A (Agent-to-Agent) — Agent discovery card + JSON-RPC endpoint. Other agents find yours and send tasks.

MCP (Model Context Protocol) — Expose tools to any MCP client (Claude Desktop, VS Code, Cursor).

x402 — HTTP 402 micropayments. Per-request payment with cryptographic proof, verified on-chain.

ERC-8004 — On-chain agent identity on Ethereum, Base, Polygon, Scroll, Monad, BSC, or Gnosis.

Contributing

bun install          # install dependencies
bun run build        # build all packages
bun run test         # run tests
bun run format       # format with Prettier

PRs welcome. Please ensure bun run build && bun run test && bun run format pass before submitting.

License

MIT