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

@wsocket-io/support

v0.1.1

Published

wSocket Support Widget — Embeddable live chat widget for wSocket

Readme

@wsocket-io/support

Embeddable live chat support widget for wSocket.

Installation

npm / yarn / pnpm

npm install @wsocket-io/support

CDN (script tag)

<script
  src="https://cdn.jsdelivr.net/npm/@wsocket-io/support/dist/support.min.js"
  data-server="https://node00.wsocket.online"
  data-org="YOUR_ORG_ID"
  data-key="YOUR_API_KEY"
></script>

Usage

Script Tag (CDN)

Drop the script tag in your HTML and the widget auto-initializes:

<script
  src="https://cdn.jsdelivr.net/npm/@wsocket-io/support/dist/support.min.js"
  data-server="https://node00.wsocket.online"
  data-org="your-org-id"
  data-key="your-api-key"
  data-color="#6366f1"
  data-position="right"
  data-locale="en"
  data-title="Support"
></script>

Script Tag Attributes

| Attribute | Required | Default | Description | | --------------- | -------- | -------------------------------- | ----------------------- | | data-server | No | https://node00.wsocket.online | wSocket server URL | | data-org | Yes | — | Your Organization ID | | data-key | No | — | API key for auth | | data-color | No | #6366f1 | Primary theme color | | data-position | No | right | Widget position (left / right) | | data-locale | No | auto-detect | Language (en, pt, es) | | data-title | No | Support | Chat window header title |

Programmatic (ES Module)

import { SupportWidget } from '@wsocket-io/support';

const widget = new SupportWidget({
  serverUrl: 'https://node00.wsocket.online',
  orgId: 'your-org-id',
  apiKey: 'your-api-key',
  theme: { primaryColor: '#6366f1' },
  position: 'right',
  locale: 'en',
  headerTitle: 'Support',
});

widget.mount();

Next.js / React

'use client';

import { useEffect } from 'react';
import { SupportWidget } from '@wsocket-io/support';

export function SupportChat() {
  useEffect(() => {
    const widget = new SupportWidget({
      serverUrl: 'https://node00.wsocket.online',
      orgId: 'your-org-id',
      apiKey: 'your-api-key',
    });

    widget.mount();

    return () => widget.destroy();
  }, []);

  return null;
}

Theming

Customize colors and appearance via the theme option:

const widget = new SupportWidget({
  serverUrl: '...',
  orgId: '...',
  apiKey: '...',
  theme: {
    primaryColor: '#6366f1',
    primaryHover: '#4f46e5',
    textOnPrimary: '#ffffff',
    bgColor: '#ffffff',
    textColor: '#1f2937',
    visitorBubble: '#6366f1',
    agentBubble: '#f3f4f6',
    borderRadius: '16px',
  },
});

Localization

Built-in support for English, Portuguese, and Spanish. Pass locale to override auto-detection:

const widget = new SupportWidget({
  serverUrl: '...',
  orgId: '...',
  apiKey: '...',
  locale: 'pt', // 'en' | 'pt' | 'es'
});

API

SupportWidget

| Method | Description | | ----------- | ----------------------------------- | | mount(el?) | Mount the widget (default: document.body) | | destroy() | Remove widget and disconnect WebSocket |

Exports

| Export | Description | | --------------- | ------------------------------ | | SupportWidget | Main widget class | | SupportWidgetConfig | Config type | | WidgetTheme | Theme customization type | | WidgetStrings | i18n strings type | | DEFAULT_THEME | Default theme object | | getStrings | Get strings for a locale | | detectLocale | Auto-detect browser locale |

License

MIT — wsocket.io