Documentation Index
Fetch the complete documentation index at: https://feedbackfun.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Install
npm install @feedbackfun/js
Basic usage
Import and initialize the widget in your app’s entry point:
import FeedbackfunWidget from '@feedbackfun/js';
import '@feedbackfun/js/dist/feedbackfun-widget.min.css';
const widget = new FeedbackfunWidget('YOUR_API_KEY', 'https://feedbackfun.com', {
// optional config
});
Looking for framework-specific examples? See the React, Next.js, and Vue guides.
Constructor
new FeedbackfunWidget(
apiKey: string,
apiUrl?: string, // default: "https://feedbackfun.com"
config?: WidgetConfig
)
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Your project API key |
apiUrl | string | No | API base URL (default: https://feedbackfun.com) |
config | WidgetConfig | No | Widget configuration options — see Configuration |
TypeScript support
@feedbackfun/js ships with full TypeScript declarations:
import FeedbackfunWidget, { WidgetConfig, UserConfig } from '@feedbackfun/js';
const config: WidgetConfig = {
primaryColor: '#6366f1',
displayMode: 'popover',
user: {
id: 'user_123',
email: 'user@example.com',
name: 'Jane Doe',
},
};
const widget = new FeedbackfunWidget('YOUR_API_KEY', undefined, config);
Next steps
Configuration
See all available config options.
User identification
Link feedback to real user accounts.