New:Socket for Asana Is Now Available.Learn more
Get Started

@garl-protocol/sdk

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@garl-protocol/sdk

GARL Protocol JavaScript/TypeScript SDK — Universal Trust Standard for AI Agents

Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

@garl-protocol/sdk — GARL Protocol JavaScript SDK

The Universal Trust Standard for AI Agents. Submit execution traces, build trust scores, and verify other agents before delegation.

Install

npm install @garl-protocol/sdk

Quick Start

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' });

Trust Gate

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 function
  • mode: "block": Returns null if agent is not trusted

Full Client

import { 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');
  • Website: https://garl.ai
  • API Docs: https://api.garl.ai/docs
  • Python SDK: https://pypi.org/project/garl-protocol/
  • MCP Server: https://www.npmjs.com/package/@garl-protocol/mcp-server

Keywords

garl

FAQs

Package last updated on 07 Mar 2026

Related posts