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

@deltabreen/help-react

v0.3.1

Published

Help by DeltaBreen for React and Next.js: the support form, a logged-in user's own tickets, the Help button and help articles as components, over Help's hosted script.

Readme

Help by DeltaBreen for React

The support form, a logged-in user's own tickets, the Help button and your help articles as React components, for React 18 and later and Next.js. They draw Help's own elements and load our hosted script once, so your site gets our fixes without a release of yours. No dependencies besides React.

npm install @deltabreen/help-react

The form

import { HelpProvider, SupportForm } from '@deltabreen/help-react'

export default function App() {
  return (
    <HelpProvider siteKey="pk_live_…">
      <SupportForm subject="Book a call" fields={{ order_id: 'A-100' }} onSent={({ number }) => console.log(number)} />
    </HelpProvider>
  )
}

Your site's key is on its Install tab in the portal. Use the test key (pk_test_…) while you try things out: it works on any page, localhost too. The live key works only on your site's verified domains and its test domains.

Put HelpProvider once, around everything that shows Help. In Next.js's App Router the components are client components already ('use client'), so put the provider in your root layout.

| Component | Element | Props beside accent, labels, lang, siteKey, className, style | |---|---|---| | SupportForm | <db-help-form> | subject (true, or words to start it with), suggest={false}, fields, login, thanks, onSent, onError, onArticle, onAnswered | | MyTickets | <db-help-tickets> | login, onReplied, onClosed (they marked one solved), onRated, onUnread, onView (the ticket open in it, null for the list) | | HelpButton | <db-help-launcher> | position="left", login, onSent, onUnread | | HelpArticles | <db-help-articles> | section, inline, contact, onArticle, onAnswered |

login is where "Log in to send a message" and "Log in to see your tickets" lead, on a site that takes messages only from logged-in users: your login page, best with a way back (login="/login?return=/support"). thanks is your own thank-you page, opened once a message is sent; {number} in it becomes the ticket's number (thanks="/thank-you/?ticket={number}").

labels takes any of the element's words by name, as { title: 'Talk to us', emailHint: 'Your work email' }. The names are in the embed's guide.

Logged-in users

Your server signs a short token that says who is logged in, with the secret from your site's Install tab (see @deltabreen/help-server). Give the provider a function that fetches it, and null while nobody is logged in:

<HelpProvider siteKey="pk_live_…" identity={user ? () => fetch('/help-token').then((r) => r.text()) : null}>

It is asked each time the form needs a fresh token. Or give an address on your own site with identityUrl="/help-token".

Without the form

import { useDeltaHelp, useUnread } from '@deltabreen/help-react'

const help = useDeltaHelp()          // null until the script has started
await help?.submit({ email, body })  // rejects with a HelpError that has a stable `code`
const unread = useUnread()           // replies the logged-in user hasn't read
help?.refresh()                      // ask for new replies now, e.g. when your own code hears of one

context and fields on the provider are setContext and setFields: facts for your team, and values for the form's own fields on every form.

Proving your domain

Check your site on the Install tab reads your home page as your server sends it, before any script runs. A component adds nothing there, so give the proof another way:

  • Next.js: export const metadata = { other: { 'deltabreen-help': 'deltabreen-help=…' } } in your root layout, with the value from the Install tab's tag.
  • Vite or Create React App: the <meta name="deltabreen-help" content="…"> line from the Install tab, in index.html.
  • Anywhere: the DNS record or the file, from the same step.

Content-Security-Policy

script-src  https://help.deltabreen.eu
connect-src https://help.deltabreen.eu