New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

feedback-vos

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feedback-vos

A beautiful feedback widget for Next.js with GitHub Issues integration

latest
Source
npmnpm
Version
1.0.54
Version published
Maintainers
1
Created
Source

Feedback Vos

A beautiful, customizable feedback widget for Next.js applications with built-in GitHub Issues integration.

  • 📦 NPM Package
  • 🐙 GitHub Repository
  • 🎨 Live Demo

Features

  • 🎨 Modern and responsive design with dark/light theme support
  • 📸 Screenshot functionality
  • 🎯 Three feedback types: Bug, Idea, Other
  • ⚡ Built for Next.js 14+ / 16+ and React 18+ (JSX/TSX compatible)
  • 📦 Zero-config styling (Tailwind not required) - styles are pre-built and isolated
  • 🔌 Automatic GitHub Issues creation

Installation

npm install feedback-vos

2. Import Styles

Add the styles to your root layout (app/layout.tsx) or global CSS:

import 'feedback-vos/styles'

Quick Start

Since the Widget component requires client-side features, you need to create a client component wrapper.

Step 1: Create a client component wrapper:

// app/components/FeedbackWidget.tsx
'use client'

import { Widget } from 'feedback-vos'
import 'feedback-vos/styles'

export default function FeedbackWidget() {
  return (
    <Widget
      integration="github"
      githubConfig={{
        token: process.env.NEXT_PUBLIC_GITHUB_TOKEN!,
        owner: process.env.NEXT_PUBLIC_GITHUB_OWNER!,
        repo: process.env.NEXT_PUBLIC_GITHUB_REPO!,
      }}
      position={process.env.NEXT_PUBLIC_FEEDBACK_POSITION as 'bottom-right' | 'bottom-left' | undefined}
      language={process.env.NEXT_PUBLIC_FEEDBACK_LANG as 'en' | 'nl' | undefined}
      theme={process.env.NEXT_PUBLIC_FEEDBACK_THEME as 'light' | 'dark' | undefined}
    />
  )
}

Important:

  • The 'use client' directive must be at the very top of the file (before any imports)
  • Both imports (Widget and 'feedback-vos/styles') are required
  • Make sure the file is saved and your dev server is restarted after creating this component

Step 2: Use the wrapper in your layout:

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

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        {children}
        <FeedbackWidget />
      </body>
    </html>
  )
}

Configuration

GitHub Setup

  • Create a GitHub Personal Access Token at https://github.com/settings/tokens with repo (private) or public_repo (public) scope and issue permissions
  • Add to .env.local:
    NEXT_PUBLIC_GITHUB_TOKEN=your_github_token_here
    NEXT_PUBLIC_GITHUB_OWNER=your-username
    NEXT_PUBLIC_GITHUB_REPO=your-repo-name
    NEXT_PUBLIC_FEEDBACK_POSITION=bottom-right  # optional: bottom-left, top-right, top-left
    NEXT_PUBLIC_FEEDBACK_LANG=nl  # optional: 'nl' for Dutch, 'en' for English (default)
    NEXT_PUBLIC_FEEDBACK_THEME=light
    NEXT_PUBLIC_FEEDBACK_ENABLED=true  # optional: set to 'false' to disable widget (default: 'true')
    

Important: owner and repo are case-sensitive. Ensure Issues are enabled in your repository.

Environment-Specific Configuration

You can control widget visibility per environment using NEXT_PUBLIC_FEEDBACK_ENABLED:

# Production - disable widget
NEXT_PUBLIC_FEEDBACK_ENABLED=false

# Staging - enable widget
NEXT_PUBLIC_FEEDBACK_ENABLED=true

Note: The widget is enabled by default if NEXT_PUBLIC_FEEDBACK_ENABLED is not set, ensuring backward compatibility.

API Reference

interface WidgetProps {
  integration: 'github';
  githubConfig: {
    token: string;
    owner: string;
    repo: string;
    screenshotPath?: string; // default: '.feedback-vos'
  };
  position?: 'bottom-right' | 'bottom-left'; // or use NEXT_PUBLIC_FEEDBACK_POSITION env var
  language?: 'en' | 'nl'; // defaults to 'en', or use NEXT_PUBLIC_FEEDBACK_LANG env var
  theme?: 'light' | 'dark'; // defaults to 'dark', or use NEXT_PUBLIC_FEEDBACK_THEME env var
}

How It Works

When feedback is submitted:

  • Feedback type and comment are captured
  • Screenshots are compressed and uploaded to .feedback-vos/ in your repo
  • A GitHub issue is created with labels feedback and the feedback type

Note: Labels must exist in your repository. Screenshots are stored in your repo (no size limits).

Troubleshooting

Using with non-Tailwind Projects

This plugin is designed to be isolated and work within any project, regardless of whether it uses Tailwind CSS or not.

  • CSS Isolation: The plugin's CSS is scoped to [data-feedback-widget] and does not include Tailwind's global preflight resets, so it won't affect your existing site's styles.
  • Global Styles: You can safely import feedback-vos/styles (or dist/styles.css) in your global CSS file or root layout without worrying about side effects.

Widget Not Visible (Troubleshooting)

The widget uses inline styles to ensure it's always visible, even with CSS conflicts. If the widget is still not showing up, check the following:

  • Verify the client component wrapper is created correctly:

    • Ensure 'use client' directive is at the top of your FeedbackWidget.tsx
    • Verify the component is imported and used in layout.tsx
  • Check environment variables:

    • Ensure all NEXT_PUBLIC_* variables are in .env.local (not .env)
    • Restart your Next.js dev server after adding/changing environment variables
    • Verify NEXT_PUBLIC_FEEDBACK_ENABLED is not set to 'false' or '0'
  • Verify styles are imported:

    • Ensure import 'feedback-vos/styles' is in your FeedbackWidget.tsx
    • Check browser console for CSS loading errors
  • Check for CSS conflicts:

    • The widget uses z-50 for positioning - ensure no other styles override this

    • Verify Tailwind CSS is properly configured in your project

    • Widget outside viewport or not visible: If the widget appears outside the screen or is not visible, add this CSS to your global stylesheet (e.g., globals.css):

      [data-feedback-widget="true"] {
        position: fixed !important;
        bottom: 1rem !important;
        right: 1rem !important;
        z-index: 9999 !important;
      }
      

      This ensures the widget is always visible regardless of CSS conflicts or parent container transforms.

  • Debug in browser console:

    // Check if widget element exists
    document.querySelector('[data-feedback-widget="true"]')
    
    // Check environment variable (client-side)
    console.log(process.env.NEXT_PUBLIC_FEEDBACK_ENABLED)
    
  • Common mistakes:

    • ❌ Forgetting to add 'use client' directive
    • ❌ Not importing 'feedback-vos/styles'
    • ❌ Using .env instead of .env.local for environment variables
    • ❌ Not restarting the dev server after adding environment variables
    • ❌ Importing Widget directly in layout.tsx instead of using the wrapper component

GitHub Integration Issues

  • 404: Check repository exists, case-sensitive owner/repo, token access, Issues enabled
  • 401: Invalid/expired token or missing scope
  • 403: No issue permissions, Issues disabled, or rate limit exceeded

Requirements

  • Next.js 14+ or 16+
  • React 18+ or 19+

License

MIT License

Vossen Design

Keywords

feedback

FAQs

Package last updated on 31 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts