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 🙏

© 2025 – Pkg Stats / Ryan Hefner

help-center-widget-react

v1.0.1

Published

React help center component for React.

Readme

🛟 Help Center Widget for React

Publish help articles, FAQs, and guides. Allow customers to find answers on their own, reduce repetitive questions, and keep your support team to focus on more challenging issues.

👀 Preview

Help Center Widget Preview

📦 Installation

Install the widget via npm or yarn:

npm install help-center-widget-react
# or
yarn add help-center-widget-react

✨ Key Features

  • 🚀 Easy Integration: Get started with minimal setup.
  • 📱 Responsive Design: Optimized for all screen sizes.
  • 🔍 Search Functionality: Allow users to quickly find relevant articles.
  • 📚 Article Categorization: Organize content for better discovery.
  • 🗂️ Multi-Language Support: Target a global audience.
  • 💪 TypeScript Compatibility: Fully typed for a seamless developer experience.
  • 🌓 Dark Mode Support: Matches your user's preferences.

🔧 Configuration

Register your project on Swiftyper.

Customize the widget to fit your needs using the following options:

| Option | Type | Description | |----------------------------|----------|----------------------------------------------------------------| | apiKey | string | API key for authenticating with the help center. | | locale | string | Locale setting for the widget (e.g., en_US, de_DE). | | isOpen | boolean | Whether the widget is open by default. | | launcherPosition | string | Position of the launcher on the screen (e.g., bottom-right). | | launcherColor | string | Color of the launcher icon. | | launcherBackgroundColor | string | Background color of the launcher. | | launcherSize | string | Size of the launcher (e.g., 3.5rem). | | launcherMargin | string | Margin around the launcher (e.g., 1rem). | | launcherAnimation | boolean | Enable animation for the launcher. | | widgetRadius | string | Border radius of the widget (e.g., 12px). | | widgetWidth | string | Width of the widget (e.g., 400px). | | widgetHeight | string | Height of the widget (e.g., 650px). | | displayMode | string | Display mode of the widget (modal, popup). | | showModalBackdrop | boolean | Show a backdrop when the widget is in modal mode. | | backdropColor | string | Color of the modal backdrop (e.g. rgba(0, 0, 0, 0.5)). | | launcherIconSvg | string | Custom SVG icon for the launcher. |

⚡️ Quick Start

Follow these steps to integrate the widget into your app:

  1. Add the following script to your React app:
import { HelpCenterWidget } from 'help-center-widget-react';

function App() {
  return (
    <div>
      <HelpCenterWidget
        apiKey="YOUR_API_KEY"
        launcherPosition="bottom-right"
        launcherColor="#fff"
        launcherBackgroundColor="#2563eb"
        displayMode="popup"
      />
      {/* Your app content */}
    </div>
  );
}
  1. Replace YOUR_API_KEY with your actual API key.

  2. Customize the configuration options as needed.

🖥️ Browser Support

The widget supports all modern browsers:

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

🤝 Contributing

We welcome contributions! If you'd like to help improve this project, feel free to open an issue or submit a pull request.

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.