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

widget-ccat-angular

v0.0.4

Published

An elegant and fully customizable **Angular widget** for seamless integration with **Cheshire Cat AI**. Perfect for adding a conversational assistant to your Angular apps with minimal setup.

Readme

🐱 Cheshire Cat AI Chat Widget

An elegant and fully customizable Angular widget for seamless integration with Cheshire Cat AI.
Perfect for adding a conversational assistant to your Angular apps with minimal setup.

💬 Plug, personalize, and play: your smart chatbot is ready to go.

Cheshire Cat Widget Demo

🚀 System Requirements

  • Angular 19.2.0 (developed with angular 19.2.0, not tested with previous versions, if you have a previous version let us know if it works for you and we'll add it to the list of working angular versions)
  • Connection to a running cheshire-cat instance
  • The ccat-api package must be installed (via npm i ccat-api)

📦 Installation

Install via npm:

npm i ccat-chat-widget-angular

🧩 Component Configuration (Standalone)

Since this is a standalone component, you can import it directly into your component without needing to declare it in a module.

import { Component } from "@angular/core";
import { CatClient } from "ccat-api";
import { WidgetCcatComponent } from "ccat-chat-widget-angular";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [WidgetCcatComponent],
  template: `
    <app-widget-ccat
      [baseUrl]="'localhost'"
      [port]="1865"
      [userId]="'user'"
      [initialPhrase]="'Welcome! How can I assist you today?'"
      [userMessageBgColor]="'#e0f7fa'"
      [botMessageBgColor]="'#f1f8e9'"
    ></app-widget-ccat>
  `,
})
export class AppComponent {}

🖼️ Template Usage

You can drop the widget anywhere in your HTML and configure it via inputs:

<app-widget-ccat
  [baseUrl]="'localhost'"
  [port]="1865"
  [userId]="'user'"
  [initialPhrase]="'Hi! How can I help you?'"
  [userMessageBgColor]="'#fee600'"
  [botMessageBgColor]="'#000000'"
></app-widget-ccat>

⚙️ Customizable Properties

🔌 Connection Settings

| Property | Default | Description | | ---------- | ------------- | --------------------------------------------------------------------------- | | baseUrl | 'localhost' | Cheshire Cat server URL | | port | 1865 | Port number | | userId | 'user' | Unique user identifier | | secure | false | Enables HTTPS connection | | chatType | 'streaming' | Chat type: streaming (tokens stream in live) or chat (waits full reply) |

💬 Message Settings

| Property | Description | | ---------------- | ---------------------------------------------------------- | | initialPhrase | Initial bot message | | sorryPhrase | Error message when something goes wrong | | agentName | Custom name for your bot | | imgSrc | Logo or avatar image URL | | imgAlt | Alt text for the image | | openChatImgSrc | Logo or avatar image URL for the image that opens the chat | | openChatImgAlt | Alt text for the image that opens the chat |

🎨 Style Settings

| Property | Default | Description | | ------------------------------ | ----------- | ------------------------------- | | userMessageBgColor | '#fee600' | User message background color | | userMessageTextColor | '#000000' | User message text color | | botMessageBgColor | '#000000' | Bot message background color | | botMessageTextColor | '#ffffff' | Bot message text color | | chatContainerBgColor | '#f3f6fc' | Chat container background color | | chatBodyTopBottomBorderColor | '#eeeeee' | Border color for the chat body | | sendBtnBgColor | '#000000' | Send button background color |

🛠 Support

For issues, bugs, or feature requests, please open an issue on the GitHub repository.

📄 License

Copyright (C) 2025 CLDev

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

🧠 Ready to bring your UI to life? Let your chatbot be the first to smile. With Cheshire Cat AI, it’s already purring.