Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Top Commenters Widget for OBS

Widget Preview

A dynamic, customizable browser source widget for OBS Studio that displays and ranks top commenters in real-time with smooth animations.

Features ✨

  • 🏆 Real-time ranking of top commenters with gold/silver/bronze medals
  • 🔼 Visual indicators showing position changes (up/down arrows)
  • 💬 Displays comment counts with automatic formatting
  • 🎨 Fully customizable CSS for seamless integration with your stream theme
  • ⚡ Simulated live updates (can be connected to real API)
  • 🖥️ Optimized for OBS Browser Source

Installation & Setup 🛠️

Prerequisites

Quick Start

  1. Clone this repository:
git clone https://github.com/EchoBotSystem/PlsInteractBot-Widget.git
cd PlsInteractBot-Widget
  1. Install dependencies:
 npm install
  1. Run development server:
 npm run dev
  1. In OBS:
  • Add a new Browser Source
  • Set URL to http://localhost:3000
  • Set width to 800 and height to 600
  • Check "Custom CSS" option if you want to override styles

Connecting to a Real API

To connect the widget to a real-time data source via WebSocket, you need to set the VITE_TOP_COMMENTERS_WS_URL environment variable.

  1. Create a new file named .env in the root directory of the project.

  2. Add the WebSocket URL to this file in the following format:

    VITE_TOP_COMMENTERS_WS_URL="ws://your-websocket-server.com/path"
    

    Replace "ws://your-websocket-server.com/path" with the actual URL of your WebSocket server.

  3. Restart the development server (npm run dev) or rebuild for production (npm run build) after creating or modifying the .env file for the changes to take effect.

Production Build

npm run build

Serve the dist folder using any static file server.

Customization 🎨

CSS Styling

You can override any styles directly in OBS Browser Source properties:

/* Example customizations */
.top-commenters-widget {
  background: linear-gradient(to right, #1a1a2e, #16213e) !important;
}

.rank-1 {
  color: #ffd700 !important; /* Gold */
  text-shadow: 0 0 10px #ffd70080 !important;
}

.widget-header {
  background: rgba(10, 10, 35, 0.7) !important;
}

Troubleshooting 🚑

Widget not updating:

  • Ensure OBS Browser Source refresh is enabled
  • Check console for errors (right-click → Inspect in browser source)

Styling issues:

  • Use !important flag when overriding CSS in OBS
  • Verify your custom CSS syntax is correct

Support the Project 💖

If you find this widget useful, consider:

  • ⭐ Starring this repository
  • 🐛 Reporting issues
  • 💡 Suggesting new features

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages