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

@kookee/react

v0.0.5

Published

Official Kookee React Chat Widget - Embeddable AI-powered support chat

Downloads

492

Readme

@kookee/react

Official React chat widget for Kookee - AI-powered support chat using your help center articles.

Features

  • AI Chat - Answers questions using your help center content via RAG
  • Lightweight - Small bundle, React as peer dependency
  • Two Modes - Floating widget (Intercom-like) or inline chat component
  • Themeable - Light, dark, auto themes with CSS variable customization
  • TypeScript-first - Full type definitions out of the box
  • Open source - MIT licensed

Installation

npm install @kookee/react
# or
pnpm add @kookee/react
# or
yarn add @kookee/react

Don't forget to import the styles:

import '@kookee/react/styles.css';

Quick Start

Floating Widget (Intercom-like)

import { KookeeChatWidget } from '@kookee/react';
import '@kookee/react/styles.css';

function App() {
  return (
    <>
      {/* Your app */}
      <KookeeChatWidget
        clientOptions={{ apiKey: 'your-api-key' }}
        position="bottom-right"
        theme="auto"
        primaryColor="#6366f1"
        greeting="Hi! How can I help?"
        placeholder="Ask a question..."
        suggestions={['How do I get started?', 'What are the pricing plans?']}
      />
    </>
  );
}

Inline Chat

import { KookeeChat } from '@kookee/react';
import '@kookee/react/styles.css';

function SupportPage() {
  return (
    <div style={{ height: 500 }}>
      <KookeeChat
        clientOptions={{ apiKey: 'your-api-key' }}
        locale="en"
        suggestions={['How do I get started?']}
      />
    </div>
  );
}

Components

KookeeChatWidget

Floating bubble + chat panel. Props:

| Prop | Type | Default | Description | |---|---|---|---| | clientOptions | { apiKey: string } | required | SDK client configuration | | position | 'bottom-right' \| 'bottom-left' | 'bottom-right' | Widget position | | theme | 'light' \| 'dark' \| 'auto' | 'light' | Color theme | | primaryColor | string | #6366f1 | Accent color | | greeting | string | — | Welcome message | | placeholder | string | 'Ask a question...' | Input placeholder | | locale | string | — | Locale for responses | | suggestions | string[] | — | Quick-start suggestion pills | | onSourceClick | (source: HelpChatSource) => void | — | Callback when user clicks a source |

KookeeChat

Inline chat component (renders in parent container). Same props as above except position and theme.

KookeeChatProvider + useKookeeChat

For advanced usage with custom layouts:

import { KookeeChatProvider, useKookeeChat } from '@kookee/react';

function CustomChat() {
  const { messages, isLoading, sendMessage, isOpen, toggle } = useKookeeChat();
  // Build your own UI
}

function App() {
  return (
    <KookeeChatProvider clientOptions={{ apiKey: 'your-api-key' }}>
      <CustomChat />
    </KookeeChatProvider>
  );
}

Theming

Customize via CSS variables:

:root {
  --kookee-primary: #6366f1;
  --kookee-primary-hover: #4f46e5;
  --kookee-bg: #ffffff;
  --kookee-bg-secondary: #f9fafb;
  --kookee-text: #111827;
  --kookee-text-secondary: #6b7280;
  --kookee-border: #e5e7eb;
  --kookee-radius: 12px;
  --kookee-font-size: 14px;
}

License

MIT