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

freedback

v0.1.59

Published

A free, self-hosted feedback widget for Next.js apps with multiple storage options and AI-powered insights

Readme

Freedback

A free, self-hosted feedback widget for Next.js apps. The CLI sets up everything you need to collect user feedback in your Next.js project using Supabase and shadcn/ui components.

Freedback Widget Demo

👉 Live Demo

Features

  • 🎨 Customizable widget - Instantly copy into your Next.js project
  • 🎯 Multiple modes - Button overlay or inline display
  • 💾 Flexible storage - Supabase database, email-only, or console logging
  • 📧 Email notifications - Optional email alerts via Resend
  • 🤖 AI-powered insights - Generate feedback summaries with OpenAI or Claude
  • 📊 Advanced filtering - View feedback by date, emoji, or custom criteria
  • 🛠️ Zero dependencies - Uses your own shadcn/ui components
  • 🏗️ Smart detection - Automatic App Router vs Pages Router support
  • 🔒 Privacy-first - You own your data, no third-party tracking

Requirements

  • Next.js 13+
  • React 18+
  • Tailwind CSS
  • shadcn/ui components (automatically installed if missing)

Installation & Usage

Quick Start

npx freedback@latest init

Or install globally

npm install -g freedback
freedback init

Storage Options

Choose how you want to handle feedback during setup:

🗄️ Supabase Database

  • Stores feedback in your Supabase database
  • Optional email notifications
  • Full CLI management with freedback list and freedback digest
  • Requirements: Supabase project

📧 Email Only

  • Sends feedback directly to your email
  • No database required
  • Requirements: Resend API key

🖥️ Console Only

  • Logs feedback to browser console
  • Perfect for development and testing
  • No external services required

CLI Commands

Initialize Freedback

freedback init

Interactive setup wizard that configures your project.

Freedback Init Setup

List Feedback

# Show recent feedback
freedback list

# Show last 20 entries
freedback list --limit 20

# Filter by date
freedback list --today
freedback list --week
freedback list --month
freedback list --since 2024-01-01

# Filter by emoji reaction
freedback list --emoji 😍

Freedback List Command

AI-Powered Digest

# Generate AI summary of recent feedback
freedback digest

# Analyze this week's feedback
freedback digest --week

# Analyze specific timeframe
freedback digest --since 2024-01-01

Supports OpenAI (GPT-4o-mini) and Anthropic (Claude 3 Haiku).

Freedback AI Digest

What does the setup do?

  1. Dependency Check - Verifies Next.js, React, Tailwind CSS
  2. Component Setup - Installs missing shadcn/ui components automatically
  3. Widget Customization - Interactive prompts for title, button text, etc.
  4. Storage Configuration - Choose and configure your preferred storage method
  5. Code Generation - Copies widget and API routes to your project
  6. Environment Setup - Creates/updates .env files with credentials

Usage in Your App

After setup, add the widget to any component:

import { Freedback } from '@/components/freedback';

// Basic usage (uses all defaults)
<Freedback />

// Button mode with custom text
<Freedback 
  buttonTitle="Send Feedback"
  title="How can we improve?"
/>

// Inline mode
<Freedback 
  mode="inline"
  title="Rate your experience"
/>

Customization

The widget code is completely yours! Edit components/freedback/index.tsx to:

  • Modify styling and layout
  • Add custom validation
  • Integrate with your design system
  • Add additional form fields

Architecture

  • Widget → calls your /api/feedback endpoint
  • API Route → handles storage (Supabase/Resend) and notifications
  • Server-side → keeps credentials secure and enables management features

Email Template

Includes beautiful HTML email templates with:

  • Professional design using system fonts
  • Comprehensive context (location, browser, viewport)
  • Clickable URLs and metadata
  • Consistent formatting with CLI output