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

@zickt/react

v0.1.0

Published

Official React SDK for Zickt (zickt.com) — add live chat, customer messaging, and support widgets to React apps

Readme

@zickt/react

npm version npm bundle size License: MIT TypeScript npm provenance 100% Coverage

Official React SDK for Zickt — add a customer messaging widget to your React app in one line.

Zickt is a modern customer communication platform for support, sales, and engagement. This package provides React components and hooks for embedding the Zickt live chat widget into any React application.

Install

npm install @zickt/react

Quick Start

import { ZicktMessenger } from '@zickt/react';

function App() {
  return (
    <>
      <YourApp />
      <ZicktMessenger channelKey="your-channel-key" />
    </>
  );
}

That's it. The messenger widget loads from Zickt's CDN and appears on your page. Get your channel key from the Zickt dashboard.

With Hooks

Use ZicktProvider and useZickt when you need programmatic control — showing/hiding the messenger or reading state.

import { ZicktProvider, useZickt } from '@zickt/react';

function App() {
  return (
    <ZicktProvider channelKey="your-channel-key" user={{ email: '[email protected]', name: 'Jane' }}>
      <Dashboard />
    </ZicktProvider>
  );
}

function Dashboard() {
  const { show, hide, isReady } = useZickt();

  return (
    <div>
      <button onClick={() => show()}>Open Chat</button>
      <button onClick={() => hide()}>Close Chat</button>
    </div>
  );
}

API

<ZicktMessenger />

Drop-in component. Renders nothing visually — the messenger widget is injected by the SDK.

| Prop | Type | Description | | ------------------------ | ------------------------- | --------------------------------------------------------- | | channelKey | string | Required. Your Zickt channel key | | user | ZicktUser | Identify the current user | | company | ZicktCompany | Associate a company | | appearance | ZicktAppearance | Position and theme | | hideDefaultLauncher | boolean | Hide the default chat button | | customLauncherSelector | string | CSS selector for a custom launcher element | | onReady | () => void | Called when the messenger is fully loaded | | onShow | () => void | Called when the messenger opens | | onHide | () => void | Called when the messenger closes | | onUnreadCountChanged | (count: number) => void | Called when unread count changes |

<ZicktProvider />

Wraps your app and provides context to useZickt. Accepts all the same props as ZicktMessenger plus children.

<ZicktProvider channelKey="your-channel-key" user={{ email: '[email protected]' }}>
  {children}
</ZicktProvider>

useZickt()

Hook for programmatic control. Must be used inside a ZicktProvider.

const {
  isReady, // boolean — true when messenger has loaded
  show, // () => void — open the messenger
  hide, // () => void — close the messenger
  showNewMessage, // (message?: string) => void — open with a pre-filled message
  update, // (config: Partial<ZicktConfig>) => void — update config at runtime
  getVisitorId, // () => string | undefined — get the current visitor ID
  shutdown, // () => void — shut down the messenger
} = useZickt();

Types

All types are exported for use in your application:

import type {
  ZicktConfig,
  ZicktUser,
  ZicktCompany,
  ZicktAppearance,
  ZicktCallbacks,
  ZicktContextValue,
  ZicktProviderProps,
  ZicktMessengerProps,
} from '@zickt/react';

ZicktUser

interface ZicktUser {
  id?: string;
  email?: string;
  name?: string;
  phone?: string;
  avatar?: string;
  [key: string]: unknown; // custom attributes
}

ZicktAppearance

interface ZicktAppearance {
  position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
  theme?: 'light' | 'dark' | 'auto';
}

Resources

Requirements

  • React 18 or 19
  • A Zickt account and channel key

Quality

This package enforces strict quality gates on every release:

  • 100% test coverage — statements, branches, functions, lines (48 tests)
  • Bundle size limit — under 3 kB minified + brotli
  • Strict TypeScript — no any, explicit return types, strict boolean expressions
  • 28 ESLint rules — all as error, including type-aware async/condition correctness
  • Type validationpublint, attw, tsd
  • npm provenance — cryptographically signed builds linked to source

License

MIT