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

@kushbitx/agentkit

v0.1.4

Published

Coinbase AgentKit action provider for KushBitx: free SpendGuard spend-policy checks and pay-per-call x402 checks on Base: KushBitx Preflight (one verdict before money moves), Signature Check (EIP-712), token risk, transaction preflight, Quick Check and pa

Readme

@kushbitx/agentkit

Coinbase AgentKit action provider for KushBitx: safety checks for AI agents that pay on Base.

| Action | Price | What it does | |---|---|---| | kushbitx_preflight_transaction | 0.005 USDC | One call before money moves. Simulates the unsigned transaction, decodes approvals and transfers, screens the token and the recipient, and returns ALLOW, REVIEW or BLOCK with sourced findings; fail-closed. Does not detect prompt injection. Base (chain 8453) only. | | kushbitx_signature_check | 0.003 USDC | Checks an EIP-712 signature request (x402 payment authorisation, EIP-2612 Permit, Permit2) before the wallet signs it: ALLOW, REVIEW or BLOCK bound to the EIP-712 digest, with a locally computed canSign. | | kushbitx_spendguard_evaluate | free | Checks a proposed Base USDC payment against your spending policy before paying: APPROVE, HUMAN_APPROVAL or BLOCK. | | kushbitx_quick_check | 0.001 USDC | Base chain identity and official USDC contract presence. | | kushbitx_token_risk | 0.001 USDC | Sellability, taxes, privileged controls, holder concentration and market risk for a Base token. | | kushbitx_transaction_preflight | 0.001 USDC | Simulation Check: simulates an unsigned Base transaction before you sign it. | | kushbitx_verify_payment | 0.00288 USDC | Verifies a Base USDC transfer from its transaction hash. | | kushbitx_restore_report | free | Restores a paid report after paymentStatus "unknown" or "pending", from its reportId. Never pays again. |

Paid actions are paid per call with x402, signed by your agent's own AgentKit EVM wallet on Base mainnet. Current prices: https://kushbitx.com/api/services.

Install

npm install @kushbitx/agentkit @coinbase/agentkit zod

Use

import { AgentKit } from "@coinbase/agentkit";
import { kushbitxActionProvider } from "@kushbitx/agentkit";

const agentkit = await AgentKit.from({
  walletProvider, // any AgentKit EVM wallet provider on Base mainnet
  actionProviders: [kushbitxActionProvider({ maxPaymentUsdc: "0.005" })], // keep the wallet key in .env (EVM_PRIVATE_KEY), never in code
});

Preflight 1.1

kushbitx_preflight_transaction returns canSign. It is true only for ALLOW on the exact transaction the agent sent (same transactionDigest), before expiresAt (60 seconds). Send from, otherwise the verdict is REVIEW. For swaps add expectedTokenOut, and optionally minAmountOut and expectedRecipient.

Signature Check (0.1.4)

kushbitx_signature_check takes { chainId: 8453, signer, typedData }, plus expectedPayTo and expectedAmount for payments or expectedSpender for permits. It returns canSign and digestMatches, computed locally like Preflight 1.1. canSign is true only for ALLOW on the exact typed data the agent sent (same EIP-712 typedDataDigest), for the same signer, with chainId: 8453 in the input and in typedData.domain, before expiresAt. Typed data without a chain in its domain is never accepted. Server fields named canSign or digestMatches are kept only under server.

Payment status and recovery

Before signing a payment, each paid action prepares recovery credentials (POST /api/orders) and sends them with the paid request. The result says paymentStatus:

  • not_paid: nothing was signed, or the server rejected the authorization before settlement.
  • unknown: an authorization was signed but no report arrived, or the server answered with a body that is not valid JSON. Do not pay again. Call kushbitx_restore_report with the reportId in recovery to get the report if the payment settled.
  • pending: the report is still processing; restore it the same way.

Recovery keys stay out of the model's context (0.1.3)

The recovery key is a secret: whoever has it can read the report. From 0.1.3 it is never written into an action's output; the model only sees reportId.

  • The provider keeps the key in memory for this process, and the free action kushbitx_restore_report (reportId, optional txHash) uses it to call POST /api/orders/recover.
  • To survive a restart, pass onRecovery. It receives { reportId, recoveryKey, expiresAt, path } before anything is signed, and it must succeed: if it throws or rejects, the call ends with not_paid and nothing is signed. Pass getRecoveryKey(reportId) so kushbitx_restore_report can read the key back from your store.
kushbitxActionProvider({
  maxPaymentUsdc: "0.005",
  onRecovery: async r => store.set(r.reportId, r.recoveryKey),   // your database, file or secret store
  getRecoveryKey: async id => store.get(id),
});

chainId: 8453 is required in the action input (it is never assumed). canSign is false for any other chainId and for a report for another chain. canSign and digestMatches are always computed locally and written last; if the server sends fields with those names, they are kept only under server for diagnosis.

Safety limits

  • Per-call caps:
    • maxPaymentUsdc (default 0.005) is the overall cap: no action pays more than this for one call, kushbitx_preflight_transaction included.
    • maxPreflightUsdc (default 0.005) is an extra cap for Preflight only. Preflight uses the lower of the two.
    • Example: maxPaymentUsdc: "0.001" refuses Preflight (0.005) before anything is signed. Before 0.1.3, Preflight used maxPreflightUsdc alone.
    • A higher price is refused before anything is signed; the caps protect you if a price changes.
  • Invalid responses: a reply that is not a JSON object is an explicit error, never an empty success (same rule as @kushbitx/sdk).
  • Only our exact requirement is signed: exact scheme, Base (eip155:8453), USDC, paid to 0x0d68028d06af13379C872FEE032568B4Be712f22. Anything else is refused before signing.
  • Base mainnet only for paid actions. SpendGuard is free on any network.
  • KushBitx never receives keys, never signs and never moves funds. INCOMPLETE means missing evidence, never zero risk.

Requests carry x-kushbitx-channel: agentkit so we can count AgentKit usage. No personal data is added.

Links

  • Developers: https://kushbitx.com/developers
  • MCP server: https://kushbitx.com/mcp
  • Terms: https://kushbitx.com/terms · Privacy: https://kushbitx.com/privacy
  • Contact: [email protected]

License: Apache-2.0