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

@criteo/video-player

v1.4.1

Published

Lightweight video player with ad support

Readme

Criteo video player

Purpose

This library aims at rendering ad videos with a vast file (either by content or by URL). You can import this library as a package or as a file. Both are provided in the examples

Usage

There are two examples in the examples/ folder of how to use the library. You could either install it with npm or you can directly include the bundled script file and css in an html file.

The package provides two APIs to render your videos.

  • From URL: criteoVideoPlayerFromUrl. The script will fetch the VAST file from the URL and afterwards display the video.
  • From content: criteoVideoPlayerFromContent. The script will use the passed file content (expecting a stringified XML) and afterwards display the video.

For each, you should provide a video element which should be an HTML element in which you want the video to be rendered.

Viewability measurement

To support viewability measurement, the IAB Open Measurement SDK (OM SDK) for Web requires two scripts:

  • omweb-v1.js – the OMID JS library for the web context.
  • omid-session-client-v1.js – used by integration partners to perform ad session activities in the JavaScript layer.

Per IAB requirements, each retailer must obtain their own build of these scripts from the IAB Tech Lab Tools Portal. This ensures the SDK is correctly registered to your organization and remains up to date with the official specification.

Steps to download your scripts:

  1. Log in or register at the IAB Tech Lab Tools Portal.
  2. Navigate to the Open Measurement SDK for Web section.
  3. Generate and download your OMSDK_<YourRetailerName> package.
  4. Host the downloaded files in your environment or reference them from your own CDN.

Integration Guide

Learn more in our Criteo-Owned Video Player Integration guide to integrate this video player into your website to run video ads in web apps.