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

@nsupp/chatbox-sdk

v0.1.0

Published

Typed web SDK for the nsupp chatbox — configure, open/close, identify visitors, track events. Dependency-free.

Readme

@nsupp/chatbox-sdk

Typed web SDK for the nsupp chatbox. A thin, dependency-free wrapper over the on-page $posthubify command queue served by /widget/embed.js. Configure once, then open the chatbox, identify visitors, and track events — all fully typed.

Install

npm install @nsupp/chatbox-sdk

Quickstart

import Nsupp from '@nsupp/chatbox-sdk';

// Inject the chatbox and set your website public key (once, as early as possible).
Nsupp.configure('YOUR_WEBSITE_PUBLIC_KEY');

// Control the chatbox.
Nsupp.chat.open();
Nsupp.chat.toggle();

// Identify the visitor.
Nsupp.user.setEmail('[email protected]');
Nsupp.user.setData({ name: 'Jane', plan: 'pro' });

// Track a custom event (drives campaigns & message triggers).
Nsupp.event.track('checkout_started');

// Run a message trigger by id.
Nsupp.trigger.run('pricing-help');

Named imports work too:

import { configure, chat, user, event } from '@nsupp/chatbox-sdk';
configure('YOUR_WEBSITE_PUBLIC_KEY');
chat.open();

Identity Verification

When Identity Verification is enabled on your workspace, pass a server-computed signature alongside the email. Never compute the signature in the browser.

Nsupp.user.setData({
  email: '[email protected]',
  name: 'Jane',
  signature: '<hmac-from-your-server>',
});

API

| Call | Description | | --- | --- | | Nsupp.configure(publicKey, { apiBase?, autoload? }) | Set the website public key and inject the embed script. | | Nsupp.chat.open() / close() / toggle() | Control chatbox visibility. | | Nsupp.user.setEmail(email) | Bind the visitor to an email. | | Nsupp.user.setData({ email?, name?, signature?, ...attrs }) | Bind identity + custom attributes. | | Nsupp.event.track(name) | Report a custom event. | | Nsupp.trigger.run(id) | Run a message trigger. | | Nsupp.identify(data) | Convenience alias for user.setData. |

Options

  • apiBase — API origin serving the widget bundle. Defaults to https://api.nsupp.com.
  • autoload — Inject the embed <script> automatically (default true). Set false if you load embed.js yourself.

SSR

All calls are safe to invoke in a non-browser environment: outside the browser they are no-ops, so you can call the SDK from isomorphic code without guards.

Native SDKs

iOS (Swift) and Android (Kotlin) native SDKs are shipped — see packages/ios-sdk and packages/android-sdk, or the iOS SDK and Android SDK guides. They talk to the same endpoints as this package, so a conversation started on your website continues in your app.

A React Native SDK does not exist yet.

License

UNLICENSED — © nsupp.

License

Licensed under the Apache License 2.0.

"nsupp" and the nsupp logo are trademarks of Asindie, Inc. The license grants no trademark rights — see the trademark policy for what use is permitted.