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

@neuphlo/widget-react

v0.3.1

Published

React bindings for the Neuphlo Messenger

Readme

@neuphlo/widget-react

React bindings for the Neuphlo Messenger. Renders a floating launcher; conversations land in your Neuphlo inbox with the same draft-and-approve flow as email.

Install

npm install @neuphlo/widget-react

Usage

Mount the component anywhere in your tree (it renders nothing):

import { NeuphloWidget } from "@neuphlo/widget-react"

export function App() {
  return (
    <>
      <YourApp />
      <NeuphloWidget widgetKey="your-widget-key" />
    </>
  )
}

Or use the hook:

import { useNeuphloWidget } from "@neuphlo/widget-react"

useNeuphloWidget({ widgetKey: "your-widget-key", position: "left", color: "#0f766e" })

Open the panel programmatically (e.g. from a "Contact support" button):

import { openNeuphloWidget } from "@neuphlo/widget-react"

<button onClick={openNeuphloWidget}>Contact support</button>

Options

| Option | Default | Description | | --- | --- | --- | | widgetKey | — | Workspace widget key from Inbox settings → Messenger | | user | — | Signed-in user: { id, name, email, hash } | | position | "right" | Launcher corner, "left" or "right" | | color | "#171717" | Launcher accent color | | appUrl | Neuphlo cloud | Your app origin for self-hosted installs | | scriptUrl | https://get.neuphlo.com/widget.js | Loader script URL |

The widget unmounts cleanly — the launcher and panel are removed when the component unmounts.

Identifying users

Pass the signed-in user so conversations are recognized in your inbox:

<NeuphloWidget
  widgetKey="your-widget-key"
  user={{ id: user.id, name: user.name, email: user.email, hash: user.neuphloHash }}
/>

hash enables identity verification — compute it server-side with the widget identity secret from Inbox settings → Messenger:

import { createHmac } from "node:crypto"

const neuphloHash = createHmac("sha256", process.env.NEUPHLO_IDENTITY_SECRET)
  .update(user.id)
  .digest("hex")

Workspaces with "Require verified identities" enabled reject identified conversations without a valid hash; anonymous visitors are unaffected.