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

nerdagent-chat-widget

v1.0.10

Published

Universal Chat Widget built with Stencil - works in Angular, React, Vue, and vanilla JS

Readme

NerdAgent Chat Widget

A powerful, customizable chat widget that works seamlessly across all major web frameworks. Built with Stencil.js for maximum compatibility and performance.

🚀 Features

  • Universal Compatibility - Works with Angular, React, Vue, and vanilla JavaScript
  • Highly Customizable - Colors, positioning, features, and branding
  • Responsive Design - Perfect on desktop and mobile devices
  • TypeScript Support - Full type definitions for all frameworks
  • Lightweight - Minimal bundle size impact
  • Easy Integration - Simple installation and setup
  • Modern Architecture - Built with Stencil.js Web Components

📦 Packages

| Framework | Package | Version | Status | |-----------|---------|---------|--------| | Core | nerdagent-chat-widget | 1.0.0 | ✅ Stable | | Angular | nerdagent-chat-widget-angular | 1.0.6 | ✅ Stable | | React | nerdagent-chat-widget-react | 1.0.2 | ✅ Stable | | Vue | nerdagent-chat-widget-vue | 1.0.2 | ✅ Stable |

🎯 Quick Start

Angular

npm install nerdagent-chat-widget-angular
import { NerdChatWidgetModule } from 'nerdagent-chat-widget-angular';

@NgModule({
  imports: [NerdChatWidgetModule],
  // ...
})
export class AppModule { }
<nerd-chat-widget
  [agent-name]="'Support Agent'"
  [primary-color]="'#2d3e50'"
  [position]="'bottom-right'"
  (messageSent)="onMessageSent($event)">
</nerd-chat-widget>

React

npm install nerdagent-chat-widget-react
import { NerdChatWidget } from 'nerdagent-chat-widget-react';

function App() {
  return (
    <NerdChatWidget
      agentName="Support Agent"
      primaryColor="#2d3e50"
      position="bottom-right"
      onMessageSent={(event) => console.log(event)}
    />
  );
}

Vue

npm install nerdagent-chat-widget-vue
<template>
  <NerdChatWidget
    :agent-name="'Support Agent'"
    :primary-color="'#2d3e50'"
    :position="'bottom-right'"
    @message-sent="onMessageSent"
  />
</template>

<script>
import { NerdChatWidget } from 'nerdagent-chat-widget-vue';

export default {
  components: { NerdChatWidget },
  methods: {
    onMessageSent(event) {
      console.log(event);
    }
  }
}
</script>

Vanilla JavaScript

npm install nerdagent-chat-widget
<script type="module" src="https://unpkg.com/[email protected]/dist/nerdagent-chat-widget/nerdagent-chat-widget.esm.js"></script>

<nerd-chat-widget
  agent-name="Support Agent"
  primary-color="#2d3e50"
  position="bottom-right">
</nerd-chat-widget>

🎨 Customization

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | agentName | string | 'Support Agent' | Name of the support agent | | agentRole | string | 'Customer Support' | Role/title of the agent | | primaryColor | string | '#2d3e50' | Primary color theme | | accentColor | string | '#4e8cff' | Accent color theme | | welcomeMessage | string | 'Hi! How can I help?' | Initial welcome message | | position | string | 'bottom-right' | Widget position (bottom-right, bottom-left, top-right, top-left) | | width | string | '350' | Widget width in pixels | | height | string | '500' | Widget height in pixels | | showMinimizeButton | boolean | true | Show minimize/maximize button | | showTimestamps | boolean | true | Show message timestamps | | enableFileUpload | boolean | false | Enable file upload feature | | enableSpeech | boolean | false | Enable speech recognition | | showPoweredBy | boolean | true | Show "Powered by" branding |

Events

| Event | Description | |-------|-------------| | messageSent | Fired when user sends a message | | widgetOpened | Fired when widget is opened | | widgetClosed | Fired when widget is closed |

🛠️ Development

Prerequisites

  • Node.js 16+
  • npm 8+

Setup

# Clone the repository
git clone https://github.com/nerdagent/chat-widget.git
cd chat-widget

# Install dependencies
npm install

# Start development server
npm start

Building

# Build all packages
npm run build:all

# Build specific package
npm run build:packages

Testing

# Run tests
npm test

# Run tests in watch mode
npm run test.watch

📁 Project Structure

nerdagent-chat-widget/
├── src/                          # Core Stencil component
│   ├── components/
│   │   └── chat-widget/         # Main chat widget component
│   ├── index.html               # Demo page
│   ├── styles.css               # Demo styles
│   └── script.js                # Demo scripts
├── packages/                     # Framework-specific packages
│   ├── angular/                 # Angular wrapper
│   ├── react/                   # React wrapper
│   └── vue/                     # Vue wrapper
├── examples/                     # Integration examples
│   └── angular-chat-widget-test/ # Angular test project
└── dist/                        # Built packages

🔧 Framework-Specific Documentation

🌐 Browser Support

  • Chrome 60+
  • Firefox 55+
  • Safari 10+
  • Edge 79+

📊 Bundle Sizes

| Package | Size (gzipped) | Description | |---------|----------------|-------------| | Core | ~15KB | Base Stencil component | | Angular | ~12KB | Angular wrapper + types | | React | ~8KB | React wrapper + types | | Vue | ~10KB | Vue wrapper + types |

🚀 Deployment Options

CDN

<script type="module" src="https://unpkg.com/[email protected]/dist/nerdagent-chat-widget/nerdagent-chat-widget.esm.js"></script>

NPM

npm install nerdagent-chat-widget-angular  # or react, vue

Self-Hosted

# Download and host the built files
wget https://unpkg.com/[email protected]/dist/nerdagent-chat-widget/