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

feedchat

v0.1.1

Published

Framework-agnostic feedback widget Web Component. Collects feedback and emits a typed browser event — no backend required.

Readme

Feedchat

Framework-agnostic feedback widget as a Web Component. Users submit feedback in a sticky panel; your app receives a typed feedchat:submit browser event. No database, API, accounts, or hosted infrastructure.

Install

npm install feedchat
# or
pnpm add feedchat

Usage

<script type="module">
  import 'feedchat'

  const widget = document.querySelector('feedchat-widget')
  widget.addEventListener('feedchat:submit', (event) => {
    const { message, sentiment, images, context, meta } = event.detail
    // Send to your API, analytics, email webhook, etc.
    console.log({ message, sentiment, images, context, meta })
  })
</script>

<feedchat-widget
  label="Send feedback"
  user-id="u_123"
  app-version="1.4.0"
  data-plan="pro"
></feedchat-widget>

Works in any framework that can render custom elements (React, Vue, Svelte, plain HTML).

| Attribute | Description | | --- | --- | | label | Launcher button text (default: Feedback) | | user-id | Optional; included in submit meta | | app-version | Optional; included in submit meta | | data-* | Any data-* attributes are mirrored into submit meta |

Event payload

type FeedchatSentiment = 'sad' | 'neutral' | 'happy'

interface FeedchatSubmitDetail {
  message: string
  sentiment: FeedchatSentiment
  images: File[]
  context: {
    url: string
    title: string
    userAgent: string
    timestamp: string
    viewport: { width: number; height: number }
  }
  meta?: Record<string, string>
}
  • message — trimmed text from the composer
  • sentiment — required; no default until the user picks sad / neutral / happy
  • imagesFile objects from the attach control (not base64)
  • context — page URL, title, user agent, ISO timestamp, viewport
  • metauser-id, app-version, and any data-* attributes on the element

Submit stays disabled until a sentiment is chosen and there is a non-empty message or at least one image.

Theming

Override CSS variables on the element:

feedchat-widget {
  --feedchat-accent: #0c6e6b;
  --feedchat-surface: #f7fafb;
  --feedchat-panel: #ffffff;
  --feedchat-border: #d5e0e3;
  --feedchat-text: #1a2b2e;
  --feedchat-muted: #5c7277;
  --feedchat-font: 'Segoe UI', 'Helvetica Neue', ui-sans-serif, system-ui, sans-serif;

  /* Launcher button */
  --feedchat-launcher-bg: #000;
  --feedchat-launcher-bg-hover: #111;
  --feedchat-launcher-color: #fff;
  --feedchat-launcher-radius: 999px;
}

Local demo

pnpm install
pnpm dev

License

MIT