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

@orkify/chat

v1.0.0-beta.12

Published

Embeddable support chat widget for orkify — powered by Discord

Downloads

59

Readme

Beta CI npm Node License TypeScript

Embeddable support chat widget that lets you talk to your website visitors in real time — directly from Discord. Add it to any website with a single script tag or a React component.

Visitor messages are routed through orkify and delivered to your Discord channel as threads. Your team replies in Discord, visitors see responses in the widget instantly. Requires an orkify account with a paid plan and a Discord bot connected via the dashboard. See the full setup guide for details.

Table of Contents

Installation

npm install @orkify/chat

Or skip the install and use a CDN — no npm required:

<script
  src="https://cdn.jsdelivr.net/npm/@orkify/chat/orkify-chat.js"
  data-widget-key="YOUR_KEY"
></script>

Script Tag (any website)

Works on any website — no framework required. Add a single script tag before </body>:

CDN (recommended)

Served directly from npm via jsDelivr or unpkg — always up to date, no hosting needed:

<script
  src="https://cdn.jsdelivr.net/npm/@orkify/chat/orkify-chat.js"
  data-widget-key="YOUR_KEY"
></script>

Or pin to a specific version:

<script
  src="https://cdn.jsdelivr.net/npm/@orkify/[email protected]/orkify-chat.js"
  data-widget-key="YOUR_KEY"
></script>

Self-hosted

Copy the widget script to your site and reference it locally:

cp node_modules/@orkify/chat/orkify-chat.js public/
<script src="/orkify-chat.js" data-widget-key="YOUR_KEY"></script>

React / Next.js Component

For Next.js and React apps, use the <OrkifyChat> component. It handles script loading, visitor context, and SPA navigation automatically.

npm install @orkify/chat

Add it to your root layout:

// app/layout.tsx
import { OrkifyChat } from '@orkify/chat/react';

export default function Layout({ children }) {
  return (
    <html>
      <body>
        {children}
        <OrkifyChat widgetKey="wk_..." />
      </body>
    </html>
  );
}

With visitor info

Pass visitor props to skip the intro form and enable cross-browser chat restoration:

<OrkifyChat
  widgetKey="wk_..."
  visitorName={user.name}
  visitorEmail={user.email}
  visitorHash={hmac}
/>

Self-hosted script

By default the component loads the script from jsDelivr CDN. To self-host:

<OrkifyChat widgetKey="wk_..." src="/orkify-chat.js" />

Visitor Identity

There are three levels of integration:

| Level | What happens | | -------------------------- | ------------------------------------------------------------------------------ | | Anonymous | Visitors fill out a name + email form before chatting | | With user info | Pass visitorName + visitorEmail to skip the form | | With HMAC verification | Add visitorHash for identity verification and cross-browser chat restoration |

Identity Verification (HMAC)

HMAC-SHA256 verification proves the visitor's email was set by your server, preventing impersonation and enabling cross-browser chat restoration.

Compute HMAC-SHA256(email, signingSecret) on your server and pass the hex string as visitorHash (React) or data-visitor-hash (script tag).

// Server-side (Node.js)
const crypto = require('crypto');
const hash = crypto.createHmac('sha256', SIGNING_SECRET).update(user.email).digest('hex');

Your signing secret is on the Integrations settings page in the orkify dashboard. Never expose it in client-side code.

GIFs & Stickers

GIFs

Visitors can send GIFs using the built-in picker, powered by Klipy. Pass your Klipy API key:

<OrkifyChat widgetKey="wk_..." klipyKey="klipy_..." />

Or with the script tag:

<script
  src="https://orkify.com/orkify-chat.js"
  data-widget-key="YOUR_KEY"
  data-klipy-key="klipy_..."
></script>

GIFs sent from Discord are displayed in the widget automatically.

Stickers

Discord stickers sent by your team are rendered with full animation support. Animated stickers (Lottie format) play as smooth animations using lottie-web, loaded on demand. No configuration needed.

Widget Attributes

For the script tag integration:

| Attribute | Required | Description | | -------------------- | -------- | --------------------------------------------------------------------- | | data-widget-key | Yes | Widget key from the orkify Integrations settings page | | data-visitor-name | No | Visitor's display name. Skips the intro form when provided with email | | data-visitor-email | No | Visitor's email. Used for thread identification | | data-visitor-hash | No | HMAC-SHA256 hex digest for identity verification | | data-klipy-key | No | Klipy API key to enable the GIF picker |

Requirements

  • An orkify account with a paid plan
  • A Discord bot connected via the orkify dashboard (see the setup guide)
  • For the React component: React 18+ and Next.js 15+
  • Messages are routed through orkify.com — no self-hosted backend needed

License

Apache-2.0