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

sitewise-chatbot-widget

v1.0.9

Published

Embeddable React AI chatbot widget SDK for the chatbot SaaS.

Readme

Sitewise Chatbot Widget

Add an AI-powered support assistant to your React, Next.js, or website application in minutes.

Sitewise Chatbot Widget provides a ready-to-use chat interface, floating launcher, conversation management, and backend integration out of the box. Manage knowledge in the SiteWise dashboard, then provide your businessId and apiKey to connect your chatbot.


Dashboard Setup

Before installing the widget on a production website, create or select a business in the SiteWise dashboard:

https://chatbot-widget-platform.vercel.app

From the dashboard you can:

  • Add approved business knowledge
  • Test chatbot answers before going live
  • Configure lead capture fields
  • Review captured leads
  • Review visitor conversations
  • Generate widget API keys
  • Manage separate chatbot setups

Installation

Install the package:

npm install sitewise-chatbot-widget

Run the interactive setup wizard:

npx sitewise-chatbot-widget

The setup wizard will guide you through:

  • Business name
  • Chat title
  • Subtitle
  • Welcome message

After setup, a sitewise-chatbot.config.json file will be generated automatically.

Business knowledge is managed from the SiteWise dashboard. Use the dashboard to add knowledge, generate the widget API key, and finish production setup.


Quick Start

"use client";

import { ChatbotWidget } from "sitewise-chatbot-widget";
import "sitewise-chatbot-widget/style.css";
// Use "../" when this component is inside your project's components folder.
import chatbotConfig from "../sitewise-chatbot.config.json";

export default function SupportChat() {
  return (
    <ChatbotWidget
      {...chatbotConfig}
      businessId="YOUR_BUSINESS_ID"
      apiKey="YOUR_WIDGET_API_KEY"
    />
  );
}

For production, copy the businessId and browser-safe widget apiKey from the SiteWise dashboard.


Props

| Prop | Type | Required | Description | | ---------------- | --------------------------------- | -------- | ------------------------------------- | | businessId | string | Yes | Dashboard business identifier | | apiKey | string | Yes | Browser-safe widget API key | | apiBaseUrl | string | No | Optional custom backend API URL | | title | string | No | Chat window title | | subtitle | string | No | Text displayed below the title | | welcomeMessage | string | No | Initial assistant message | | position | "bottom-right" \| "bottom-left" | No | Widget position | | primaryColor | string | No | Primary widget color | | themeMode | "auto" | No | Automatically detects website styling | | theme | object | No | Advanced theme customization |


Example

<ChatbotWidget
  businessId="medical001"
  apiKey="your-widget-api-key"
  title="Support Assistant"
  subtitle="Ask us anything"
  welcomeMessage="Hi! How can I help?"
  position="bottom-right"
  primaryColor="#2563eb"
/>

Styling & Theme

By default, the widget automatically adapts to your website's styling.

The widget can detect and inherit:

  • Brand colors
  • Typography
  • Background colors
  • Border radius
  • General visual appearance

You can override any detected values using primaryColor or the theme prop.

Example:

<ChatbotWidget
  businessId="medical001"
  apiKey="your-widget-api-key"
  theme={{
    primaryColor: "#2563eb",
    textColor: "#111827",
    surfaceColor: "#ffffff",
    borderColor: "#e5e7eb",
    radius: "12px",
  }}
/>

Advanced Configuration

These options are typically configured during onboarding and do not need to be manually set for most installations.

| Prop | Description | | ----------------- | ------------------------------------------------- | | businessName | Business name used during provisioning | | autoProvision | Legacy automatic provisioning option | | knowledgeSource | Deprecated legacy website-sync option |


Security

The apiKey used by the widget is intended to be browser-safe and is visible to website visitors.

Do not use administrative or server-side API keys in the widget.

Recommended protections:

  • Domain restrictions
  • Tenant validation
  • Rate limiting
  • Backend authorization checks

Framework Support

Works with:

  • React
  • Next.js
  • Vite
  • WordPress (via script bundle)
  • Shopify
  • Webflow
  • Static HTML websites

License

MIT