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

feedinbox

v1.0.4

Published

React SDK for Feedinbox - Collect user feedback with a beautiful widget

Readme

Feedinbox React SDK

A beautiful, customizable feedback widget for React applications. Collect user feedback effortlessly with a sleek modal that integrates seamlessly into your app.

npm version License: MIT

Features

  • 🎨 Customizable - Colors, position, and appearance via dashboard
  • 📱 Responsive - Works on all screen sizes
  • Lightweight - Minimal bundle size
  • 🔒 TypeScript - Full type support included
  • 🎯 Categories - Bug reports, feature requests, questions, general feedback

Installation

# npm
npm install feedinbox

# yarn
yarn add feedinbox

# pnpm
pnpm add feedinbox

# bun
bun add feedinbox

Quick Start

1. Get Your Project Key

  1. Sign up at feedinbox.com
  2. Create a new project
  3. Copy your Project Key from the project settings

2. Add the Component

import { Feedinbox } from 'feedinbox';

function App() {
  return (
    <div>
      <h1>My App</h1>
      
      {/* Add the Feedinbox component */}
      <Feedinbox projectKey="your-project-key" />
    </div>
  );
}

export default App;

That's it! A feedback button will appear in the bottom-right corner of your app.

Usage Examples

Basic Usage

import { Feedinbox } from 'feedinbox';

function App() {
  return <Feedinbox projectKey="your-project-key" />;
}

With Custom Trigger Button

Use your own button or element to open the feedback modal:

import { Feedinbox } from 'feedinbox';

function App() {
  return (
    <Feedinbox 
      projectKey="your-project-key"
      trigger={
        <button className="my-custom-button">
          Give Feedback
        </button>
      }
    />
  );
}

With Callbacks

Handle submission success and errors:

import { Feedinbox } from 'feedinbox';

function App() {
  return (
    <Feedinbox 
      projectKey="your-project-key"
      onSubmit={(data) => {
        console.log('Feedback submitted:', data);
        // { message: "...", category: "bug", userEmail: "..." }
      }}
      onError={(error) => {
        console.error('Error submitting feedback:', error);
      }}
    />
  );
}

Next.js App Router

For Next.js 13+ with App Router, you can use it in any client component:

'use client';

import { Feedinbox } from 'feedinbox';

export default function FeedbackWidget() {
  return <Feedinbox projectKey="your-project-key" />;
}

Then import it in your layout or page:

// app/layout.tsx
import FeedbackWidget from './FeedbackWidget';

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        {children}
        <FeedbackWidget />
      </body>
    </html>
  );
}

Props

| Prop | Type | Required | Description | |------|------|----------|-------------| | projectKey | string | ✅ | Your Feedinbox project key | | apiUrl | string | ❌ | Custom API URL (default: https://feedinbox.com) | | trigger | ReactNode | ❌ | Custom trigger element to open the widget | | onSubmit | (data: FeedbackData) => void | ❌ | Callback when feedback is submitted | | onError | (error: Error) => void | ❌ | Callback when an error occurs |

FeedbackData Type

interface FeedbackData {
  message: string;
  category: 'general' | 'bug' | 'feature' | 'question';
  userEmail?: string;
}

Customization

All widget customization is done via the Feedinbox Dashboard:

  • Primary Color - Widget accent color
  • Position - bottom-right, bottom-left, top-right, top-left
  • Border Radius - Roundness of the widget
  • Header Text - Custom title for the widget
  • Show Email Field - Toggle email input visibility
  • Hide Branding - Remove "Powered by Feedinbox" (Pro feature)

Changes made in the dashboard are automatically reflected in your widget.

Requirements

  • React 17.0.0 or higher
  • React DOM 17.0.0 or higher

License

MIT © Feedinbox