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

chatbotly-react

v0.1.5

Published

A simple react component that enables user to add chatbot with little setup

Readme

🗨️ Chatbot Component for React & Next.js

NPM Version License

A lightweight, customizable Chatbot component for React and Next.js apps. All CSS is bundled inline, so you can drop it in without extra setup. Part of the Chatbotly ecosystem.


🚀 Features

  • ✅ Works with React 18+ and Next.js 13+
  • ✅ Inline CSS — no extra stylesheet needed
  • ✅ Fully customizable: avatars, colors, titles, messages
  • ✅ Supports callbacks for message handling
  • ✅ Optimized for SSR & client-side rendering

📦 Installation

npm install chatbotly-react
# or
yarn add chatbotly-react

Peer dependencies: React and ReactDOM.


🛠️ Usage

React Example

import React from "react";
import { Chatbot } from "@chatbotly-react";

export default function App() {
  return (
    <div>
      <h1>Welcome to My App</h1>
      <Chatbot
        chatbotId="chatbot_123"
        apiKey="YOUR_API_KEY"
        user={{ id: "user_001", name: "Jane Doe" }}
        apiEndpoint="https://api.your-saas.com/chat"
        position="bottom-right"
        primaryColor="#2563eb"
        secondaryColor="#10b981"
        title="Support Chat"
        welcomeMessage="Hello! How can I help you today?"
        botAvatar="https://example.com/bot-avatar.png"
        userAvatar="https://example.com/user-avatar.png"
        onSaveMessage={(msg) => console.log("Saved message:", msg)}
        initialMessages={[
          { role: "bot", content: "Welcome to the chat!" },
        ]}
      />
    </div>
  );
}

All CSS is inline and bundled, so you don’t need to import any stylesheet.


⚙️ Props

| Prop | Type | Default | Description | | | | | ----------------- | ----------------------- | ------------- | ----------------------------------------------- | ------------ | ---------------- | ------------------------------------- | | user | User | — | User information object (required) | | | | | chatbotId | string | — | Unique identifier for the chatbot (required) | | | | | apiKey | string | — | API key for authentication (required) | | | | | position | `'bottom-right' | 'bottom-left' | 'top-right' | 'top-left'` | 'bottom-right' | Position of the chatbot on the screen | | onSaveMessage | (messageData) => void | undefined | Callback invoked when a message is saved | | | | | initialMessages | ChatMessage[] | [] | Optional array of initial messages | | | | | primaryColor | string | "#2563eb" | Main color for buttons, headers, and highlights | | | | | secondaryColor | string | "#10b981" | Secondary color for accents | | | | | botAvatar | string | undefined | URL of the bot avatar | | | | | userAvatar | string | undefined | URL of the user avatar | | | | | title | string | "" | Chat window title | | | | | welcomeMessage | string | "Hello!" | Message shown when chat starts | | | | | apiEndpoint | string | "/api/chat" | Backend endpoint to handle messages | | | |


🎨 Customization

  • primaryColor and secondaryColor control theme colors
  • title sets the chat window header
  • botAvatar and userAvatar show custom avatars
  • welcomeMessage lets you define the greeting
  • position places the chat widget anywhere in the viewport

🧪 Development / Testing

git clone https://github.com/Walon-Foundation/chatbot-react
cd chatbot-react
npm install

Test the component locally in a React or Next.js app.


📖 Roadmap

  • [ ] Multiple chatbot API support
  • [ ] Dark/light themes
  • [ ] Typing indicators & animations
  • [ ] Message history persistence

🤝 Contributing

  1. Fork the repo
  2. Create a feature/fix branch
  3. Submit a pull request

📄 License

This project is licensed under the MIT license.