Skip to content
PluginStats

@paystage/ai-sdk weekly downloads statistics

By paystage · npm · AI SDKs

Stop your agent paying a drainer: PayStage preflight as AI SDK tools, so the payment is checked inside the same loop that would sign it. pay / review / do_not_pay.

View on npm Fresh · Dec 6, 2026

@paystage/ai-sdk has 903 recorded weekly downloads on npm, a change of -32.5% over the past 7 days, ranking #2099 of 3,247 tracked listings.

Weekly downloads
903
Official API · Dec 5, 2026
7-day growth
-32.5%
-434 weekly downloads
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#2099
▼ 191 in 7 days

About @paystage/ai-sdk

@paystage/ai-sdk

PayStage preflight as AI SDK tools. Decide whether an x402 payment should be signed inside the same loop that would sign it, with the rules that fired.

npm install @paystage/ai-sdk ai zod
import { generateText, gateway } from "ai";
import { paystageTools } from "@paystage/ai-sdk";

const policy = {
  version: 1,
  max_amount: { value: "0.05", asset: "USDC", decimals: 6 },
  allowed_assets: [{ symbol: "USDC", decimals: 6, address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", network: "eip155:8453" }],
  allowed_networks: ["eip155:8453"],
  unknown_payee: "deny",
};

const { text } = await generateText({
  model: gateway("openai/gpt-5-mini"),
  tools: { ...paystageTools({ policy }), ...yourPaymentTools },
  prompt: "Buy the weather data, but not above 2 cents.",
});

The two tools

toolreturns
paystage_evaluate_paymentdecision (pay / review / do_not_pay), reasons[], summary
paystage_should_payallowed, decision, reasons[] — one-word form for when reasoning is noise

What it will not do

Nothing here signs, holds a key, or moves money. That is not a limitation, it is the design: the tool that decides must not be the tool that spends. Your payment tool stays where it is; these tools only tell the model whether to call it.

Read-only also means the cost is predictable — evaluating a payment is a local computation, not a network call and not a paid request.

onReview

review means the policy found something worth a human's attention (an unknown payee, an unusual amount) but did not refuse. onReview: "refuse" turns those into refusals; the default "pay" lets them through with the reason attached.

Related

  • @paystage/x402-guard — the same policy, wrapping fetch so a refusal never reaches the signer
  • @paystage/mcp — nine tools over MCP, for Claude, Cursor and anything else that speaks it
  • Hosted, no install: https://api.paystage.xyz/mcp

Description from the npm listing.

  • payment-safety
  • x402
  • agent-payments
  • spend-limits
  • drainer
  • firewall
  • allowlist
  • blocklist
  • scam-prevention
  • usdc
  • base
  • mcp
  • preflight
  • ai-sdk
  • vercel
  • payments
  • agents
  • vercel-ai
  • tools

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@paystage/ai-sdk weekly downloads on npm, last 90 days: 903 weekly downloads as of Dec 5, 2026.@paystage/ai-sdkWeekly downloads on npm · Last 90 days903downloads / week05001K1.5K2K2.5K3KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@paystage/ai-sdk weekly downloads on npm, last 90 days: 903 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

@paystage/ai-sdk weekly downloads growth on npm: -32.5% over 7 days, 30-day growth unavailable, 90-day growth unavailable.@paystage/ai-sdkWeekly downloads growth on npm903downloads / week now7-day growth-434 weekly downloads-32.5%30-day growth+903 weekly downloadsInsufficient history90-day growth+903 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@paystage/ai-sdk weekly downloads growth on npm: -32.5% over 7 days, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

@paystage/ai-sdk npm ranking history: currently #2099 (by weekly downloads).@paystage/ai-sdknpm ranking · by weekly downloads · Last 90 days#2099current rank#1500#1600#1700#1800#1900#2000#2100#2200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 24, 2026 – Dec 6, 2026 · 13 observations · Updated Dec 5, 2026pluginstats.com
@paystage/ai-sdk npm ranking history: currently #2099 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 105, #19 (overall #2,099)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 12, #11 (overall #231)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (128)
Recent weekly downloads observations for @paystage/ai-sdk
Date (UTC)Weekly downloadsChange vs. previous
903-15
918-166
1,084+110
974-67
1,041-110
1,151-74
1,225-112
1,337+2
1,335-24
1,359-125
1,484-266
1,750-153
1,903-349
2,252—

Similar npm AI SDKs plugins

All 20 @paystage/ai-sdk alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@paystage/ai-sdk. First seen Nov 24, 2026; last successful collection Dec 6, 2026. See the methodology.