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

nexacon-livechat-widget

v1.0.14

Published

Embeddable live chat widget for Nexacon — drop a single script tag into any website

Downloads

2,017

Readme

Nexacon Live Chat Widget

Embeddable live chat widget for any website. Drop a single <script> tag or use as a library in TypeScript/JavaScript projects.

Quick Start (Script Tag)

<script
  src="https://unpkg.com/nexacon-livechat-widget/dist/widget.min.js"
  data-widget-id="YOUR_WIDGET_UUID"
></script>

That's it. The widget auto-initializes, shows a chat bubble in the bottom-right corner, and connects visitors to your support agent or bot.

Use as a Library (TypeScript/JavaScript)

Install:

npm install nexacon-livechat-widget

Core API client + WebSocket client:

import { ApiClient, nxClient } from "nexacon-livechat-widget";

const api = new ApiClient();

// Get widget config
const config = await api.getWidgetConfig("your-widget-id");

// Create guest session
const session = await api.createGuestSession("your-widget-id", {
  visitorId: "user-123",
  name: "John Doe",
  email: "[email protected]",
});

// Connect via WebSocket
const nx = new nxClient({
  wsUrl: "wss://nxservice.quantumvision-tech.com/nx-websocket/",
  jid: session.session_id,
  password: session.token,
  roomJid: session.channel,
});

nx.onMessage = (from, body) => {
  console.log("Message from", from, ":", body);
};

nx.onStateChange = (state) => {
  console.log("Connection state:", state);
};

nx.connect();
nx.sendMessage("Hello!");

Full widget (with UI) in React:

import { NexaconChatWidget } from "nexacon-livechat-widget/widget";

useEffect(() => {
  const widget = new NexaconChatWidget({
    widgetId: "your-widget-id",
    visitorName: "John Doe",
  });
  widget.init();
  return () => widget.destroy();
}, []);

Script Tag Attributes

| Attribute | Required | Description | | -------------------- | -------- | --------------------------------------- | | data-widget-id | Yes | Widget UUID from your Nexacon dashboard | | data-visitor-name | No | Pre-fill visitor name | | data-visitor-email | No | Pre-fill visitor email |

Build

npm install
npm run build        # library (ESM) + widget (IIFE)
npm run build:min    # minified widget
npm run build:all    # all builds + TypeScript declarations
npm run dev          # watch mode

Security Note

  • API Key and Secret Key are server-side only — never embedded in the widget script.
  • The widget only needs a widget_id (public identifier, safe to expose).
  • Guest sessions are ephemeral and expire after 1 hour.