@merchantguard/guard
v1.0.0
Published
The compliance layer for payments & AI agents. One install — GuardScore, 14 AI coaches, alerts, PSP matching, Mystery Shopper, on-chain identity.
Maintainers
Readme
@merchantguard/guard
The compliance layer for payments & AI agents. Install once. Compliance everywhere.
Install
npm install @merchantguard/guardQuick Start
import { createClient } from '@merchantguard/guard';
const guard = createClient({ apiKey: 'gsk_...' });
// Get a compliance score
const score = await guard.guardscore.calculate({
chargebackRatio: 0.012,
vertical: 'cbd',
});
// Ask a compliance coach
const decision = await guard.coach.ask('cbd', 'Is my product listing compliant?', {
monthly_volume: 50000,
region: 'US',
});
// Get compliance alerts
const alerts = await guard.alerts.list({ verticals: ['cbd', 'crypto'] });
// Match with payment processors
const psps = await guard.psp.match({
vertical: 'cbd',
monthly_volume: 50000,
region: 'US',
});What's Included
| Feature | Description | |---------|-------------| | GuardScore | Risk score (0-100) personalized to your business | | 14 AI Coaches | Vertical-specific compliance coaching (CBD, crypto, nutra, adult, gaming, etc.) | | Compliance Alerts | 50+ real-time regulatory and PSP policy alerts | | PSP Matching | Find your best payment processor from 24+ PSPs | | Passport | On-chain compliance identity (Base mainnet) | | Wallet Verification | Check any wallet's compliance status |
Also Available
| Package | Use Case | |---------|----------| | @merchantguard/mystery-shopper | Probe AI agents — 10 automated audits for security, ethics, reliability | | @merchantguard/guardscan | Scan agent code — 102 patterns + VirusTotal + AI judge | | @merchantguard/probe-handler | Handle Mystery Shopper probes in your agent |
MCP
For Claude, Cursor, and other MCP-compatible tools:
{
"mcpServers": {
"guard": {
"url": "https://merchantguard-mcp.run.app"
}
}
}API
curl -X POST https://www.merchantguard.ai/api/v2/guard \
-H "Content-Type: application/json" \
-d '{"intent":"onboard_merchant","business":{"name":"My Store","description":"CBD products online"}}'Links
License
MIT
