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

@strawbinary-io/api-video-strapi-5-plugin

v1.1.1

Published

A powerful Strapi plugin to easily manage your videos and integrate them in your project

Downloads

44

Readme

Strapi v5 – api.video plugin

A powerful Strapi plugin to easily manage your videos and integrate them in your project.

Core Contributor: Strawbinary
Follow @strawbinary

About this Plugin: This plugin is a fork of Strapi v4 - api.video uploader, originally developed by the api.video team under the MIT license.

This version updates the plugin for Strapi 5 and introduces several improvements.


Plugin UI Preview

✨ Features

  • Upload videos directly from your Strapi admin via file picker to api.video
  • Manage assets with a responsive grid and built-in pagination
  • Search your library by title or tags
  • Preview with the embedded api.video player (api.video-player-react)
  • Delete assets (removes on both Strapi and api.video sides)

⏳ Installation

This plugin is published on npm. You can install it with your preferred package manager—npm, yarn, or pnpm.

# Using npm (recommended)
npm install @strawbinary-io/api-video-strapi-5-plugin@latest

# Or with yarn
yarn add @strawbinary-io/api-video-strapi-5-plugin@latest

# Or with pnpm
pnpm add @strawbinary-io/api-video-strapi-5-plugin@latest

After installation, rebuild your Strapi admin:

npm run build
npm run develop

Once Strapi is up, the API.VIDEO plugin will in the sidebar.

🖐 Requirements

  • api.video
  • Node.js
    • Version: 20.x – 24.x
  • Strapi
    • Strapi v5 only (not compatible with v4 or earlier)

🔧 Configuration

Before using the plugin, you must supply your api.video API key in Strapi’s settings panel.

  1. In Strapi Admin, go to SettingsAPI.VIDEO Plugin.
  2. Enter your API key and click Save.

Content Security Policy

To allow thumbnails, embeds and the player to load correctly, update your config/middlewares.ts file with the following security entry:

export default [
  'strapi::logger',
  'strapi::errors',
  {
    name: 'strapi::security',
    config: {
      contentSecurityPolicy: {
        useDefaults: true,
        directives: {
          'connect-src': ["'self'", 'https:'],
          'img-src': ["'self'", 'data:', 'blob:', 'embed.api.video', 'cdn.api.video/vod/'],
          'script-src': ["'self'", "'unsafe-inline'", "'unsafe-eval'"],
          'frame-src': ["'self'", 'data:', 'blob:', 'embed.api.video'],
          upgradeInsecureRequests: null,
        },
      },
    },
  },
  'strapi::cors',
  'strapi::poweredBy',
  'strapi::query',
  'strapi::body',
  'strapi::session',
  'strapi::favicon',
  'strapi::public',
];

👤 Permissions

Configure fine-grained permissions under Roles & PermissionsPlugins.

💾 Metadata

By default, uploads carry an uploadSource metadata field set to "Strapi". This cannot be changed.

🔔 Webhook

The plugin exposes a webhook endpoint to update the video duration once encoding finishes.

  1. In the api.video Dashboard, create a webhook for the event video.encoding.quality.completed.
  2. Set the webhook URL to your Strapi instance (default Content API prefix): POST https://<your-strapi-host>/api/api-video-asset/webhook

When the webhook is received and verified, the plugin fetches the video status from api.video and updates the duration field for the matching asset in Strapi.

🧭 Migrations

This plugin runs one-time migrations during Strapi bootstrap. The migration state is stored in the Strapi plugin store so each migration runs only once per environment.

  • Storage key: migrations (plugin store for api-video-strapi-5-plugin)
  • State format: A map of migration IDs with timestamps and result metadata
  • Re-run a migration: Delete the entry from the plugin store (or remove the whole migrations key)

Current migrations

  • 2026-01-29-backfill-duration-from-status
    Backfills the duration field for existing videos by calling client.videos.getStatus(videoId) and reading metadata.duration from the status response.

🤝 Contributing

We welcome contributions, issues and feature requests!

📚 References