@kya-os/shared-effects

v0.1.0

Published

Shared visual effects and utilities for XMCP-I tools

Readme

@xmcp/shared-effects

Shared visual effects and utilities for XMCP-I tools.

Features

  • Black Hole Animation: Stunning terminal animation effect
  • KYA-OS Banner: ASCII art banner for XMCP-I identity
  • Identity Table: Formatted display for agent identity information
  • Gradient Text: Custom gradient text effects
  • Identity Utilities: Claim URL generation and more

Installation

npm install @xmcp/shared-effects

Usage

import { 
  createKYAOSBanner,
  showBlackholeAnimation,
  createIdentityTable,
  generateClaimUrl,
  createSuccessMessage
} from '@xmcp/shared-effects';

// Show the KYA-OS banner
console.log(createKYAOSBanner());

// Run black hole animation
await showBlackholeAnimation(createSuccessMessage(), {
  duration: 6000,
  blackholeColor: "ffffff",
  finalColor: "00ff00"
});

// Display identity table
const identityData = {
  agentName: "my-agent",
  description: "My awesome agent",
  did: "did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK",
  profileUrl: "https://knowthat.ai/agents/my-agent",
  privateKey: "base64-encoded-private-key",
  claimUrl: generateClaimUrl(did, privateKey)
};
console.log(createIdentityTable(identityData));

License

MIT