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

@houdiniswap/ai-tools

v0.1.8

Published

HoudiniSwap tools for Vercel AI SDK — connect AI agents to 14 CEXes and 20+ DEXes

Downloads

90

Readme

@houdiniswap/ai-tools

Vercel AI SDK tool definitions for HoudiniSwap — crypto swap aggregation across 14 CEXes and 20+ DEXes, paid per call in USDC on Base via x402.

npm install @houdiniswap/ai-tools
import { createHoudiniTools } from "@houdiniswap/ai-tools";
import { generateText, stepCountIs } from "ai";

const tools = createHoudiniTools({
    auth: { type: "x402", privateKey: process.env.WALLET_KEY as `0x${string}` },
});

const { text } = await generateText({
    model: "anthropic/claude-sonnet-5",
    tools,
    prompt: "Swap 0.1 BTC to ETH and send it to 0x…",
    stopWhen: stepCountIs(10),
});

A funded wallet is required

Every tool costs money — there is no free tier. Fund an EVM wallet with a couple of dollars of USDC on Base. No ETH needed; payments are gasless EIP-3009 authorisations. Use a wallet holding only what you intend to spend.

Tools

getTokens · getChains · getSwapProviders · getMinMax · getQuote · createExchange · getOrder · getOrders · dexApprove · dexCheckAllowance · dexConfirmTx · dexChainSignatures · swap

Reads cost $0.0001, quotes $0.001, createExchange and dexConfirmTx $0.01 each.

Unlike @houdiniswap/mcp-server, these tools return the raw API response with no shaping. A single unfiltered getQuote can return 150+ quotes, so consider trimming results before they reach the model's context.

No browser signing here — deliberately

mcp-server has dexSignRequest/dexSignStatus, which open a page on 127.0.0.1 for the user to sign a swap in their own wallet. They are not ported here, and should not be.

That design is safe only because an MCP server runs on the same machine as the person using it: loopback is what makes the page unreachable by anyone else. These tools usually run on a server, where the operator and the end user are different people — a signer bound there would be reachable by whoever controls the host and by nobody the transaction actually belongs to.

If you need users to sign, hand the transaction to your own frontend and let their wallet sign it there. The unsigned transaction is on the order's metadata.

Auth

createHoudiniTools({ auth: { type: "x402", privateKey: "0x…" } })   // pay per call
createHoudiniTools({ auth: { type: "apiKey", key: "id:secret" } })  // partner key

Paid calls are serialised ~5s apart — the facilitator settles each payment on-chain and two at once from the same wallet fail. A payment ceiling of $0.10 per call is enforced client-side.

MIT · Source