Skip to content
PluginStats

@grantex/vercel-ai weekly downloads statistics

By grantex · npm · AI SDKs

Vercel AI SDK integration for the Grantex delegated authorization protocol

View on npm Stale · Oct 17, 2026

@grantex/vercel-ai has 111 recorded weekly downloads on npm, a decrease of 70.4% over the past 30 days, ranking #1661 of 2,256 tracked listings.

Weekly downloads
111
Official API · Oct 17, 2026
7-day growth
-54.3%
-132 weekly downloads
30-day growth
-70.4%
-264 weekly downloads
90-day growth
+20.7%
+19 weekly downloads
Rank
#1661
Among tracked npm listings

About @grantex/vercel-ai

@grantex/vercel-ai

Vercel AI SDK integration for the Grantex delegated authorization protocol.

Adds scope-enforced tools and audit logging to any Vercel AI SDK agent.

Homepage | Docs | Sign Up Free | GitHub

Install

Quick Start

Scope-Enforced Tools

Create Vercel AI SDK tools with Grantex authorization. Before each execution, the wrapper verifies the token against JWKS and checks the verified scope. Invalid or insufficient tokens fail before your tool implementation runs:

Inspect Grant Scopes

Use getGrantScopes to check what scopes a token has before creating tools:

Audit Logging

Wrap tools with withAuditLogging to log every invocation to the Grantex audit trail:

API Reference

createGrantexTool(options)

Creates a Vercel AI SDK tool with Grantex scope enforcement.

| Option | Type | Description |

| name | string | Tool name | | description | string | Tool description | | parameters | z.ZodTypeAny | Zod schema for tool arguments | | grantToken | string | Grantex JWT from token exchange | | jwksUri | string? | JWKS URL; defaults to the Grantex production JWKS | | issuer, issuerDid, audience | string? | Optional JWT claim validation settings | | clockTolerance | number? | Clock tolerance in seconds | | requiredScope | string | Scope required — checked against verified claims before execution | | execute | (args, options) => Promise | Tool implementation |

Throws GrantexScopeError during execution if the verified scope is missing; token verification failures also reject execution.

getGrantScopes(grantToken)

Returns the unverified string[] from the token's scp claim for diagnostics only. Do not use this helper to authorize a call.

withAuditLogging(tool, client, options)

Wraps a Grantex tool with audit logging.

| Option | Type | Description |

| agentId | string | Agent ID for audit attribution | | agentDid | string | Agent DID for audit attribution | | grantId | string | Grant ID for the session | | principalId | string | Principal that authorized the agent | | toolName | string? | Override tool name in audit entries |

GrantexScopeError

Error thrown when a grant token is missing the required scope.

| Property | Type | Description |

| requiredScope | string | The scope that was required | | grantedScopes | string[] | The scopes the token actually has |

Requirements

• Node.js 18+ • @grantex/sdk >= 0.3.11 • ai >= 4.0.0 (Vercel AI SDK) • zod >= 3.0.0

Links

• Grantex Protocol • Vercel AI SDK Docs • TypeScript SDK • Spec

Grantex Ecosystem

This package is part of the Grantex ecosystem. See also:

• @grantex/sdk — Core TypeScript SDK • grantex — Python SDK • @grantex/langchain — LangChain integration • @grantex/autogen — AutoGen integration • @grantex/mcp — MCP server for Claude Desktop / Cursor / Windsurf

License

Apache 2.0

Ownership

Grantex is owned by Orchestrum Technologies LLP. Inventor and owner: Sanjeev Kumar. Ownership contact: sanjeev@orchestrum.in or mishra.sanjeev@gmail.com. Authority hardening requires TypeScript SDK 0.8.1 (currentAuthority), not just a valid JWT signature. Bind the audience and trusted human/agent identities, and check the issuer before every execution. This does not create human consent or automatically consume action decisions/spend caps. Existing offline defaults remain offline. Verify registry availability before installation. See the SDK execution authority guide.

Description from the npm listing.

  • grantex
  • vercel-ai
  • ai-sdk
  • ai-agents
  • authorization
  • oauth
  • jwt
  • agent-tools
  • scope-enforcement
  • delegated-auth
  • agent-permissions

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

@grantex/vercel-ai weekly downloads on npm, last 90 days: 111 weekly downloads as of Oct 17, 2026, +20.7% over 90 days.@grantex/vercel-aiWeekly downloads on npm · Last 90 days111downloads / week+20.7% over 90 days02004006008001K1.2K1.4KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
@grantex/vercel-ai weekly downloads on npm, last 90 days: 111 weekly downloads as of Oct 17, 2026, +20.7% over 90 days.

7/30/90-day growth

@grantex/vercel-ai weekly downloads growth on npm: -54.3% over 7 days, -70.4% over 30 days, +20.7% over 90 days.@grantex/vercel-aiWeekly downloads growth on npm111downloads / week now7-day growth-132 weekly downloads-54.3%30-day growth-264 weekly downloads-70.4%90-day growth+19 weekly downloads+20.7%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@grantex/vercel-ai weekly downloads growth on npm: -54.3% over 7 days, -70.4% over 30 days, +20.7% over 90 days.

Ranking history

@grantex/vercel-ai npm ranking history: currently #1661 (by weekly downloads).@grantex/vercel-ainpm ranking · by weekly downloads · Last 90 days#1661current rank#1654#1656#1658#1660#1662#1664Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
@grantex/vercel-ai npm ranking history: currently #1661 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,130 shown · page 84, #2 (overall #1,662)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs250 listings · 13 pages · page 12, #7 (overall #227)
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 (121)
Recent weekly downloads observations for @grantex/vercel-ai
Date (UTC)Weekly downloadsChange vs. previous
111-41
152-48
200-2
202-3
2050
205-20
225-18
243+22
221-62
283-58
341-87
428-362
790-285
1,075—

Similar npm AI SDKs plugins

All 20 @grantex/vercel-ai 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/@grantex/vercel-ai. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.