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

ondemand-react-chat-bot

v1.3.0

Published

OnDemandChatBot is a React library that provides an easy-to-use AI-powered chatbot component for your application. Built on top of the OnDemand platform, it allows full customization and seamless AI integration.

Readme

OnDemandChatBot

OnDemandChatBot is a React library that provides an easy-to-use AI-powered chatbot component for your application. Built on top of the OnDemand platform, it allows full customization and seamless AI integration.

Features

  • Fully Configurable – Customize the chatbot’s logo, name, welcome message, input placeholder, and more.
  • Agent System – Assign specialized AI agents for different tasks. For example, use a LinkedIn agent to search for users on LinkedIn.
  • AI Model Selection – Choose from 10+ AI models, including ChatGPT, Gemini, DeepSeek, Claude, and more.
  • OnDemand Platform Integration – Manage all configurations directly from the OnDemand platform without code changes.

Installation

Install the package using npm or yarn:

npm install ondemand-react-chat-bot

or

yarn add ondemand-react-chat-bot

Props

| Prop Name | Type | Required | Description | | ------------------ | ------------------- | -------- | -------------------------------------------------------------------------------------------- | | apiKey | string | ✅ | Your API key obtained from On-Demand.io. | | botId | string | ✅ | The ID of your chatbot created on On-Demand.io. | | contextVariables | contextVariable[] | ❌ | Attach metadata or user-specific context to a session. You can add up to 10 key-value pairs. |

Types

type contextVariable = {
  key: string;
  value: string;
};

Usage

Import and use the OnDemandChatBot component in your project:

import { OnDemandChatBot } from "ondemand-react-chat-bot";

const App = () => {
  const contextVariables = [
    { key: "name", value: "John Deo" },
    { key: "email", value: "[email protected]" },
  ];

  return (
    <OnDemandChatBot
      apiKey="your-api-key"
      botId="your-bot-id"
      contextVariables={contextVariables}
    />
  );
};

export default App;

Configuring the Chatbot

All chatbot configurations (logo, name, welcome message, input placeholder, agents, AI models) can be managed through the OnDemand platform:

  1. Log in to your account on On-Demand.io.
  2. Navigate to the Chatbot Settings section.
  3. Adjust your chatbot’s appearance and functionality as needed.
  4. Copy your API key and Bot ID, and use them in your React project.

OnDemandChatBot API Key Guide

Getting an API Key

To use OnDemandChatBot, you need an API key from On-Demand.io. Follow the steps below to obtain your API key:

Step 1: Navigate to API Key Management

  1. Log in to your account on On-Demand.io.
  2. From the sidebar, click on API Key Management.

API Key Management

Step 2: Create a New API Key

  1. Click on the Create New Secret Key button.

Create New Secret Key

  1. Enter a name for your API and click on Create API Key.
  2. We strongly suggest you use "Restricted Chat Only" to restrict the functionality of this key and add allowed domains. This prevents unauthorized access and ensures your key is not misused. For example, specifying yourdomain.com ensures that only your website can use the key.
  3. ⚠️ Warning: If you do not set allowed domains and use an unrestricted key, bad actors could exploit it for malicious activities.

Enter API Key Name

Step 3: Copy and Store Your API Key

  1. Once the key is generated, copy it immediately as it will not be shown again.

Copy API Key

  1. Store the key securely as you will need it to authenticate requests in OnDemandChatBot.

OnDemandChatBot Creation Guide

Step 1: Navigate to Web Chat Bot Creator

  1. Go to On-Demand.io.
  2. Click on Web Chat Bot Creator.
  3. Click on Create Chat Bot.

Web ChatBot Creator

Step 2: Configure Your Chatbot

  1. Fill in all the details like Primary Color , Secondary Color , Logo , Bot Name ,
  2. Click Save to store your chatbot configuration.

Web ChatBot Configuration

Step 3: Copy and Store Your Bot ID

  1. After saving, copy the Bot ID.
  2. Store it securely as you will need it to integrate with your application.

Web ChatBot id

Now your chatbot is ready to use!