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

embeddable-chat-widget

v0.0.9

Published

An embeddable chat widget for websites following Eloquent AI style

Downloads

22

Readme

Eloquent AI Chat Widget

A beautiful, customizable chat widget that can be embedded into any website. Built with React and TypeScript, following the Eloquent AI design style.

Features

  • 💬 Real-time chat interface
  • 🎨 Customizable colors and positioning
  • 📱 Responsive design
  • 🔧 Maintenance mode support
  • 🔄 Online/offline status indicators
  • 🧩 Easy integration with any website

Installation

npm install eloquent-ai-chat-widget
# or
yarn add eloquent-ai-chat-widget

Usage

import { ChatWidget } from "eloquent-ai-chat-widget";

function App() {
  return (
    <div>
      <h1>My Website</h1>

      {/* Add the chat widget */}
      <ChatWidget
        apiKey="your-api-key"
        title="Eloquent AI Support"
        subtitle="We typically reply in a few minutes"
        position="bottom-right"
        isOnline={true}
        isMaintenanceMode={false}
        maintenanceMessage="Chat is currently undergoing maintenance. Please try again later."
        onMessageSent={(message) => console.log("Message sent:", message)}
        onWidgetToggle={(isOpen) => console.log("Widget toggled:", isOpen)}
      />
    </div>
  );
}

Props

| Prop | Type | Default | Description | | -------------------- | -------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------- | | apiKey | string | - | Your API key for the chat service | | title | string | 'Eloquent AI Chat' | Title displayed in the chat header | | subtitle | string | 'We typically reply in a few minutes' | Subtitle displayed in the chat header | | primaryColor | string | '#6366F1' | Primary color for the chat widget | | position | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'bottom-right' | Position of the chat widget on the page | | initialOpen | boolean | false | Whether the chat widget is initially open | | isOnline | boolean | true | Whether the chat service is online | | isMaintenanceMode | boolean | false | Whether the chat service is in maintenance mode | | maintenanceMessage | string | 'Chat is currently undergoing maintenance. Please try again later.' | Message displayed when in maintenance mode | | avatarUrl | string | - | URL of the avatar image | | onMessageSent | (message: string) => void | - | Callback function called when a message is sent | | onWidgetToggle | (isOpen: boolean) => void | - | Callback function called when the widget is toggled |

Development

Setup

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

# Install dependencies
npm install

# Start the development server
npm run dev

Build

# Build the package
npm run build

License

MIT