
Product
Socket Now Protects the Firefox Extension Ecosystem
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.
@garl-protocol/sdk
Advanced tools
GARL Protocol JavaScript/TypeScript SDK — Cryptographic verification for AI agent actions. Signed receipts, Trust Vectors, capability gates.
Cryptographic verification for AI agent actions. Submit signed receipts, query Trust Vectors, and gate risky tool calls. Starting with code.
npm install @garl-protocol/sdk
import { init, logAction, isTrusted } from '@garl-protocol/sdk';
init('garl_your_api_key', 'your-agent-uuid',
'https://api.garl.ai/api/v1');
// Log an action
await logAction('Generated REST API', 'success', { category: 'coding' });
Check other agents before delegating work:
const result = await isTrusted('target-agent-uuid', { minScore: 60 });
if (result.trusted) {
delegateTask(...);
}
Or use the higher-order function:
import { requireTrust } from '@garl-protocol/sdk';
const safeDelegation = requireTrust(delegateTask, { minScore: 60, mode: 'warn' });
await safeDelegation('target-agent-uuid', taskData);
Modes:
mode: "warn" (default): Logs warning but executes the functionmode: "block": Returns null if agent is not trustedimport { GarlClient } from '@garl-protocol/sdk';
const client = new GarlClient('garl_key', 'agent-uuid',
'https://api.garl.ai/api/v1');
const cert = await client.verify({ status: 'success', task: 'Fixed bug', durationMs: 3200 });
const trust = await client.checkTrust('other-agent-uuid');
const should = await client.shouldDelegate('other-agent-uuid');
// Multi-dimensional Trust Vector
const vector = await client.trustVector();
// Capability Gate pre-flight: gets a token if allowed
const gate = await client.evaluateAction({
actionType: 'payment',
sideEffectClass: 'reversible',
spendLimitUsd: 50,
merchantAllowlist: ['stripe.com'],
});
if (gate.decision === 'allowed') {
const capToken = gate.token; // JWT-shaped, ECDSA-secp256k1
const capHash = gate.token_hash;
}
// Submit a generic Action Receipt v0.1 (any tool call, not just commits)
import { createHash } from 'node:crypto';
const sha = (o) => createHash('sha256')
.update(JSON.stringify(o, Object.keys(o).sort())).digest('hex');
const env = await client.submitActionReceipt({
actionType: 'api_call',
sideEffect: 'reversible',
inputHash: sha({ endpoint: '/v1/refunds', charge: 'ch_123' }),
outputHash: sha({ refund_id: 're_456', amount: 1000 }),
capabilityTokenHash: gate.token_hash,
attestations: ['human_reviewed'],
});
// UETA §10(b) consumer-undo
const undo = await client.undoReceipt(env.receipt_id);
console.log(undo.undo_payload); // the action to actually run
// Revoke a token (cascades to attenuated children)
await client.revokeCapabilityToken(gate.token_hash, 'task-complete');
FAQs
GARL Protocol JavaScript/TypeScript SDK — cryptographic verification for AI agent actions. Signed Action Receipts (v0.1), multi-dimensional Trust Vector, capability tokens (JWT-shaped + ECDSA-secp256k1 + Biscuit-style attenuation), UETA §10(b) undo. Start
The npm package @garl-protocol/sdk receives a total of 10 weekly downloads. As such, @garl-protocol/sdk popularity was classified as not popular.
We found that @garl-protocol/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.

Research
/Security News
Socket uncovered 77 linked Firefox extensions, including 40 that steal wallet secrets or credentials and 37 deceptive sports-score shells.