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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@helllo-ai/agent-chat-widget

v0.1.18

Published

Bot Swarm Agent Chat Widget - Embeddable chat widget for AI agents

Downloads

1,168

Readme

@helllo-ai/agent-chat-widget

npm version unpkg jsdelivr

An embeddable chat widget for Helllo AI agents. This widget allows you to easily add AI-powered chat functionality to any website.

🚀 Quick Start

Via unpkg (CDN)

Production Environment

<script src="https://unpkg.com/@helllo-ai/agent-chat-widget@latest/agent-chat.prod.js"></script>
<script>
  // Initialize the widget (uses production URLs automatically)
  window.AgentChatWidget.init({
    agentId: 'your-agent-id',
    embedKey: 'your-embed-key',
    primaryColor: '#0f172a',
    backgroundColor: '#ffffff'
  });
</script>

Staging Environment

<script src="https://unpkg.com/@helllo-ai/agent-chat-widget@staging/agent-chat.staging.js"></script>
<script>
  // Initialize the widget (uses staging URLs automatically)
  window.AgentChatWidget.init({
    agentId: 'your-agent-id',
    embedKey: 'your-embed-key'
  });
</script>

Development/Latest

<script src="https://unpkg.com/@helllo-ai/agent-chat-widget@latest/agent-chat.latest.js"></script>

Via jsDelivr (Alternative CDN)

<!-- Production -->
<script src="https://cdn.jsdelivr.net/npm/@helllo-ai/agent-chat-widget@latest/agent-chat.prod.js"></script>

<!-- Staging -->
<script src="https://cdn.jsdelivr.net/npm/@helllo-ai/agent-chat-widget@staging/agent-chat.staging.js"></script>

<!-- Development -->
<script src="https://cdn.jsdelivr.net/npm/@helllo-ai/agent-chat-widget@latest/agent-chat.latest.js"></script>

Via npm

npm install @helllo-ai/agent-chat-widget
import '@bot-swarm/agent-chat-widget/agent-chat.latest.js';

📦 Available Versions

| File | Cache Strategy | Use Case | |------|---------------|----------| | agent-chat.latest.js | No cache | Development, always latest | | agent-chat.v0.1.0.js | 1 year cache | Production (specific version) | | agent-chat.v0.1.js | 1 month cache | Stay updated within minor version | | agent-chat.v0.js | 1 week cache | Stay updated within major version |

⚙️ Configuration

window.AgentChatWidget.init({
  agentId: 'your-agent-id',           // Required: Your agent ID
  embedKey: 'your-embed-key',         // Required: Your embed key
  primaryColor: '#0f172a',            // Optional: Primary color
  backgroundColor: '#ffffff',         // Optional: Background color
  title: 'Chat with us',              // Optional: Widget title
  apiBaseUrl: 'https://api.helllo.ai', // Optional: API base URL
  voiceServiceUrl: 'https://voice.helllo.ai', // Optional: Voice service URL
  wsUrl: null,                        // Optional: WebSocket URL override
  allowedDomains: ['example.com']     // Optional: Domain restrictions
});

🎯 Widget API

// Initialize
const widget = window.AgentChatWidget.init(config);

// Programmatic control
widget.open();    // Open chat panel
widget.close();   // Close chat panel
widget.destroy(); // Remove widget completely

🔧 Development

Building from source

# Install dependencies
npm install

# Build widget files (choose environment)
npm run build          # Development/latest
npm run build:staging  # Staging environment
npm run build:prod     # Production environment

# Version bump
npm run version:patch  # or version:minor, version:major

# Publish to npm (choose environment)
npm run publish:public    # Production release
npm run publish:staging   # Staging release

File Structure

packages/agent-chat-widget/
├── agent-chat.latest.js     # Latest development version
├── agent-chat.staging.js    # Staging environment version
├── agent-chat.prod.js       # Production environment version
├── agent-chat.v0.1.0.js     # Specific version (production)
├── agent-chat.v0.1.js       # Minor version (auto-updates)
├── agent-chat.v0.js         # Major version (auto-updates)
├── build.js                 # Build script
├── package.json
└── README.md

📋 CDN URLs

unpkg

Production Environment

https://unpkg.com/@helllo-ai/agent-chat-widget@latest/agent-chat.prod.js
https://unpkg.com/@helllo-ai/[email protected]/agent-chat.v0.1.0.js
https://unpkg.com/@helllo-ai/agent-chat-widget@0/agent-chat.v0.js

Staging Environment

https://unpkg.com/@helllo-ai/agent-chat-widget@staging/agent-chat.staging.js
https://unpkg.com/@helllo-ai/[email protected]/agent-chat.v0.1.0.js

Development/Latest

https://unpkg.com/@helllo-ai/agent-chat-widget@latest/agent-chat.latest.js

jsDelivr

Production Environment

https://cdn.jsdelivr.net/npm/@helllo-ai/agent-chat-widget@latest/agent-chat.prod.js
https://cdn.jsdelivr.net/npm/@helllo-ai/[email protected]/agent-chat.v0.1.0.js

Staging Environment

https://cdn.jsdelivr.net/npm/@helllo-ai/agent-chat-widget@staging/agent-chat.staging.js
https://cdn.jsdelivr.net/npm/@helllo-ai/[email protected]/agent-chat.v0.1.0.js

📄 License

MIT © Helllo AI

🐛 Issues

Report bugs and request features at: GitHub Issues

📞 Support

For support, email [email protected] or visit helllo.ai