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

@amitkuzi/feedback-widget

v0.1.0

Published

Storage-agnostic React feedback widget + admin inbox. Clients leave comments on any page; you collect them as tasks. Ships a Firestore adapter; bring your own backend.

Readme

@amitkuzi/feedback-widget

A tiny, storage-agnostic React feedback widget + admin inbox. Drop it into any app so clients/testers can leave comments on any page; you collect them as tasks.

  • <FeedbackWidget> — a floating button + form for reporters.
  • <FeedbackInbox> — an admin list to read items and mark them done.
  • Bring your own backend via a small FeedbackStore adapter. A Firestore adapter ships in the box; firebase is an optional peer dependency.
  • No CSS framework needed — styles are self-contained inline styles. RTL aware.

Install

npm install @amitkuzi/feedback-widget
# only if you use the Firestore adapter:
npm install firebase

Peer deps: react >=18, react-dom >=18, and (optional) firebase >=10.

Quick start (Firestore)

"use client";
import { useMemo } from "react";
import { FeedbackWidget } from "@amitkuzi/feedback-widget";
import { createFirestoreStore } from "@amitkuzi/feedback-widget/firestore";
import { db } from "@/lib/firebase"; // your own Firestore instance

export function Feedback() {
  const store = useMemo(
    () => createFirestoreStore({ db, collectionName: "feedback" }),
    []
  );
  return <FeedbackWidget store={store} project="my-app" />;
}

Admin inbox

"use client";
import { FeedbackInbox } from "@amitkuzi/feedback-widget";
import { createFirestoreStore } from "@amitkuzi/feedback-widget/firestore";
import { db } from "@/lib/firebase";

const store = createFirestoreStore({ db });
export default function Page() {
  // protect this route yourself (auth check / middleware)
  return <FeedbackInbox store={store} project="my-app" />;
}

Firestore security rules

match /feedback/{id} {
  allow create: if request.auth != null
    && request.resource.data.message is string
    && request.resource.data.message.size() > 0
    && request.resource.data.message.size() < 5000
    && request.resource.data.status == "open";
  allow read, update, delete: if request.auth != null
    && request.auth.token.email in ['[email protected]'];
}

Bring your own backend

Implement the FeedbackStore interface against anything (Supabase, REST, …):

import type { FeedbackStore } from "@amitkuzi/feedback-widget";

export function createRestStore(baseUrl: string): FeedbackStore {
  return {
    async submit(input) {
      const res = await fetch(`${baseUrl}/feedback`, {
        method: "POST",
        headers: { "content-type": "application/json" },
        body: JSON.stringify(input),
      });
      const { id } = await res.json();
      return id;
    },
    // optional: subscribe / list / update / remove for the inbox
  };
}

Only submit is required for the widget. <FeedbackInbox> additionally uses subscribe (or list) and update/remove.

Props

<FeedbackWidget>

| prop | type | default | notes | |---|---|---|---| | store | FeedbackStore | — | required | | project | string | — | tag so one store serves many apps | | reporter | { name?; email? } | — | prefill/attach reporter identity | | categories | string[] | — | shows a select when provided | | position | "bottom-right" \| "bottom-left" | "bottom-right" | | | dir | "ltr" \| "rtl" | auto from document.dir | | | enabled | boolean | true | set false to render nothing (env gating) | | metadata | Record<string, unknown> | — | extra fields on every submission | | buttonLabel / title | string | | UI copy | | onSubmitted | (id: string) => void | — | success callback |

<FeedbackInbox>

| prop | type | default | |---|---|---| | store | FeedbackStore | — | | project | string | — | | title | string | "Feedback" |

License

MIT