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

@cossistant/react

v0.0.29

Published

Headless React SDK for building AI-powered support/chat widgets. Hooks + primitives, WS-driven, TypeScript-first. Next.js-ready, Tailwind optional.

Readme

Cossistant React SDK

Build fully featured customer support experiences in React with the official @cossistant/react package. The SDK wraps the REST and WebSocket APIs, comes with a prebuilt widget, hooks, and UI primitives so you can ship your support quickly and customize later.

📚 New to Cossistant? Follow the Quickstart guide in our official documentation.

Installation

Pick the command that matches your package manager:

bun add @cossistant/react
# or
npm install @cossistant/react
# or
yarn add @cossistant/react

CSS Imports

The SDK provides two CSS entrypoints to fit your setup:

Option 1: Tailwind v4 Source

If you're using Tailwind CSS v4, import the source file to enable full theme customization:

import "@cossistant/react/tailwind.css";

Option 2: Plain CSS

Import the pre-compiled CSS with no Tailwind dependency:

import "@cossistant/react/support.css";

This file contains all the compiled styles and works in any React application without requiring Tailwind CSS.

Note: Tailwind v3 is not supported. Use the plain CSS import if you're on Tailwind v3.

Render the widget

import { SupportProvider, Support } from "@cossistant/react";
import "@cossistant/react/support.css";

export function App() {
  return (
    <SupportProvider publicKey={process.env.NEXT_PUBLIC_COSSISTANT_API_KEY}>
      <Support />
    </SupportProvider>
  );
}
  1. Wrap the subtree that should access support data with SupportProvider and supply your public key (A Cossistant account is mandatory)
  2. Drop the Support component anywhere inside that provider to mount the floating widget.
  3. Optionally pass defaultOpen, quickOptions, defaultMessages, or locale overrides straight into Support for instant personalization.

Identify visitors and seed defaults

Use the helper components to identify a visitor, attach metadata or display different default messages or quick options.

import {
  IdentifySupportVisitor,
  Support,
  SupportConfig,
  SupportProvider,
  SenderType,
} from "@cossistant/react";

export function Dashboard({
  visitor,
}: {
  visitor: { id: string; email: string };
}) {
  return (
    <>
      <IdentifySupportVisitor externalId={visitor.id} email={visitor.email} />
      <SupportConfig
        defaultMessages={[
          {
            content:
              "Welcome in our your dashboard, if you need any help I'm here!",
            senderType: SenderType.TeamMember,
          },
        ]}
      />
    </>
  );
}

Need help or spot a typo?

Open an issue in the main repository or start a discussion so we can improve the docs together. Screenshots, reproduction steps, and suggestions are welcome.