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

@convokit/widget

v0.2.3

Published

AI chat widget for your website

Readme

@convokit/widget

The ConvoKit chat widget for React sites. It answers visitors with AI from your own content, and hands the chat to a person on your team when it needs to.

npm i @convokit/widget
import { ChatWidget } from '@convokit/widget';

<ChatWidget apiKey="pk_live_…" />

In Next.js, render it from a client component ('use client'). The widget mounts into its own shadow root, so your site's CSS can't break it and its CSS can't leak into your site.

PopupWidget is still exported, so installs that use 0.1.x keep working.

Make it yours

<ChatWidget
  apiKey="pk_live_…"
  title="Acme Support"
  subtitle="Usually replies in a few seconds"
  logoUrl="/logo.png"
  primaryColor="#7C3AED"
  theme="auto"
  position="bottom-left"
  launcherLabel="Chat with us"
  teaser="Questions about pricing? Ask here."
  welcomeTitle="Hi there"
  welcomeMessage="How can we help today?"
  suggestions={['How much does it cost?', 'Talk to a person']}
/>

| Prop | Default | What it does | |---|---|---| | apiKey | | Public key from the dashboard (pk_live_…). Never use a secret key here. | | demo | false | Sample replies, no key needed. Good for previews. | | title, subtitle | 'Support', 'Usually replies in a few seconds' | Header text. | | logoUrl, logoFit | , 'cover' | Your logo in the header, the welcome screen and next to replies. | | teamAvatars | | Up to 3 team photos, shown as overlapping faces in the header. | | avatarUrl, botName | logo, 'Assistant' | Avatar and name used for AI replies. | | primaryColor, primaryTextColor | '#2563EB', automatic | Brand colour. Text on it picks black or white for contrast unless you set it. | | gradient | 'wash' | 'wash' (soft brand tint down the chat), 'mesh' (soft brand glows behind the chat) or 'solid' (flat colours). | | theme | 'light' | 'light', 'dark' or 'auto' (follows the visitor's system). | | radius, fontFamily, fontSize | 18, system UI, '14px' | Shape and type. | | position, offset | 'bottom-right', { x: 20, y: 20 } | Where the launcher sits. | | launcherIconUrl, launcherLabel, bubbleSize | , , 52 | Launcher image, optional text label, size. | | teaser, teaserDelay | , 4000 | A short message that pops out of the launcher. Dismissed for the rest of the session once closed. | | welcomeTitle, welcomeMessage, suggestions | 'Hi there', 'How can we help today?', [] | The first screen. Up to 4 suggestions. | | inputStyle | 'outline' | Message box look: 'outline', 'filled', 'pill' or 'underline'. | | sendIcon, sendShape, sendLabel | 'arrow-up', 'rounded', | Send button: icon ('arrow-up', 'arrow-right', 'plane', 'none'), shape ('rounded' or 'circle'), and optional text such as 'Send'. | | placeholder, showTimestamps | 'Write a message…', true | Composer text and message times. | | panelWidth, panelHeight | 360, 580 | Panel size on desktop. On phones it goes full screen. | | persist | 'session' | Keep the chat across reloads in this tab ('session'), this browser ('local'), or not at all ('none'). | | openByDefault, open, onOpenChange, hideLauncher | | Open it yourself, e.g. from a "Contact us" button. | | onMessage, onAgentJoined, onError | | Events for analytics or your own UI. | | apiUrl, widgetId, instanceId, zIndex | | Advanced. |

Every widget shows a small "Powered by ConvoKit" link under the message box.

Live chat

When the assistant decides a person should take over, the visitor sees that the team has been told and can keep writing. When someone takes the chat in the ConvoKit dashboard, the header switches to their name, their replies show with their name, and the visitor sees them typing. The visitor's typing shows in your inbox too.

Try every option

npm run dev

This opens the widget studio: change the logo, colours, text and layout, watch the widget update, and copy the code.