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

fogbender-element

v0.5.0

Published

Web Component wrapper for `fogbender` to embed the Fogbender messaging widget on your website

Readme

Fogbender Element

Fogbender is a B2B support platform that enables a company to install a team messaging experience in their customer-facing web application so that all users belonging to the same customer can collaborate on customer support. It's like a hybrid between Intercom (embeddable) and Slack's shared channels (team-to-team). For more details, visit fogbender.com.

Fogbender Element provides Web Components for embedding Fogbender's collaborative support widgets into your web application. It supports full-page chat interfaces, floating Intercom-style experience, and unread badges.

Installation

CD

<script type="module" src="https://unpkg.com/@fogbender/element"></script>

npm

npm install @fogbender/element

Usage

Below are examples of various widget setups depending on your desired integration level.

All You Need

Below examples should cover 99% of use cases.

Simple Roomy Widget

<fogbender-simple-roomy-widget .token="${yourTokenObject}"> </fogbender-simple-roomy-widget>

Roomy Widget: A team messaging experience that occupies all available space of its parent container. For proper expansion, ensure the parent container uses display: flex.

Simple Floaty Widget

<fogbender-simple-floaty-widget .token="${yourTokenObject}"> </fogbender-simple-floaty-widget>

Floaty Widget: A compact, Intercom‑style button anchored to the bottom-right corner that opens into a full chat interface.

Unread Badge

<fogbender-provider>
  <fogbender-config .token="${yourTokenObject}"> </fogbender-config>
  <fogbender-unread-badge></fogbender-unread-badge>
</fogbender-provider>

Unread Badge: This standalone unread badge can be placed anywhere on your page to notify users of unread support messages.

Advanced

Roomy Widget with Provider

<fogbender-provider>
  <fogbender-config .token="${yourTokenObject}"> </fogbender-config>
  <fogbender-roomy-widget></fogbender-roomy-widget>
</fogbender-provider>

Roomy Widget: This variant uses a provider for configuration and renders a team messaging experience that fills its container (which should have display: flex).

Headless and Floaty Widgets with Provider

<fogbender-provider>
  <fogbender-config .token="${yourTokenObject}"> </fogbender-config>
  <fogbender-is-configured>
    <template data-is-configured>
      <fogbender-headless-widget></fogbender-headless-widget>
      <fogbender-floaty-widget></fogbender-floaty-widget>
    </template>
  </fogbender-is-configured>
</fogbender-provider>

Floaty Widget: An Intercom‑style widget anchored to the bottom-right corner of the screen. It expands into a full chat interface when activated.

Unread Badge with Floaty Widget with Provider

<fogbender-provider>
  <fogbender-config .token="${yourTokenObject}"> </fogbender-config>
  <fogbender-is-configured>
    <template data-is-configured>
      <fogbender-headless-widget></fogbender-headless-widget>
      <fogbender-unread-badge></fogbender-unread-badge>
      <fogbender-floaty-widget></fogbender-floaty-widget>
    </template>
  </fogbender-is-configured>
</fogbender-provider>

Unread Badge: A visual indicator that can be placed anywhere on a web page to notify users of unread support messages. Combined with a Floaty Widget, it alerts users while maintaining a clean interface.

Token Format

Each widget expects a token object that represents the end user and their organization/account:

const token = {
  widgetId: "your-widget-id",
  customerId: "your-user-account-id", // your user's customer/account/org ID
  customerName: "User's Organization Name", // your user's org/account name
  userId: "user-123",
  userEmail: "[email protected]",
  userJWT: "generated-server-side-jwt", // see https://fogbender.com/admin/-/-/settings/embed
  userName: "Jane Doe",
  userAvatarUrl: "https://example.com/avatar.png", // optional
};

Demo

https://codesandbox.io/p/sandbox/github/fogbender/fogbender-oss/tree/main/packages/fogbender-element/

License

MIT