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

shd-player

v2.0.0

Published

Video Player component with DASH tiled thumbnail support

Readme

shd-player

A high-performance React video player supporting HLS, DASH playback (with quality, audio track, and subtitle track selection), and professional seek-bar thumbnail hover preview (supporting WebVTT, JSON, and DASH manifest tiled thumbnails).

Installation

npm install shd-player

Modular Imports & Optional Dependencies

shd-player is designed to be completely modular to keep your bundle size as small as possible. The heavy streaming libraries (dashjs and hls.js) are configured as optional peer dependencies.

This means NPM will not force you to download them if you don't need them!

Scenario 1: Standard Video (.mp4)

If you only need to play standard MP4 videos, simply install shd-player and import VideoPlayer. Your bundle remains tiny.

import { VideoPlayer } from 'shd-player';

Scenario 2: HLS Streams (.m3u8)

If you need HLS support, manually install hls.js alongside the player:

npm install shd-player hls.js
import { HlsPlayer } from 'shd-player';

You get HLS support without downloading unnecessary DASH bloat.

Scenario 3: DASH Streams (.mpd)

If you need DASH support, manually install dashjs alongside the player:

npm install shd-player dashjs
import { DashPlayer } from 'shd-player';

You get DASH support without downloading unnecessary HLS bloat.

Usage

import React from 'react';
import { VideoPlayer, DashPlayer, HlsPlayer } from 'shd-player';
import 'shd-player/index.css';

function App() {
  return (
    // 1. For MP4/WebM videos:
    <VideoPlayer
      src="https://dash.akamaized.net/akamai/bbb_30fps/bbb_with_multiple_tiled_thumbnails.mpd"
      // log={false}
      // poster="https://example.com/poster.jpg"            // OR local: "/assets/poster.jpg"
      // thumbnails="https://example.com/thumbnails.vtt"    // OR local: "/assets/thumbnails.vtt"
      // subtitles={[
      //   { src: "https://example.com/eng.vtt", label: "English", default: true },
      //   { src: "https://example.com/spa.vtt", label: "Spanish" }
      // ]} 
      // audios={[
      //   { src: "https://example.com/audio1.mp4", label: "English Audio", default: true },
      //   { src: "https://example.com/audio2.mp4", label: "Director's Cut" }
      // ]} 
      // isFullscreen={false}
      // autoPlay={false}
    />

        // { <DashPlayer
        //   src="https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd"
        // />  }

        // <HlsPlayer
        //   src="http://sample.vodobox.com/planete_interdite/planete_interdite_alternate.m3u8"
        // />


        // {/<VideoPlayer
        //   src="https://media.w3.org/2010/05/sintel/trailer.mp4"
        // /> }


  );
}

export default App;

Props Reference

The <VideoPlayer> component accepts the following props:

| Prop | Type | Default | Description | | :--- | :--- | :--- | :--- | | src | string | Required | The source URL of the video. Supports DASH (.mpd), HLS (.m3u8), and progressive video formats (e.g. .mp4). | | poster | string | undefined | The URL of the poster image to display before the video starts playing. | | subtitles | array | [] | An array of subtitle track objects (e.g., [{ src: "/eng.vtt", label: "English", default: true }]). | | thumbnails | string | undefined | The URL of the external WebVTT (.vtt) or JSON file containing sprite sheet coordinates for seek-bar hover preview. | | audios | array | [] | An array of audio track objects (e.g., [{ src: "/audio.mp4", label: "Commentary" }]). | | isFullscreen | boolean | false | If set to true, the player will render in fullscreen style layout. | | autoPlay | boolean | false | Whether the video should automatically play when loaded (autoPlay muted by default). | | log | boolean | false | Whether to automatically log media loading errors ([SHD-Player] Video source failed to load...) and parsing details to the browser console. |