2.2 KiB
2.2 KiB
OBS Overlay Widget
A collection of highly customizable widgets for OBS Studio streaming and recording, built with Vue 3, TypeScript, and Vite.
Features
- Time and Date Display: Customizable formats for showing current time and date
- Text Display: Show fixed text or API-returned content with custom styling
- Image Display: Display local or remote images with customization options
- Split View Interface: Configuration panel on the left, real-time preview on the right
- Transparent Background: All widgets have transparent backgrounds suitable for OBS overlay
- URL Generation: Automatically generates sharable URLs with encoded configuration
- Pure Preview Mode: Open generated URLs to display only the widget with transparent background
Widget Types
- Clock Widget: Display current time with customizable format, style, and effects
- Date Widget: Show current date with customizable format, style, and effects
- Text Widget: Display text with customizable styles including gradients, shadows, and fonts
- Image Widget: Show images with customizable size, effects, and positioning
Usage
- Select a widget type from the dropdown
- Configure the widget using the control panel on the left
- See real-time preview on the right
- Copy the generated URL to use in OBS Studio as a Browser Source
Development
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
Troubleshooting
If you encounter TypeScript errors related to undefined properties, make sure that:
- All widget components handle possible undefined configuration properties
- Default values are provided for all configuration options
- Use proper null checking (e.g.,
props.config.property || defaultValue
)
Integration with OBS Studio
- Run this application on a web server or locally
- Configure your widget using the configuration interface
- Copy the generated URL
- In OBS Studio:
- Add a "Browser Source" to your scene
- Paste the URL into the Browser Source URL field
- Set width and height according to your needs
- Check "Shutdown source when not visible" for better performance