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

agostinho-chatlib

v1.4.0

Published

This a library powered and maintained by GCNam devs. The library aims to facilitate Chatbox integration to web-based applications

Downloads

9

Readme

CHATLIB JS

This versatile library enables seamless integration of a chatbox into web applications, enhancing user interaction and support capabilities. Designed with flexibility in mind, it can be fully customized to match the look and feel of any website, ensuring a consistent user experience. The library is compatible with a wide range of platforms, including Bubble.io and most custom-built web applications, making it an ideal solution for developers looking to add real-time communication features with minimal effort.

Installation

The easiest way to use this libary, is to simply add the javascript script tag inside the header of your website, choose an appropriate version, then the chabox will auto-display in the website.

<script src="https://cdn.jsdelivr.net/npm/[email protected]/chatlib.js"></script>

Getting Started!

To have more control over the chabox you can follow the outlined steps!!

Displaying User Message in the chatbox

The user message appended in the chatbox automatically using the appendUserMessage() function which is called after the send button is clicked. However, you might need to manipulate the user message to send it to an API for processing, you can get the user message using the getUserMessage method.

getUserMessage(); //Return a string;

In bubble you achieve this by calling the function under the update function under the plugin editor.

function update (instance, properties, context) {

	var message = getUserMessage(); //Return a string;
    
    //Manipulate the message
}

Displaying the Bot response in the chatbox

To display a message as the second user, you need to call the receiveMessage function, which will display a seconday bubble dialog, this function is useful to handle the response of the AI assistant after you have made a call to the API.

receiveMessage(message) // Append secondary response to the chatbox;
Example
//Custom function you will create in your website

async function sendMessage() {

const url = "https://example.ai/[USER MESSAGE]"; // Send user message to your API

  try {
    const response = await fetch(url);
    if (!response.ok) {
      throw new Error(`Response status: ${response.status}`);
    }

    const json = await response.json();

    /** 
     * @message a string representation of the response got from the API
    */
    receiveMessage(message);// This will append the API response in the chatbox.


    
  } catch (error) {
    console.error(error.message);
  }
}