Adds a mux-video collection to the Payload admin for uploading videos directly to Mux and managing them. Videos deleted in Payload are removed from Mux and the reverse, synced through a webhook endpoint the plugin registers. Requires Mux API tokens and a webhook secret, plus JWT keys for signed playback. Works with the Mux Player React component on the frontend.
Brings Mux Video to PayloadCMS.
Installation
npm i @oversightstudio/mux-video84
Stars
9
Forks
2
Open Issues
1 months ago
Last Updated
3.6k
Weekly Downloads
v1.4.1
npm Version
53.3 KB
Unpacked Size
2
Dependencies
84+3 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 84 |
| Dec 4, 2026 | 84 |
| Dec 3, 2026 | 84 |
| Dec 2, 2026 | 84 |
| Dec 1, 2026 | 84 |
| Nov 30, 2026 | 84 |
| Nov 29, 2026 | 84 |
| Nov 28, 2026 | 84 |
| Nov 27, 2026 | 84 |
| Nov 26, 2026 | 84 |
| Nov 25, 2026 | 84 |
| Nov 24, 2026 | 84 |
| Nov 23, 2026 | 84 |
| Nov 22, 2026 | 84 |
| Nov 21, 2026 | 84 |
| Nov 20, 2026 | 84 |
| Nov 19, 2026 | 84 |
| Nov 18, 2026 | 84 |
| Nov 17, 2026 | 84 |
| Nov 16, 2026 | 84 |
| Nov 15, 2026 | 84 |
| Nov 14, 2026 | 84 |
| Nov 13, 2026 | 84 |
| Nov 12, 2026 | 84 |
| Nov 11, 2026 | 84 |
| Nov 10, 2026 | 84 |
| Nov 9, 2026 | 84 |
| Nov 8, 2026 | 84 |
| Nov 7, 2026 | 84 |
| Nov 6, 2026 | 84 |
| Nov 5, 2026 | 84 |
| Nov 4, 2026 | 84 |
| Nov 3, 2026 | 83 |
| Nov 2, 2026 | 83 |
| Nov 1, 2026 | 83 |
| Oct 31, 2026 | 83 |
| Oct 30, 2026 | 83 |
| Oct 29, 2026 | 83 |
| Oct 28, 2026 | 83 |
| Oct 27, 2026 | 83 |
| Oct 26, 2026 | 83 |
| Oct 25, 2026 | 83 |
| Oct 24, 2026 | 83 |
| Oct 23, 2026 | 83 |
| Oct 22, 2026 | 83 |
| Oct 21, 2026 | 83 |
| Oct 20, 2026 | 83 |
| Oct 19, 2026 | 83 |
| Oct 18, 2026 | 83 |
| Oct 17, 2026 | 83 |
| Oct 16, 2026 | 83 |
| Oct 15, 2026 | 83 |
| Oct 14, 2026 | 83 |
| Oct 13, 2026 | 83 |
| Oct 12, 2026 | 83 |
| Oct 11, 2026 | 83 |
| Oct 10, 2026 | 83 |
| Oct 9, 2026 | 82 |
| Oct 8, 2026 | 82 |
| Oct 7, 2026 | 82 |
| Oct 6, 2026 | 82 |
| Oct 5, 2026 | 82 |
| Oct 4, 2026 | 82 |
| Oct 3, 2026 | 82 |
| Oct 2, 2026 | 82 |
| Oct 1, 2026 | 82 |
| Sep 30, 2026 | 81 |
| Sep 29, 2026 | 81 |
| Sep 28, 2026 | 81 |
| Sep 27, 2026 | 81 |
| Sep 26, 2026 | 81 |
| Sep 25, 2026 | 81 |
| Sep 24, 2026 | 81 |
| Sep 23, 2026 | 81 |
| Sep 22, 2026 | 81 |
| Sep 21, 2026 | 81 |
| Sep 20, 2026 | 81 |
| Sep 19, 2026 | 81 |
| Sep 18, 2026 | 81 |
| Sep 17, 2026 | 81 |
| Sep 16, 2026 | 81 |
| Sep 15, 2026 | 81 |
| Sep 14, 2026 | 81 |
| Sep 13, 2026 | 81 |
| Sep 12, 2026 | 81 |
| Sep 11, 2026 | 81 |
| Sep 10, 2026 | 81 |
| Sep 9, 2026 | 81 |
| Sep 8, 2026 | 81 |
| Sep 7, 2026 | 81 |
| Sep 6, 2026 | 81 |
Shared by 3 plugins in oversightstudio/payload-plugins.
2.6K−5K since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 2,601 |
| Dec 4, 2026 | 2,345 |
| Dec 3, 2026 | 2,564 |
| Dec 2, 2026 | 3,281 |
| Dec 1, 2026 | 3,319 |
| Nov 30, 2026 | 3,424 |
| Nov 29, 2026 | 5,020 |
| Nov 28, 2026 | 6,362 |
| Nov 27, 2026 | 7,602 |
| Nov 26, 2026 | 8,770 |
| Nov 25, 2026 | 9,453 |
| Nov 24, 2026 | 9,561 |
| Nov 23, 2026 | 9,713 |
| Nov 22, 2026 | 9,185 |
| Nov 21, 2026 | 9,634 |
| Nov 20, 2026 | 9,012 |
| Nov 19, 2026 | 8,034 |
| Nov 18, 2026 | 7,146 |
| Nov 17, 2026 | 7,176 |
| Nov 16, 2026 | 7,046 |
| Nov 15, 2026 | 6,769 |
| Nov 14, 2026 | 5,685 |
| Nov 13, 2026 | 5,861 |
| Nov 12, 2026 | 5,891 |
| Nov 11, 2026 | 6,102 |
| Nov 10, 2026 | 6,001 |
| Nov 9, 2026 | 6,180 |
| Nov 8, 2026 | 7,045 |
| Nov 7, 2026 | 7,878 |
| Nov 6, 2026 | 8,808 |
| Nov 5, 2026 | 9,459 |
| Nov 4, 2026 | 8,966 |
| Nov 3, 2026 | 8,962 |
| Nov 2, 2026 | 8,760 |
| Nov 1, 2026 | 8,017 |
| Oct 31, 2026 | 7,423 |
| Oct 30, 2026 | 6,404 |
| Oct 29, 2026 | 4,645 |
| Oct 28, 2026 | 3,822 |
| Oct 27, 2026 | 3,899 |
| Oct 26, 2026 | 4,060 |
| Oct 25, 2026 | 4,417 |
| Oct 24, 2026 | 4,459 |
| Oct 23, 2026 | 3,309 |
| Oct 22, 2026 | 4,648 |
| Oct 21, 2026 | 5,308 |
| Oct 20, 2026 | 5,403 |
| Oct 19, 2026 | 5,293 |
| Oct 18, 2026 | 5,040 |
| Oct 17, 2026 | 5,100 |
| Oct 16, 2026 | 6,109 |
| Oct 15, 2026 | 6,152 |
| Oct 14, 2026 | 6,407 |
| Oct 13, 2026 | 6,327 |
| Oct 12, 2026 | 6,322 |
| Oct 11, 2026 | 5,997 |
| Oct 10, 2026 | 5,998 |
| Oct 9, 2026 | 6,007 |
| Oct 8, 2026 | 5,894 |
| Oct 7, 2026 | 6,054 |
| Oct 6, 2026 | 6,017 |
| Oct 5, 2026 | 6,015 |
| Oct 4, 2026 | 5,899 |
| Oct 3, 2026 | 5,355 |
| Oct 2, 2026 | 5,308 |
| Oct 1, 2026 | 4,952 |
| Sep 30, 2026 | 4,980 |
| Sep 29, 2026 | 5,029 |
| Sep 28, 2026 | 5,068 |
| Sep 27, 2026 | 5,697 |
| Sep 26, 2026 | 6,228 |
| Sep 25, 2026 | 6,556 |
| Sep 24, 2026 | 7,310 |
| Sep 23, 2026 | 7,811 |
| Sep 22, 2026 | 7,846 |
| Sep 21, 2026 | 8,052 |
| Sep 20, 2026 | 8,419 |
| Sep 19, 2026 | 8,504 |
| Sep 18, 2026 | 8,633 |
| Sep 17, 2026 | 8,369 |
| Sep 16, 2026 | 7,418 |
| Sep 15, 2026 | 7,534 |
| Sep 14, 2026 | 7,428 |
| Sep 13, 2026 | 6,948 |
| Sep 12, 2026 | 7,324 |
| Sep 11, 2026 | 7,105 |
| Sep 10, 2026 | 6,914 |
| Sep 9, 2026 | 7,946 |
| Sep 8, 2026 | 7,766 |
| Sep 7, 2026 | 7,762 |
| Sep 6, 2026 | 7,618 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/932147916-mux-video)<a href="https://payloaddirectory.dev/plugins/932147916-mux-video"><img src="https://payloaddirectory.dev/badge/932147916-mux-video.svg" alt="Payload Directory"></a>README
pnpm add @oversightstudio/mux-video @mux/mux-player-react
This plugin brings Mux Video to Payload! It creates a “Videos” collection within the admin panel, making it simple to upload videos directly to Mux and manage them.
Features include:

There are two possible setups for this plugin: The public setup, and the signed URLs setup. The main difference between the two is that the signed URLs setup requires setting up a little extra configuration, but that's about it.
To get started, you’ll need to generate your MUX tokens and secrets from the MUX Dashboard. When configuring the webhook, set the URL to the automatically generated API endpoint provided by this plugin at /api/mux/webhook. If you have set a custom API route in Payload config via routes.api, the API endpoint will be <your_custom_api_route>/mux/webhook.
import { buildConfig } from 'payload'
import { muxVideoPlugin } from '@oversightstudio/mux-video'
export default buildConfig({
plugins: [
muxVideoPlugin({
enabled: true,
initSettings: {
tokenId: process.env.MUX_TOKEN_ID || '',
tokenSecret: process.env.MUX_TOKEN_SECRET || '',
webhookSecret: process.env.MUX_WEBHOOK_SIGNING_SECRET || '',
},
uploadSettings: {
cors_origin: process.env.NEXT_PUBLIC_SERVER_URL || 'http://localhost:3000',
},
}),
],
})
import { buildConfig } from 'payload'
import { muxVideoPlugin } from '@oversightstudio/mux-video'
export default buildConfig({
plugins: [
muxVideoPlugin({
enabled: true,
initSettings: {
tokenId: process.env.MUX_TOKEN_ID || '',
tokenSecret: process.env.MUX_TOKEN_SECRET || '',
webhookSecret: process.env.MUX_WEBHOOK_SIGNING_SECRET || '',
jwtSigningKey: process.env.MUX_JWT_KEY_ID || '',
jwtPrivateKey: process.env.MUX_JWT_KEY || '',
},
uploadSettings: {
cors_origin: process.env.NEXT_PUBLIC_SERVER_URL || 'http://localhost:3000',
new_asset_settings: {
playback_policy: ['signed'],
},
},
}),
],
})
| Option | Type | Default | Description |
|---|---|---|---|
enabled | boolean | Required | Whether the plugin is enabled. |
initSettings | MuxVideoInitSettings | Required | Initialization settings for the Mux implementation. |
uploadSettings | MuxVideoUploadSettings | Required | Upload settings for Mux video assets. |
extendCollection | string | Optional | The slug of an existing collection to extend with Mux video functionality. |
access | (request: PayloadRequest) => Promise<boolean> | boolean | Optional | An optional function to determine who can upload files. Should return a boolean or a Promise resolving to a boolean. |
signedUrlOptions | MuxVideoSignedUrlOptions | Optional | Options for signed URL generation. |
posterExtension | 'webp' | 'jpg' | 'png' | "png" | The image format to use for video posters. |
animatedGifExtension | 'gif' | 'webp' | "gif" | The image format to use for animated preview thumbnails. |
adminThumbnail | 'gif' | 'image' | 'none' | "gif" | Specifies the type of thumbnail to display for videos in the collection list view. |
reconcileOnInit | false | "createMissing" | "deleteStale" | "createMissingAndDeleteStale" | false | Reconcile Payload entries with all Mux assets in the background after startup. Delete modes remove stale Payload entries only; they never delete Mux assets. |
autoCreateOnWebhook | boolean | false | If enabled, the Mux webhook will automatically create videos that are missing in Payload when webhooks are received from Mux. Useful for uploading videos directly in Mux and automatically backfilling them in Payload. |
initSettings Options| Option | Type | Default | Description |
|---|---|---|---|
tokenId | string | Required | The Mux token ID. |
tokenSecret | string | Required | The Mux token secret. |
webhookSecret | string | Required | The secret used to validate Mux webhooks. |
jwtSigningKey | string | Optional | Optional JWT signing key, required for signed URL setup. |
jwtPrivateKey | string | Optional | Optional JWT private key, required for signed URL setup. |
uploadSettings Options| Option | Type | Default | Description |
|---|---|---|---|
cors_origin | string | Required | The required CORS origin for Mux. |
new_asset_settings | MuxVideoNewAssetSettings | Optional | Additional settings for creating assets in Mux. |
new_asset_settings Options| Option | Type | Default | Description |
|---|---|---|---|
playback_policy | `Array<'public' | 'signed'>` | public |
signedUrlOptions Options| Option | Type | Default | Description |
|---|---|---|---|
expiration | string | "1d" | Expiration time for signed URLs. Default is "1d". |
This is the collection generated by the plugin with the mux-video slug.
| Field | Type | Read-Only | Description |
|---|---|---|---|
title | text | No | A unique title for this video that will help you identify it later. |
assetId | text | Yes | |
duration | number | Yes | |
posterTimestamp | number | No | A timestamp (in seconds) from the video to be used as the poster image. When unset, defaults to the middle of the video. |
aspectRatio | text | Yes | |
maxWidth | number | Yes | |
maxHeight | number | Yes | |
playbackOptions | array | Yes |
playbackOptions Fields| Field | Type | Read-Only | Description |
|---|---|---|---|
playbackId | text | Yes | |
playbackPolicy | select | Yes | Options: signed, public |
playbackUrl | text (virtual) | Yes | |
posterUrl | text (virtual) | Yes |
import { CollectionConfig } from 'payload'
export const ExampleCollection: CollectionConfig = {
slug: 'example',
fields: [
// To link videos to other collection, use the `relationship` field type
{
name: 'video',
label: 'Preview Video',
type: 'relationship',
relationTo: 'mux-video',
},
],
}
import config from '@/payload.config'
import { getPayload } from 'payload'
import MuxPlayer from '@mux/mux-player-react'
async function Page() {
const payload = await getPayload({ config })
const video = await payload.findByID({
collection: 'mux-video',
id: 'example',
})
return (
<MuxPlayer
// Using playback id
playbackId={video.playbackOptions![0].playbackId!}
// Or use the playback URL
src={video.playbackOptions![0].playbackUrl!}
// Poster
poster={video.playbackOptions![0].posterUrl!}
/>
)
}
export default Page
Topics
payload video streaming
Video upload, encoding status and playback for Payload using Cloudflare Stream, Mux or Bunny Stream
65961/wk0v3 v4
payload mux
Mux Video integration for Payload with a Videos collection that uploads directly to Mux
58133/wk18v3
payload media
Search stock images and videos from Unsplash, Pexels, Pixabay and Openverse inside the Payload admin
83900/wk8v4
payload plugin media preview
Preview images, video, audio, code, CSV and Office files in the Payload admin edit and list views
66632/wk14v4
mux video
Mux video upload and playback for Atomic Payload, wrapping the Oversight Studio Mux plugin
6443/wk37v3
payload video stream
Send video uploads from Payload upload collections to Cloudflare Stream and track processing status
5166/wk8v3