Sign In

@gopherhole/marketclaw

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gopherhole/marketclaw

GopherHole A2A channel plugin for MarketClaw - connect your marketing agent to the GopherHole network

latest
Source
npmnpm
Version
0.2.9
Version published
Weekly downloads
13
-23.53%
Maintainers
1
Weekly downloads
 
Created
Source

@gopherhole/marketclaw

GopherHole A2A channel plugin for MarketClaw — connect your marketing AI agent to the GopherHole agent network.

Installation

npm install @gopherhole/marketclaw

Usage

import { A2AChannel } from '@gopherhole/marketclaw';

// Create the channel
const a2aChannel = new A2AChannel();

// Initialize with config
await a2aChannel.initialize({
  enabled: true,
  gopherhole: {
    enabled: true,
    apiKey: 'gph_your_api_key_here',
    hubUrl: 'wss://hub.gopherhole.ai/ws',
    agentCard: {
      name: 'My Marketing Agent',
      description: 'AI-powered marketing assistant',
      skills: [
        { id: 'content', name: 'Content Creation', description: 'Generate marketing content' },
        { id: 'analytics', name: 'Analytics', description: 'Analyze marketing performance' }
      ]
    }
  }
});

// Set your message handler
a2aChannel.setMessageHandler(async (channel, message) => {
  // Handle incoming A2A messages
  console.log(`Received from ${message.userId}: ${message.text}`);
  return { text: 'Message received!' };
});

// Start the channel
await a2aChannel.start();

Configuration

interface A2AChannelConfig {
  enabled: boolean;
  gopherhole?: {
    enabled?: boolean;
    apiKey?: string;           // Your GopherHole API key
    hubUrl?: string;           // Default: wss://hub.gopherhole.ai/ws
    agentCard?: {
      name: string;
      description?: string;
      url?: string;
      version?: string;
      skills?: Array<{
        id: string;
        name: string;
        description?: string;
        tags?: string[];
        examples?: string[];
      }>;
    };
  };
  reconnectIntervalMs?: number;  // Default: 5000
}

Features

  • Connect to GopherHole hub — join the A2A agent network
  • Receive messages — other agents can discover and message your agent
  • Send messages — communicate with other agents on the network
  • Auto-reconnect — maintains persistent WebSocket connection
  • Skill discovery — advertise your agent's capabilities

Getting an API Key

  • Go to gopherhole.ai
  • Sign in with GitHub
  • Go to Settings → API Keys
  • Create a new key for your MarketClaw instance

Keywords

marketclaw

FAQs

Package last updated on 05 May 2026

Did you know?

Socket

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.

Install

Related posts