LIBRARY

Open-source packages I've built

Drop-in React libraries crafted for developer ergonomics, clean theming, and production speed.

Drop-in React Chatbot Widgetv0.1.1MIT

nk-chatbot

A drop-in, customizable React chatbot widget for any website. Lightweight, themeable, and zero runtime dependencies — with predefined local replies, a built-in HTTP API adapter, draggable placement, and a headless useChat hook.

npm install nk-chatbot

Powering the live chat assistant in the bottom-right corner of this site.

  • Floating launcher & animated chat window with quick-reply chips and typing indicator
  • Corner-pinned or draggable placement (movable) with automatic viewport clamping
  • Predefined local rules, built-in HTTP API adapter, or custom async onSend handler
  • Headless useChat hook & composable UI components for custom interfaces
  • CSS-variable theming (--cc-*) with light/dark support and React 18 & 19 compatibility
Quick Setup · App.tsxTSX
import { ChatbotWidget } from "nk-chatbot";
import "nk-chatbot/style.css";

export function App() {
  return (
    <ChatbotWidget
      title="Help Assistant"
      quickReplies={["Pricing", "Contact"]}
      onSend={async (msg) => getReply(msg)}
    />
  );
}
  • 📦 Zero runtime dependencies
  • ⚛️ React 18 & 19 ready
  • 🎨 CSS-variable theming
  • 🪝 Headless useChat hook
  • 🖱️ Interactive live playground
#react#typescript#widget#headless-hook#css-variables