npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@phantasy/sheesh-agent

v1.2.0

Published

AI Agent Framework with multi-provider support and real-time broadcasting

Readme

Sheesh Agent Framework

✨ Features

  • 🤖 Multi-Provider AI Support - OpenAI, Maho, Alkahest, Akash with automatic fallback
  • 📡 Real-Time Broadcasting - WebSocket-based agent communication
  • 🎭 VRM Character Control - Animations, expressions, poses, and gestures
  • 🎙️ Text-to-Speech - Multiple voice providers with streaming
  • 💎 Tip Management - Goals, milestones, and rewards system
  • 📊 Admin Dashboard - Optional real-time monitoring and control
  • 🔌 Plugin Architecture - Extensible design for custom features
  • 🚀 CLI Tool - Easy agent management and deployment

📦 Installation

npm install @phantasy/sheesh-agent
# or
yarn add @phantasy/sheesh-agent
# or
pnpm add @phantasy/sheesh-agent

🚀 Quick Start

1. Initialize a new project

npx @phantasy/sheesh-agent init

This creates:

  • .env file for configuration
  • my-agent.js example agent

2. Configure your API keys

Edit .env and add at least one provider:

OPENAI_API_KEY=sk-...
# or
MAHO_API_KEY=...
# or
ALKAHEST_API_KEY=...
# or
AKASH_API_KEY=...

3. Run your agent

# With admin panel
npx @phantasy/sheesh-agent start my-agent.js --admin

# Without admin panel (headless)
npx @phantasy/sheesh-agent start my-agent.js

📖 Usage

Basic Agent

import { AgentController } from '@phantasy/sheesh-agent';
import { createSheeshPlugin } from '@phantasy/sheesh-agent/plugins/sheesh';
import { MahoText } from '@phantasy/sheesh-agent/providers/text/maho';

// Initialize AI provider
const textProvider = new MahoText();
await textProvider.initialize({
  apiKey: process.env.MAHO_API_KEY,
  model: 'gpt-4-turbo'
});

// Create agent controller
const agent = new AgentController({
  providers: { text: textProvider },
  personality: {
    name: 'Assistant',
    traits: ['helpful', 'friendly'],
    tone: 'professional'
  }
});

// Connect to platform
const plugin = createSheeshPlugin({
  partyKitUrl: 'ws://localhost:1999',
  roomId: 'main',
  agentId: 'assistant-001',
  agentName: 'Assistant',
  onUserMessage: async (userId, message) => {
    const response = await agent.processUserMessage(userId, message);
    plugin.broadcastResponse(response);
  }
});

await plugin.initialize();
console.log('Agent is online!');

With VRM Animations

const response = await agent.processUserMessage(userId, message);

// Add animations
response.actions = [
  {
    type: 'vrm',
    action: 'animation',
    value: 'wave',
    duration: 3000
  },
  {
    type: 'vrm',
    action: 'expression',
    value: 'happy',
    duration: 5000
  }
];

plugin.broadcastResponse(response);

With Tip Goals

const agent = new AgentController({
  providers: { text: textProvider },
  personality: { /* ... */ },
  tipGoals: [
    {
      id: 'dance',
      title: 'Unlock Dance',
      targetAmount: 5,
      reward: {
        type: 'animation',
        value: 'special-dance'
      }
    }
  ]
});

// Handle tips
plugin.on('tip:received', async (data) => {
  const goals = await agent.processTip(data.userId, data.amount);
  plugin.updateTipGoals(goals);
});

🛠️ CLI Commands

# Start agent with options
sheesh-agent start <agent-file> [options]
  -a, --admin          Start admin panel
  -p, --admin-port     Admin panel port (default: 8080)
  --no-build          Skip building

# Start only admin panel
sheesh-agent admin [options]
  -p, --port          Port to run on (default: 8080)

# Build framework
sheesh-agent build

# Initialize new project
sheesh-agent init

🔧 Configuration

Environment Variables

# Admin Panel
ADMIN_TOKEN=your-secure-token

# AI Providers (at least one required)
OPENAI_API_KEY=sk-...
MAHO_API_KEY=...
ALKAHEST_API_KEY=...
AKASH_API_KEY=...

# Provider Selection
AI_TEXT_PROVIDER=maho
AI_TTS_PROVIDER=openai

# PartyKit Connection
PARTYKIT_URL=ws://localhost:1999

# Optional
NODE_ENV=development
DEBUG=false

Provider Configuration

// OpenAI
const openai = new OpenAIText();
await openai.initialize({
  apiKey: process.env.OPENAI_API_KEY,
  model: 'gpt-4-turbo'
});

// Maho (OpenRouter Alternative)
const maho = new MahoText();
await maho.initialize({
  apiKey: process.env.MAHO_API_KEY,
  baseUrl: 'https://maho.sh/api/v1'
});

// Alkahest (Privacy-focused)
const alkahest = new AlkahestText();
await alkahest.initialize({
  apiKey: process.env.ALKAHEST_API_KEY,
  baseUrl: 'https://alkahest.ai/api/v1'
});

📊 Admin Panel

The optional admin panel provides:

  • Real-time agent monitoring
  • Feature toggles (broadcasting, TTS, animations)
  • Activity logging
  • Metrics dashboard
  • Remote control capabilities

Access at http://localhost:8080 when running with --admin flag.

🏗️ Architecture

@phantasy/sheesh-agent
├── core/           # Core framework
│   ├── agent-controller.ts
│   └── types.ts
├── providers/      # AI providers
│   ├── text/
│   ├── tts/
│   └── image/
├── services/       # Feature services
│   ├── vrm-integration.ts
│   ├── canvas-integration.ts
│   └── tip-management.ts
├── plugins/        # Plugin system
│   └── sheesh/
└── admin/          # Admin panel

🧪 Development

# Clone repository
git clone https://github.com/phantasy-bot/sheesh-agent.git
cd sheesh-agent

# Install dependencies
npm install

# Run tests
npm test

# Build
npm run build

# Development mode
npm run dev

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Quick Guidelines

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing)
  3. Commit changes (git commit -m 'feat: add amazing feature')
  4. Push to branch (git push origin feature/amazing)
  5. Open Pull Request

📄 License

MIT License - see LICENSE for details.

🔗 Links

🙏 Acknowledgments

Built with ❤️ by the Sheesh team and contributors.

Special thanks to all our contributors!