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

wistia-s3-player

v1.2.3

Published

An alternative to a Wistia inline player.

Readme

Wistia S3 Player

npm version npm downloads License Build Status Vue 3 Video.js

A Video.js-based video player that mimics the Wistia player UI. Built with Vue 3.

Features

  • 🎬 Wistia-style video player controls
  • 🎨 Vue 3 Composition API
  • 📦 Drop-in replacement for Wistia embeds
  • 🎞️ Quality selector support
  • 🖼️ Sprite thumbnails
  • 📊 Built-in Google Analytics 4 (gtag) tracking
  • 🎯 Video chapter markers with timeline indicators
  • 🔔 Custom event bindings for playback tracking

Tracking & Events

The player includes a built-in trackingService that automatically tracks video playback events via Google Analytics 4 (gtag.js).

Tracked Events

| Event Name | Triggered When | |---|---| | wistia_play | Video starts playing | | wistia_seconds_played | Every 60 seconds of playback | | wistia_25_percent_played | 25% watched | | wistia_50_percent_played | 50% watched | | wistia_75_percent_played | 75% watched | | wistia_95_percent_played | 95% watched |

Custom Event Binding

Listen to the video-player-ready event to bind custom callbacks:

window.addEventListener("video-player-ready", (e) => {
  const watcher = e.detail;
  const hashId = watcher.getHashId();

  watcher.bind('play', () => {
    console.log('Video played:', hashId);
  });

  watcher.bind('end', () => {
    console.log('Video ended:', hashId);
  });

  watcher.bind('percentwatchedchanged', (percent, lastPercent) => {
    console.log(`Progress: ${percent}%`);
  });
});

Configure GA4 Measurement ID

Pass the MeasurementId prop when embedding:

<div class="wistia_embed wistia_async_YOUR_VIDEO_ID" data-measurement-id="G-XXXXXXX"></div>

Chapter Markers

The player automatically fetches and renders chapter markers from markers.json stored alongside the video assets on S3.

Markers Format

Place a markers.json file in the same directory as your video assets:

{
  "markers": [
    { "time": 0, "title": "Introduction" },
    { "time": 30, "title": "Getting Started" },
    { "time": 120, "title": "Advanced Features" }
  ]
}

Features

  • Visual markers on the progress bar with hover tooltips
  • Click any marker to seek to that timestamp
  • Chapters menu button in the control bar for navigation
  • Auto-fetched on video load from {baseURL}/{hashId}/markers.json

Custom Endpoint

Override the default S3 endpoint:

window.MEDIA_ENDPOINT = 'https://your-cdn.com/wistia-backup/media';

Development

# Install dependencies
yarn install

# Start dev server
yarn serve

# Production build
yarn build

# Build demo
yarn demo

# Release to npm (auto-version + build + publish)
yarn release

Project Structure

src/
├── main.js              # Entry point (init & render exports)
├── WistiaPlayer.vue     # Main player component
├── httpService.js       # HTTP service
├── trackingService.js   # Analytics tracking
├── plugins/             # Video.js plugins
├── style/               # SCSS styles
└── webpack/             # Custom webpack plugins

Requirements

  • Supports IE 11+, modern browsers
  • Built with Video.js 8.x and Vue 3.x

License

Apache-2.0