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

@helpway/react

v0.7.0

Published

Official React SDK for Helpway — drop-in AI chat support widget with headless hooks for custom UIs.

Downloads

1,706

Readme

@helpway/react

Official React SDK for Helpway — AI-powered customer support widget with full programmatic control.

📚 Full documentation: https://helpway.ai/docs · Quick start · React SDK · Customization & theming · Widget API · Integration notes (CSP, SSR, multi-tenant)

Install

npm install @helpway/react

Peer dependencies: react ≥ 18 and react-dom ≥ 18.

Quick start

import { HelpwayWidget } from "@helpway/react";

export default function App() {
  return (
    <>
      <YourApp />
      <HelpwayWidget apiKey="pk_live_xxx" />
    </>
  );
}

Programmatic API (window.Helpway)

After the widget bootstraps, a type-safe global API is available:

window.Helpway.open()                        // open panel
window.Helpway.close()                       // close panel
window.Helpway.toggle()                      // toggle open/close
window.Helpway.dismiss()                     // hide launcher + panel
window.Helpway.show()                        // re-show after dismiss
window.Helpway.shutdown()                    // full session reset

window.Helpway.identify({                    // link visitor to contact
  externalId: "u_123",
  email: "[email protected]",
  name: "Jane Doe",
})

window.Helpway.newConversation("Help!")      // open new conversation
window.Helpway.openConversation("conv_abc")  // open specific conversation

window.Helpway.unreadCount                   // getter: number
window.Helpway.isOpen                        // getter: boolean

window.Helpway.on("open", () => {})          // subscribe to events
window.Helpway.on("unreadChange", (n) => {})
window.Helpway.on("messageReceived", (msg) => {})
window.Helpway.off("open", handler)          // unsubscribe

TypeScript users get full auto-complete — the package augments Window automatically.

Props

| Prop | Type | Default | Description | |---|---|---|---| | apiKey | string | — | Required. Public key from dashboard. | | apiUrl | string | https://api.helpway.ai | Override for staging / self-hosted. | | locale | string | auto-detect | Widget language ("en", "tr", "de"…). | | hideLauncher | boolean | false | Hide the default floating bubble. | | customLauncherSelector | string | — | CSS selector for custom trigger element. | | onReady | (api: HelpwayAPI) => void | — | Full API object after bootstrap. | | onOpen | () => void | — | Panel opened. | | onClose | () => void | — | Panel closed. | | onUnreadChange | (count: number) => void | — | Unread count changed. |

Custom launcher

<HelpwayWidget
  apiKey="pk_live_xxx"
  hideLauncher
  customLauncherSelector="#my-btn"
/>

<button id="my-btn">Support</button>

Headless hooks

Build your own chat UI with the same realtime backend:

import { SupportProvider, useConversations, useTimeline, useComposer } from "@helpway/react";

function Chat() {
  const { conversations } = useConversations();
  const { items } = useTimeline(conversations[0]?.id);
  const { text, setText, submit } = useComposer(conversations[0]?.id);
  // ...render your own UI
}

<SupportProvider apiKey="pk_live_xxx">
  <Chat />
</SupportProvider>

Available hooks: useWidget, useConversations, useTimeline, useComposer, usePresence, useUnread, useRealtime.

Docs

Full documentation: helpway.ai/docs

License

MIT © Helpway