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

botty-widget

v0.3.15

Published

Drop-in Botty chat bubble widget for embedding trained bots anywhere.

Readme

Botty Widget

Drop the Botty chat bubble into any React app with a single component. The widget fetches your bot's public profile and chats through the hosted Botty API so it behaves exactly as trained in the dashboard.

Installation

npm install botty-widget
# or
yarn add botty-widget
# or
pnpm add botty-widget

Quick start

  1. Copy the Bot ID from the Dashboard → Bottys tab.
  2. Paste it into the widget component:
import { BottyWidget } from 'botty-widget'

export function SupportBubble() {
  return <BottyWidget botId="YOUR_BOT_ID" />
}

// With custom position
export function SupportBubbleTopLeft() {
  return (
    <BottyWidget 
      botId="YOUR_BOT_ID" 
      position="top-left" 
    />
  )
}
  1. Deploy your app. The widget renders a floating FAB that opens the chat panel styled with your bot's theme.

Note: If you've set a widget position in your Botty dashboard settings, that will take precedence over the position prop.

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | botId | string | – | Required. Bot ID copied from your Botty dashboard. | | apiUrl | string | https://app.botty.ai/api | Override when self-hosting the Botty API. | | launcherLabel | string | "💬" | Custom text/emoji shown inside the floating button. | | position | 'bottom-right' \| 'bottom-left' \| 'top-right' \| 'top-left' | 'bottom-right' | Position of the widget on the screen. Can be overridden by bot's widget position setting. |

How it works

  • Fetches /bots/public/:id to hydrate the widget with name, description, colors, and welcome message.
  • Posts user questions to /bots/public/:id/chat, which the Botty backend processes using your workspace credits.
  • Handles loading/error states and renders a lightweight chat history in memory.

Styling

The component ships with inline styles so you can drop it anywhere without extra CSS. If you need deeper customization, wrap the component in your own container or fork the package.

Requirements

  • React 18+ (19 tested)
  • Modern browsers (ES2020, fetch, async/await)

Development

pnpm install
pnpm build

The build step outputs ESM, CJS, and TypeScript declarations in dist/ via tsup.

Support

For dashboard or bot configuration issues, head back to the main Botty repo/documentation. For widget-specific bugs, open an issue or PR in this package.