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

@internetarchive/ia-zendesk-help-widget

v0.3.0

Published

Internet Archive Zendesk Messenger launcher web component.

Downloads

840

Readme

<ia-zendesk-help-widget>

A Lit web component that lazily loads and opens the Zendesk Help widget on demand. The Zendesk snippet script is only fetched on the first button click, so it has zero impact on page load performance.

On viewports narrower than 767 px the "Help" label is hidden automatically via CSS, leaving just the icon.

Installation

npm install @internetarchive/ia-zendesk-help-widget

Usage

<script type="module">
  import '@internetarchive/ia-zendesk-help-widget';
</script>

<ia-zendesk-help-widget
  widgetKey="YOUR_ZENDESK_KEY"
></ia-zendesk-help-widget>

On the first click the component loads the Zendesk snippet via LazyLoaderService, waits for the window.zE API to initialise, then opens the messenger panel. Subsequent clicks open the panel directly — the script is never fetched twice.

Properties

| Property | Type | Default | Description | |---|---|---|---| | widgetKey | String | — | Zendesk account key from the ze-snippet URL. Required. |

Events

| Event | Description | |---|---| | zendeskHelpButtonClicked | Dispatched when the user clicks the Help button, before the widget opens. |

CSS custom properties

| Property | Default | Description | |---|---|---| | --button-background | #194880 | Button background colour. | | --button-color | #fff | Button text and icon colour. | | --icon-fill-color | var(--button-color) | SVG icon fill colour. | | --button-width | auto | Button width. | | --button-padding | 14px 20px | Button padding. | | --button-margin | 14px 20px | Margin between button and viewport edges. | | --button-top | auto | Distance from the top of the viewport. | | --button-bottom | 0 | Distance from the bottom of the viewport. | | --button-left | auto | Distance from the left of the viewport. | | --button-right | 0 | Distance from the right of the viewport. | | --button-z-index | 999998 | Stack order. | | --button-border-radius | 999rem | Border radius. | | --button-font-size | 14px | Font size. | | --button-font-weight | 700 | Font weight. |

Example — custom colours

<ia-zendesk-help-widget
  widgetKey="YOUR_KEY"
  style="
    --button-background: #e03b3b;
    --button-right: 20px;
    --button-bottom: 20px;
  "
></ia-zendesk-help-widget>

Development

npm install
npm start            # local dev server
npm test             # lint + unit tests
npm run test:watch   # watch mode
npm run format       # auto-fix lint and formatting

Publishing

Alpha / pre-release

npm version prerelease --preid=webdev-1234
npm publish --tag alpha

Production

git checkout -b vX.X.X
git pull --tags
npm version X.X.X
git push --tags
npm publish