← All docs

Node / TypeScript SDKs

The MerchantGuard family is published to npm under the @merchantguard scope. Every SDK is fully typed, tree-shake friendly, and works in Node 20+ (most also work in modern browsers).

Main SDK — install once, compliance everywhere

npm install @merchantguard/guard

Includes GuardScore, 14 AI compliance coaches, PSP matching, alerts, GuardScorePassport, wallet verification.

AgentGuard™ Chargeback

npm install @merchantguard/agentguard-cb

Open-source CE 3.0 evidence assembly SDK. See /docs/products/agentguard-cb.

Sentinela (Node)

npm install @merchantguard/sentinela

Conversational intent firewall. Includes Sentinela class plus Express middleware for Twilio WhatsApp, Meta Cloud API, and Telegram Bot API. Fail-open by default. Zero runtime dependencies (uses native fetch).

Mystery Shopper (CLI / library)

npx @merchantguard/mystery-shopper https://your-agent.example.com

Probe Handler

npm install @merchantguard/probe-handler

Drop-in handler for receiving Mystery Shopper probes inside your own agent. Express, Fastify, and bare HTTP handler shapes available.

GuardScan (CLI)

npx @merchantguard/guardscan .

Cloudflare LLM Firewall (Worker)

npm install @merchantguard/cloudflare-llm-firewall

Edge-runtime LLM firewall, deploy as a Cloudflare Worker.

Common patterns

  • All SDKs use sk_live_ API keys with SHA-256 hashed verification on the server side.
  • Generate keys at /developers (Privy login). Keys are shown ONCE.
  • Tier rate limits: FREE 1K req/60s, DEVELOPER 10K, PRO 50K, ENTERPRISE 200K.
  • Errors are typed: SentinelaAuthError, SentinelaRateLimitError, etc.
Nothing on this page is legal advice. Trademarks pending: MerchantGuard™ (Serial 99051215), GuardScore™ (Serial 99030125), AgentGuard™ (Serial 99462472). Patents 63/983,615 / 63/983,621 / 63/983,843 / 63/984,626 (provisional, filed Feb 17 2026). See LEGAL.md, PATENTS.md, DISCLAIMER.md.