Agent toolkit
Scan a web app for GDPR, PII, ports, and crypto weakness in seconds.
Plug into your CI to check a deployed app for GDPR cookie violations, leaked PII in HTML, open ports, weak password policies, and decoded JWT contents. Block deploys on red signals.
import { x402Fetch } from "x402-agent-tools";
async function auditWebApp(url: string) {
const gdpr = await x402Fetch(`https://gdpr-scanner.api.klymax402.com/api/scan?url=${url}`);
const html = await fetch(url).then(r => r.text());
const pii = await x402Fetch(`https://pii-detector.api.klymax402.com/api/detect`, { method: "POST", body: JSON.stringify({ text: html }) });
const ports = await x402Fetch(`https://port-scanner.api.klymax402.com/api/scan`, { method: "POST", body: JSON.stringify({ host: new URL(url).hostname }) });
return { gdpr_passing: gdpr.score > 90, pii_leaks: pii.findings, open_ports: ports.open };
}