npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vibly

v0.1.2

Published

A modern, customizable Video.js player with enhanced features and themes

Readme

✨ Features

Vibly is a fully customizable video player built on top of Video.js with enhanced features and a modern UI. It's designed to be easy to use while providing powerful customization options.

  • 📱 Responsive Design - Fluid layout that adapts to any screen size
  • 🎨 Customizable Themes - Multiple built-in themes with easy CSS customization
  • 📺 Streaming Support - Native HLS and DASH streaming with fallbacks
  • 🔌 Plugin Ecosystem - Works with all Video.js plugins
  • ♿ Accessibility - ARIA attributes and keyboard navigation
  • 🌐 Internationalization - Multi-language support
  • 📊 Analytics Integration - Track video engagement
  • 🔄 Framework Compatibility - Works with React, Vue, Angular, and more
  • 📱 Mobile-Friendly - Touch controls and fullscreen on mobile devices
  • 🔍 Quality Selection - Automatic and manual quality switching for adaptive streams
  • ⚡ Performance Optimized - Lightweight and fast loading

🚀 Quick Start

Installation

NPM

npm install vibly video.js
import videojs from 'video.js';
import 'video.js/dist/video-js.css';
import 'vibly/dist/vibly.css';
import Vibly from 'vibly';

CDN

<!-- Video.js CSS -->
<link href="https://unpkg.com/video.js/dist/video-js.min.css" rel="stylesheet">
<!-- Vibly CSS -->
<link href="https://unpkg.com/vibly/dist/vibly.css" rel="stylesheet">
<!-- Video.js & Vibly JS -->
<script src="https://unpkg.com/video.js/dist/video.min.js"></script>
<script src="https://unpkg.com/vibly/dist/vibly.min.js"></script>

Basic Usage

<video id="my-player" class="video-js vibly-theme-default" controls>
  <source src="https://example.com/video.mp4" type="video/mp4">
  <track kind="captions" src="https://example.com/captions-en.vtt" srclang="en" label="English" default>
</video>

<script>
  const player = videojs('my-player');
  player.vibly({
    theme: 'default',
    fluid: true,
    aspectRatio: '16:9',
    playbackRates: [0.5, 1, 1.5, 2]
  });
</script>

🎨 Themes

Vibly comes with multiple built-in themes:

  • Default - A clean, modern theme with blue accents
  • City - An urban theme with orange accents and square corners
  • Forest - A nature-inspired theme with green accents and rounded corners

To apply a theme:

player.vibly({
  theme: 'city' // 'default', 'city', or 'forest'
});

Or with CSS classes:

<video id="my-player" class="video-js vibly-theme-forest">
  <!-- ... -->
</video>

🔧 Configuration

Vibly accepts all Video.js options plus additional options:

player.vibly({
  // Theme options
  theme: 'default',

  // Video.js options
  fluid: true,
  aspectRatio: '16:9',
  autoplay: false,
  muted: false,
  loop: false,
  preload: 'auto',
  controls: true,

  // Playback options
  playbackRates: [0.5, 1, 1.5, 2],

  // Streaming options
  hls: {
    enabled: true,
    overrideNative: true,
    config: {}
  },
  dash: {
    enabled: true,
    overrideNative: true,
    config: {}
  },

  // Analytics options
  analytics: {
    enabled: false,
    trackingId: '',
    events: ['play', 'pause', 'ended', 'volumechange', 'fullscreenchange', 'error']
  },

  // Control bar configuration
  controlBar: {
    children: [
      'playToggle',
      'volumePanel',
      'currentTimeDisplay',
      'progressControl',
      'durationDisplay',
      'playbackRateMenuButton',
      'qualitySelector',
      'fullscreenToggle'
    ]
  }
});

🔌 Plugins

Vibly works with all Video.js plugins. Here are some recommended plugins:

Quality Selector

import 'videojs-hls-quality-selector';
import 'videojs-contrib-quality-levels';

player.vibly({
  plugins: {
    qualityLevels: {},
    hlsQualitySelector: {
      displayCurrentQuality: true
    }
  }
});

Hotkeys

import 'videojs-hotkeys';

player.vibly({
  plugins: {
    hotkeys: {
      volumeStep: 0.1,
      seekStep: 5
    }
  }
});

Analytics

import 'videojs-google-analytics';

player.vibly({
  plugins: {
    googleAnalytics: {
      trackingId: 'UA-XXXXX-Y'
    }
  }
});

🖥️ Framework Integration

React

import React, { useRef, useEffect } from 'react';
import videojs from 'video.js';
import 'video.js/dist/video-js.css';
import 'vibly/dist/vibly.css';
import 'vibly';

const VideoPlayer = () => {
  const videoRef = useRef(null);

  useEffect(() => {
    const player = videojs(videoRef.current, {
      controls: true,
      fluid: true
    });

    player.vibly({
      theme: 'default'
    });

    return () => {
      if (player) player.dispose();
    };
  }, []);

  return (
    <div data-vjs-player>
      <video ref={videoRef} className="video-js vibly-theme-default" />
    </div>
  );
};

export default VideoPlayer;

Vue

<template>
  <div data-vjs-player>
    <video ref="videoPlayer" class="video-js vibly-theme-default"></video>
  </div>
</template>

<script>
import 'video.js/dist/video-js.css';
import 'vibly/dist/vibly.css';
import 'vibly';

export default {
  mounted() {
    import('video.js').then(module => {
      const videojs = module.default;
      const player = videojs(this.$refs.videoPlayer, {
        controls: true,
        fluid: true
      });

      player.vibly({
        theme: 'default'
      });

      this.player = player;
    });
  },
  beforeUnmount() {
    if (this.player) {
      this.player.dispose();
    }
  }
};
</script>

📚 API Reference

Methods

player.vibly(options)

Initialize the Vibly plugin with options.

player.vibly().setTheme(theme)

Change the theme of the player.

player.vibly().setTheme('forest');

player.vibly().getOptions()

Get the current options.

const options = player.vibly().getOptions();

player.vibly().updateOptions(options)

Update options at runtime.

player.vibly().updateOptions({
  theme: 'city',
  playbackRates: [0.5, 1, 1.5, 2, 3]
});

Events

Vibly emits the following events:

player.on('vibly.ready', function() {
  console.log('Vibly player is ready');
});

player.on('vibly.themechange', function(event, theme) {
  console.log('Theme changed to:', theme);
});

📱 Mobile Support

Vibly is designed to work well on mobile devices:

  • Touch-friendly controls
  • Responsive layout
  • Inline playback on iOS (playsinline attribute)
  • Fullscreen support
  • Mobile-optimized UI

🌐 Browser Support

Vibly supports all modern browsers:

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)
  • iOS Safari (latest)
  • Android Chrome (latest)

🤝 Contributing

Contributions are welcome! Please check out our Contributing Guide for details.

📄 License

Vibly is MIT licensed.

🙏 Acknowledgements