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

@deck-io/feedback

v0.2.0

Published

Embeddable Deck feedback widgets for React apps. Collect in-product feedback into a Deck account via a publishable key.

Readme

@deck-io/feedback

Embeddable React feedback widgets that send submissions into a Deck account.

Standalone package (not part of the Deck monorepo). Publish from this directory.

Install (customers)

pnpm add @deck-io/feedback
# or
npm install @deck-io/feedback
# or
yarn add @deck-io/feedback

Peer dependencies: react and react-dom (>=18).

Quick start

import { DeckProvider, FeedbackDialog, ThumbsFeedback } from "@deck-io/feedback";

function App() {
  return (
    <DeckProvider
      publishableKey={process.env.NEXT_PUBLIC_DECK_PUBLISHABLE_KEY!}
      user={{ id: currentUser.id, email: currentUser.email, name: currentUser.name }}
    >
      <ProductUi />
    </DeckProvider>
  );
}

user.id must be the stable user identifier from your application. Deck uses it to link repeated widget submissions to the same canonical contact. Include email and name when available so Deck can match existing CRM/contact records.

URL metadata

By default, the SDK sends only origin + pathname as submission URL metadata. Query strings and hash fragments are excluded.

<DeckProvider publishableKey={pk} user={{ id: user.id }} urlCapture="path">
  {children}
</DeckProvider>

Server-side (Node / Next.js)

For Route Handlers, Server Actions, Express routes, or background workers, use the dedicated server entry — no React required:

import { createDeckFeedbackClient } from "@deck-io/feedback/server";

const deck = createDeckFeedbackClient({
  publishableKey: process.env.DECK_PUBLISHABLE_KEY!,
});

await deck.submit({
  user: { id: session.userId, email: session.email },
  submission: {
    widgetId: "wgt_...",
    sentiment: "negative",
    message: "Checkout API timeout",
    context: { endpoint: "/api/checkout" },
  },
  meta: {
    url: request.headers.get("referer") ?? undefined,
    userAgent: request.headers.get("user-agent") ?? undefined,
  },
});

Store the publishable key in a server-only env var (DECK_PUBLISHABLE_KEY), not NEXT_PUBLIC_*, when submitting from the server.

For low-level control, import submitFeedback directly from @deck-io/feedback/server and pass meta explicitly.

Develop / publish (maintainers)

cd ~/Desktop/Deck/deck-feedback
npm install
npm run verify:publish
npm publish --access public

Customer example app

cd examples/customer-app
npm install
npm run dev

Uses a local file:../.. install of this package (same layout as node_modules/@deck-io/feedback). After publish, change the dependency to @deck-io/feedback from npm.