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

@videojs/cli

v10.0.1

Published

Video.js 10 command line: version-matched installation instructions for coding agents

Readme

@videojs/cli

package-badge

The Video.js 10 command line. agents init prints version-matched installation instructions for a coding agent or for you to follow: the packages to install, the files to add, and the commands to run for your framework, installation method, player, skin, and media source. agents skills prints how to install the Video.js skill in your coding agent.

Usage

Run it without installing anything:

npx @videojs/cli agents init

Without selection flags, the command lists every option, the valid combinations, and the order to decide them in. Add flags to print one complete plan:

npx @videojs/cli agents init --framework react --media hls
npx @videojs/cli agents init --framework html --method shadcn --styling css
npx @videojs/cli agents init --framework html --method cdn --project existing --template none

Add --json for a structured document instead of Markdown, or --version to print the CLI version.

Each plan ends with a command that reproduces it with every choice spelled out. When you omit --framework, the command reads the nearest package.json: React, Next.js, TanStack Start, and React Router projects get React instructions, Vue and Nuxt projects get Vue, Svelte and SvelteKit projects get Svelte, and anything else gets plain HTML. React instructions install @videojs/react; HTML, Vue, and Svelte instructions install @videojs/html.

A global install (npm install --global @videojs/cli) adds the same commands as videojs agents init and videojs agents skills. The docs and config commands from earlier releases are deprecated: they print where to find installation instructions and docs.

Install the Video.js skill

npx @videojs/cli agents skills

Without flags, the command prints the install steps for Codex, Claude Code, VS Code, Cursor, and other coding agents through the open skills installer. Each section ends with the follow-up that loads the skill, such as starting a new session. Narrow or adjust the steps with:

  • --agent <ids>: a comma-separated list of codex, claude-code, vscode, cursor, and other. Pass it once.
  • --scope <scope>: user, project, or local. Adds --scope to the Claude Code marketplace and plugin commands; without it, Claude Code uses user.
  • --global: adds -g to the skills installer command so the skill is available in every project.
npx @videojs/cli agents skills --agent claude-code --scope project
npx @videojs/cli agents skills --agent codex,cursor
npx @videojs/cli agents skills --agent other --global --json

--json and --help work the same way as they do for agents init.

What it does not do

Both commands only print instructions. They never install packages or skills, run other CLIs, write files, prompt, or save preferences. The package is a single bundled file with no dependencies, so npx downloads it without the player packages it describes.

Versions

Package versions in the instructions match the CLI version. When the project already has a different @videojs/react or @videojs/html version, the plan says so. For a release that includes agents init, it shows the pinned command for that release, such as npx @videojs/[email protected] agents init …; for an older release it says to upgrade the project's Video.js packages instead.

When you omit --template, the command also reads the app setup from the nearest package.json (Next.js, TanStack Start, React Router, Astro, Nuxt, SvelteKit, Laravel, or Vite), or treats a directory with only an index.html as a plain HTML page.

Community

If you need help with anything related to Video.js 10, or if you'd like to casually chat with other members:

License

Apache-2.0