Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (freedback) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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.
Features
- Instantly copy a customizable feedback widget into your Next.js project
- Uses your own shadcn/ui components for seamless design
- Stores feedback in your own Supabase database via secure API routes
- Automatic detection of App Router vs Pages Router
- You own your data, no third-party scripts or external dependencies
Requirements
- Next.js 13+
- React 18+
- Tailwind CSS
- shadcn/ui (Dialog, Button, Input, Label, Textarea)
- Supabase project
Installation & Usage
Quick Start (Recommended)
npx freedback@latest initOr install globally
npm install -g freedback
freedback initWhat does it do?
- Checks your Next.js project for required dependencies and shadcn/ui components
- Copies the feedback widget code into
components/freedback - Creates secure API routes for feedback submission (supports both App Router and Pages Router)
- Sets up Supabase tables and policies
- Configures your project for smooth integration
Architecture
- Widget → calls
/api/feedbackendpoint - API Route → securely stores feedback in your Supabase database
- Server-side → keeps credentials secure and enables future features
Customization
- The widget code is yours—edit
components/freedback/index.tsxas you like - Uses your shadcn/ui components for full design control