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

@quasiris/qsc-chatbot-ui

v1.6.2

Published

A plugin that injects a Chatbot UI with WS/REST support

Readme

QSC Chatbot UI

A professional, modern chatbot web component.


Installation

NPM:

npm install @quasiris/qsc-chatbot-ui

Usage in HTML

You can use the chatbot directly in any HTML page via CDN:

<!-- Add this script tag to load the web component -->
<script src="https://unpkg.com/@quasiris/qsc-chatbot-ui@latest/dist/qsc-chatbot.js"></script>

<!-- Use the custom element anywhere in your HTML -->
<qsc-chatbot
  rest-url="http://127.0.0.1:3000/api/v1/agent/chat/tenant/code-config",
  header-title="Chat Assistant"
  logo-path="./assets/bot.png">
</qsc-chatbot>

Example Usage in Docusaurus

Add the plugin to your docusaurus.config.js:

plugins: [
  [
    '@quasiris/qsc-chatbot-ui',
    {
      headerTitle: 'Qsc Chatbot',        
      logoPath: './img/bot.png',        
      restUrl: 'http://localhost:8000/rest', 
      attachBtn: true,             
    },
  ],
],

API References

  • rest-url (required) -The URL of your backend chat endpoint. All messages will be sent here.
  • header-title (Optional) -Text shown at the top of the chat window, e.g. Qsc Chatbot”.
  • attach-btn (Optional) - Set to "true" if you want users to upload images or Markdown files.
  • logo-path (Optional) -Path to the image shown on the round toggle button that opens the chat.
  • error-msg (Optional) -Friendly message shown when the REST call fails (e.g. “Server unreachable”).

If the logoPath is invalid or the image cannot be loaded, the plugin will automatically display a styled "Qsc" text as a fallback.


Message Types

The chatbot UI supports the following message types in server responses:

  • Bot/Assistant Message:
    Sent by the assistant, appears on the left.

    {
      "type": "message" | "response",
      "text": "Hi, how can I help you?",
      "sender": "bot",
      "timestamp": 1680000000001
    }
  • System/Broadcast Message:
    Sent by the system or as a broadcast, appears on the left with a "System" label.

    {
      "type": "broadcast",
      "text": "System maintenance at 2am.",
      "sender": "system",
      "timestamp": 1680000000002
    }

Broadcast Messages

  • When the chat window is open:
    Broadcast messages are shown as system messages in the chat window, with a "System" label and a 📢 icon.

  • When the chat window is closed:
    Broadcast messages trigger a popup notification and a red indicator dot on the toggle button.

Example broadcast message from server:

{
  "type": "broadcast",
  "text": "Hello, Qsc Team!",
  "timestamp": 1680000000002
}

Screenshots

QSC Chatbot UI QSC Chatbot UI 01 QSC Chatbot UI 02 QSC Chatbot UI 03


Features

  • Modern, clean UI with smooth animations
  • Real-time REST communication
  • Broadcast notifications when chat is closed
  • Message history with timestamps
  • Responsive design for all devices