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

genr-react-chat-widget-alpha

v1.0.8

Published

A customizable chat widget for integrating AI-powered chatbots into your React applications.

Readme

Genr React Chat Widget 🚀

A customizable chat widget for integrating AI-powered chatbots into your React applications.

📦 Installation

To install the package, run:

npm install genr-react-chat-widget-alpha
🛠️ Import and Usage
Add the chat widget to your React application:

import React from "react";
import ChatApp from "genr-react-chat-widget-alpha";

const App = () => {
  return (
    <ChatApp
      apiUrl={"https://genrEndPoint/api/query"}
      instanceName={"fsdfff"}
      welcomeMessage={
        "Hello, I’m your Virtual Assistant. How can I help you today?"
      }
      footerMessage={`This is a sample chatbot generated with the help of Genr AI application`}
      responseIcon={
        "https://tse3.mm.bing.net/th?id=OIP.NJMu_dmcLZcvdrIegdFkmgHaHa&pid=Api&P=0&h=180"
      }
      showMic={false}
      showFileAttachmentIcon={false}
      showCaseIconImgUrl={
        "https://tse3.mm.bing.net/th?id=OIP.NJMu_dmcLZcvdrIegdFkmgHaHa&pid=Api&P=0&h=180"
      }
      showCaseIconImgStyle={{
        borderRadius: "60px",
        width: "60px",
        height: "60px",
      }}
      showCaseIconImgWidth={50}
      showCaseIconImgHeight={50}
      inputMsgPlaceholder={"Ask me anything"}
      userName={"DhanShekhar"}
      headerStyle={{ color: "black", backgroundColor: "#11b67a" }}
      userIcon={
        "https://tse3.mm.bing.net/th?id=OIP.e2y09TFSgn5qK8FmayD4pgHaHa&pid=Api&P=0&h=180"
      }
      chatterIcon={
        "https://tse3.mm.bing.net/th?id=OIP.NJMu_dmcLZcvdrIegdFkmgHaHa&pid=Api&P=0&h=180"
      }
      attachIcon={
        "https://tse2.mm.bing.net/th?id=OIP.0ULX-waARB3T1oO40CnO3gHaFm&pid=Api&P=0&h=180"
      }
      sendIcon={
        "https://tse2.mm.bing.net/th?id=OIP._HCqv2W2JZarfgfLjOCIcAHaHa&pid=Api&P=0&h=180"
      }
      uploadFileUrl={
        "https://va-nodejs-app-855220130399.us-central1.run.app/upload"
      }
    />
  );
};

export default App;
⚙️ Props Configuration


Prop	                Type	            Description
apiUrl	                string	        API endpoint for handling chat queries
instanceName	        string	        Unique identifier for the chat instance
welcomeMessage	        string	        Initial message shown in the chat
footerMessage	        string	        Message displayed at the bottom of the chat
responseIcon	        string	        URL of the chatbot's response icon
showMic	                boolean	        Enable/Disable voice input
showFileAttachmentIcon	boolean	        Enable/Disable file attachments
showCaseIconImgUrl	    string	        URL for the floating chat icon
showCaseIconImgStyle	object	        CSS styles for chat icon customization
showCaseIconImgWidth	number	        Width of the chat icon
showCaseIconImgHeight	number	        Height of the chat icon
inputMsgPlaceholder	    string	        Placeholder text in the input field
userName	            string	        Name of the user
headerStyle	            object	        CSS styles for chat header
userIcon	            string	        URL of the user's profile picture
chatterIcon	            string	        URL of the chatbot's icon
attachIcon	            string	        URL of the attachment icon
sendIcon	            string      	URL of the send button icon
uploadFileUrl       	string	        API endpoint for file uploads



🌟 Features
✅ Customizable UI
✅ Supports Text, Images, and File Attachments
✅ API Integration for Chatbot Responses
✅ Responsive & Lightweight
✅ Easy to Use in Any React App

🛠️ How It Works
Install the package using npm install genr-react-chat-widget-alpha.
Import the ChatApp component and include it in your React application.
Customize the chatbot using the available props.
The chatbot communicates with the API and displays responses in real-time.
📌 License
This project is licensed under the MIT License.