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

feedbackerr

v0.1.1

Published

Figma-style comment-mode feedback for any React app. Pluggable storage adapters, inline styles, zero UI dependencies.

Readme

feedbackerr

Figma-style "comment mode" feedback for any React app. Toggle on a mode where users can drop pins anywhere on the page, leave comments, and view them in a side panel.

The library is React-only with inline styles — no MUI, no CSS-in-JS, no external UI dependencies. Peer dependencies are react and react-dom (>=18).


Install

npm install feedbackerr
# or
pnpm add feedbackerr

Quick Start

import {
  CommentProvider,
  CommentSurface,
  CommentSidePanel,
  CommentFab,
} from "feedbackerr";

function App() {
  return (
    <CommentProvider author={{ name: "Jane Doe", organisation: "Acme" }}>
      <div style={{ display: "flex", height: "100vh", overflow: "hidden" }}>
        <CommentSidePanel side="left" />
        <div style={{ flex: 1, display: "flex", flexDirection: "column", overflow: "hidden" }}>
          <YourNavBar />
          <main style={{ flex: 1, overflowY: "auto" }}>
            <CommentSurface>
              <YourPageContent />
            </CommentSurface>
          </main>
        </div>
      </div>
      <CommentFab side="left" />
    </CommentProvider>
  );
}

By default comments are stored in localStorage — no backend needed to get started.


CSS requirements

feedbackerr uses position: fixed for the side panel and FAB. For the sidebar to anchor correctly to the left edge of the viewport, your app's root element must not have margin: auto or a constrained max-width.

If you're using a Vite or Create React App template, check your index.css or App.css for something like:

#root {
  max-width: 1280px;
  margin: 0 auto; /* ← remove this */
}

Replace it with:

#root {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

Storage Options

Option 1 — localStorage (zero backend)

import { CommentProvider, createLocalStorageAdapter } from "feedbackerr";

<CommentProvider
  author={{ name: "Jane" }}
  storage={createLocalStorageAdapter()}
>
  …
</CommentProvider>

Option 2 — Your own HTTP backend

import { CommentProvider, createHttpStorageAdapter } from "feedbackerr";

const storage = createHttpStorageAdapter({
  endpoint: "https://your-api.com/feedback",
  headers: { "x-api-key": "your-api-key" },
});

<CommentProvider author={{ name: "Jane" }} storage={storage}>
  …
</CommentProvider>

The adapter expects two endpoints:

  • GET <endpoint> → returns the full array of comments as JSON
  • PUT <endpoint> → receives the full array of comments as JSON and persists it

Minimal backend schema (Postgres)

create table feedback_comments (
  id   text primary key,
  data jsonb not null
);

Storing comments as jsonb means the table never needs migrating when the comment shape evolves.


CommentProvider Props

| Prop | Type | Required | Description | |---|---|---|---| | author | { name: string, organisation?: string } | ✅ | Who is leaving comments | | storage | StorageAdapter | — | Custom storage adapter (defaults to localStorage) | | storageKey | string | — | Override the localStorage key | | theme | PartialCommentTheme | — | Override the default theme | | urlTracking | UrlTrackingOptions | — | Options for URL tracking |


Publishing a New Version

# 1. Bump version
npm version patch   # or minor / major

# 2. Publish
npm publish

# 3. Push to GitHub
git push origin main --tags