Adds a decks blocks field to chosen Payload collections, letting editors build slide-based decks with background images, headlines and subtext. It ships a block config and a client renderer built on Remotion for the frontend. Requires Payload 3.84 or newer and an upload collection with the slug media.
Deck blocks and renderers for Payload CMS
Installation
npm i payload-plugin-decks0
Stars
0
Forks
0
Open Issues
5 months ago
Last Updated
12
Weekly Downloads
v1.0.3
npm Version
105.4 KB
Unpacked Size
0
Dependencies
00 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 0 |
| Dec 4, 2026 | 0 |
| Dec 3, 2026 | 0 |
| Dec 2, 2026 | 0 |
| Dec 1, 2026 | 0 |
| Nov 30, 2026 | 0 |
| Nov 29, 2026 | 0 |
| Nov 28, 2026 | 0 |
| Nov 27, 2026 | 0 |
| Nov 26, 2026 | 0 |
| Nov 25, 2026 | 0 |
| Nov 24, 2026 | 0 |
| Nov 23, 2026 | 0 |
| Nov 22, 2026 | 0 |
| Nov 21, 2026 | 0 |
| Nov 20, 2026 | 0 |
| Nov 19, 2026 | 0 |
| Nov 18, 2026 | 0 |
| Nov 17, 2026 | 0 |
| Nov 16, 2026 | 0 |
| Nov 15, 2026 | 0 |
| Nov 14, 2026 | 0 |
| Nov 13, 2026 | 0 |
| Nov 12, 2026 | 0 |
| Nov 11, 2026 | 0 |
| Nov 10, 2026 | 0 |
| Nov 9, 2026 | 0 |
| Nov 8, 2026 | 0 |
| Nov 7, 2026 | 0 |
| Nov 6, 2026 | 0 |
| Nov 5, 2026 | 0 |
| Nov 4, 2026 | 0 |
| Nov 3, 2026 | 0 |
| Nov 2, 2026 | 0 |
| Nov 1, 2026 | 0 |
| Oct 31, 2026 | 0 |
| Oct 30, 2026 | 0 |
| Oct 29, 2026 | 0 |
| Oct 28, 2026 | 0 |
| Oct 27, 2026 | 0 |
| Oct 26, 2026 | 0 |
| Oct 25, 2026 | 0 |
| Oct 24, 2026 | 0 |
| Oct 23, 2026 | 0 |
| Oct 22, 2026 | 0 |
| Oct 21, 2026 | 0 |
| Oct 20, 2026 | 0 |
| Oct 19, 2026 | 0 |
| Oct 18, 2026 | 0 |
| Oct 17, 2026 | 0 |
| Oct 16, 2026 | 0 |
| Oct 15, 2026 | 0 |
| Oct 14, 2026 | 0 |
| Oct 13, 2026 | 0 |
| Oct 12, 2026 | 0 |
| Oct 11, 2026 | 0 |
| Oct 10, 2026 | 0 |
| Oct 9, 2026 | 0 |
| Oct 8, 2026 | 0 |
| Oct 7, 2026 | 0 |
| Oct 6, 2026 | 0 |
| Oct 5, 2026 | 0 |
| Oct 4, 2026 | 0 |
| Oct 3, 2026 | 0 |
| Oct 2, 2026 | 0 |
| Oct 1, 2026 | 0 |
| Sep 30, 2026 | 0 |
| Sep 29, 2026 | 0 |
| Sep 28, 2026 | 0 |
| Sep 27, 2026 | 0 |
| Sep 26, 2026 | 0 |
| Sep 25, 2026 | 0 |
| Sep 24, 2026 | 0 |
| Sep 23, 2026 | 0 |
| Sep 22, 2026 | 0 |
| Sep 21, 2026 | 0 |
| Sep 20, 2026 | 0 |
| Sep 19, 2026 | 0 |
| Sep 18, 2026 | 0 |
| Sep 17, 2026 | 0 |
| Sep 16, 2026 | 0 |
| Sep 15, 2026 | 0 |
| Sep 14, 2026 | 0 |
| Sep 13, 2026 | 0 |
| Sep 12, 2026 | 0 |
| Sep 11, 2026 | 0 |
| Sep 10, 2026 | 0 |
| Sep 9, 2026 | 0 |
| Sep 8, 2026 | 0 |
| Sep 7, 2026 | 0 |
| Sep 6, 2026 | 0 |
4−2 since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 4 |
| Dec 4, 2026 | 4 |
| Dec 3, 2026 | 4 |
| Dec 2, 2026 | 2 |
| Dec 1, 2026 | 7 |
| Nov 30, 2026 | 7 |
| Nov 29, 2026 | 6 |
| Nov 28, 2026 | 6 |
| Nov 27, 2026 | 6 |
| Nov 26, 2026 | 6 |
| Nov 25, 2026 | 7 |
| Nov 24, 2026 | 3 |
| Nov 23, 2026 | 3 |
| Nov 22, 2026 | 5 |
| Nov 21, 2026 | 5 |
| Nov 20, 2026 | 5 |
| Nov 19, 2026 | 6 |
| Nov 18, 2026 | 5 |
| Nov 17, 2026 | 4 |
| Nov 16, 2026 | 7 |
| Nov 15, 2026 | 8 |
| Nov 14, 2026 | 8 |
| Nov 13, 2026 | 11 |
| Nov 12, 2026 | 13 |
| Nov 11, 2026 | 15 |
| Nov 10, 2026 | 15 |
| Nov 9, 2026 | 13 |
| Nov 8, 2026 | 14 |
| Nov 7, 2026 | 27 |
| Nov 6, 2026 | 25 |
| Nov 5, 2026 | 23 |
| Nov 4, 2026 | 21 |
| Nov 3, 2026 | 21 |
| Nov 2, 2026 | 25 |
| Nov 1, 2026 | 24 |
| Oct 31, 2026 | 12 |
| Oct 30, 2026 | 15 |
| Oct 29, 2026 | 14 |
| Oct 28, 2026 | 14 |
| Oct 27, 2026 | 21 |
| Oct 26, 2026 | 18 |
| Oct 25, 2026 | 15 |
| Oct 24, 2026 | 16 |
| Oct 23, 2026 | 11 |
| Oct 22, 2026 | 15 |
| Oct 21, 2026 | 16 |
| Oct 20, 2026 | 11 |
| Oct 19, 2026 | 9 |
| Oct 18, 2026 | 10 |
| Oct 17, 2026 | 10 |
| Oct 16, 2026 | 11 |
| Oct 15, 2026 | 8 |
| Oct 14, 2026 | 7 |
| Oct 13, 2026 | 5 |
| Oct 12, 2026 | 5 |
| Oct 11, 2026 | 5 |
| Oct 10, 2026 | 3 |
| Oct 9, 2026 | 4 |
| Oct 8, 2026 | 7 |
| Oct 7, 2026 | 10 |
| Oct 6, 2026 | 11 |
| Oct 5, 2026 | 11 |
| Oct 4, 2026 | 10 |
| Oct 3, 2026 | 11 |
| Oct 2, 2026 | 20 |
| Oct 1, 2026 | 28 |
| Sep 30, 2026 | 25 |
| Sep 29, 2026 | 24 |
| Sep 28, 2026 | 24 |
| Sep 27, 2026 | 30 |
| Sep 26, 2026 | 32 |
| Sep 25, 2026 | 21 |
| Sep 24, 2026 | 9 |
| Sep 23, 2026 | 9 |
| Sep 22, 2026 | 12 |
| Sep 21, 2026 | 12 |
| Sep 20, 2026 | 7 |
| Sep 19, 2026 | 5 |
| Sep 18, 2026 | 9 |
| Sep 17, 2026 | 10 |
| Sep 16, 2026 | 11 |
| Sep 15, 2026 | 8 |
| Sep 14, 2026 | 10 |
| Sep 13, 2026 | 11 |
| Sep 12, 2026 | 13 |
| Sep 11, 2026 | 9 |
| Sep 10, 2026 | 8 |
| Sep 9, 2026 | 8 |
| Sep 8, 2026 | 8 |
| Sep 7, 2026 | 8 |
| Sep 6, 2026 | 6 |
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/1229200348-root)<a href="https://payloaddirectory.dev/plugins/1229200348-root"><img src="https://payloaddirectory.dev/badge/1229200348-root.svg" alt="Payload Directory"></a>README
payload-plugin-decks adds reusable deck blocks to Payload collections. Today it ships a decks block: a slide-based, Remotion-powered deck with background images, headlines, subtext, text positioning, transitions, autoplay, looping, and optional playback controls.
The plugin adds the editing fields to Payload. Your frontend decides where and how to render the saved deck blocks.
^3.84.0mediaThe decks block's image field is currently configured with relationTo: 'media', so your Payload app must define a media collection.
pnpm add payload-plugin-decks
The package includes its Remotion runtime dependencies:
@remotion/playerremotionAdd payloadDecks to your Payload config and choose the collections that should receive the decks field.
import { buildConfig } from 'payload'
import { payloadDecks } from 'payload-plugin-decks'
export default buildConfig({
collections: [
{
slug: 'pages',
fields: [
// your fields
],
},
{
slug: 'media',
upload: true,
fields: [],
},
],
plugins: [
payloadDecks({
collections: {
pages: true,
},
}),
],
})
This adds a decks blocks field to the configured collection. Editors can add one or more decks blocks inside that field.
type PayloadDecksConfig = {
collections?: Partial<Record<CollectionSlug, true>>
disabled?: boolean
fieldName?: string
}
| Option | Default | Description |
|---|---|---|
collections | undefined | Collections that should receive the decks blocks field. |
fieldName | 'decks' | Name of the blocks field added to each configured collection. |
disabled | false | Leaves schema additions in place but skips runtime plugin behavior. |
payloadDecks({
collections: {
pages: true,
posts: true,
},
fieldName: 'heroDecks',
})
If your collection already has a blocks field (for example a page layout builder), you usually do not want the payloadDecks() plugin — it would add a second, separate decks field disconnected from your existing one. Instead, import the DecksBlock block config and add it to the field you already manage, alongside your other blocks:
import { DecksBlock } from 'payload-plugin-decks'
export const Pages = {
slug: 'pages',
fields: [
{
name: 'layout',
type: 'blocks',
blocks: [
// ...your existing blocks
DecksBlock,
],
},
],
}
Editors then pick Decks as one block among the others in that field, and you render it from the same array using the client renderer (see Render Decks).
Use payloadDecks() when you want a brand-new, dedicated decks field added for you; use the DecksBlock config directly when decks should be one choice within a blocks field you already have.
The plugin does not automatically render decks in your frontend. Render the blocks from the field you added, usually inside your existing page or post block renderer.
import dynamic from 'next/dynamic'
import type { DecksBlockProps } from 'payload-plugin-decks'
const DecksBlock = dynamic(
() => import('payload-plugin-decks/client').then((mod) => mod.DecksBlock),
{ ssr: false },
)
type DecksBlockData = DecksBlockProps & {
blockType: 'decks'
id?: string
}
type DeckBlock = DecksBlockData
export function DecksRenderer({ decks = [] }: { decks?: DeckBlock[] }) {
return (
<>
{decks.map((deck, index) => {
switch (deck.blockType) {
case 'decks':
return <DecksBlock key={deck.id || index} {...deck} />
default:
return null
}
})}
</>
)
}
If you generate Payload types, prefer using the generated collection type for your renderer props.
Each decks block supports:
| Field | Description |
|---|---|
title | Optional internal reference for editors. |
fps | Video frame rate. Defaults to 30. |
durationPerSlide | Seconds each slide is displayed. Defaults to 3. |
transitionDuration | Fade transition duration in frames. Defaults to 15. |
backgroundColor | Composition background color. Defaults to #000000. |
autoPlay | Starts playback automatically. Defaults to true. |
loop | Loops playback. Defaults to true. |
showControls | Shows Remotion player controls. Defaults to false. |
slides | Ordered slide array. Requires at least one slide. |
Each slide supports:
| Field | Description |
|---|---|
image | Optional background image from the media collection. |
headline | Optional headline text. |
subtext | Optional supporting text. |
textColor | Text color. Defaults to #ffffff. |
textPosition | One of top-left, top-center, top-right, center-left, center, center-right, bottom-left, bottom-center, bottom-right. |
animationType | One of fadeIn, slideUp, slideDown, scaleIn, none. |
imageZoom | Enables a slow Ken Burns-style image zoom. Defaults to true. |
import { DecksBlock, payloadDecks } from 'payload-plugin-decks'
import { DecksBlock as DecksRenderer } from 'payload-plugin-decks/client'
| Export | Description |
|---|---|
payloadDecks | Payload plugin factory. |
DecksBlock from payload-plugin-decks | Payload block config for advanced composition. |
DecksBlock from payload-plugin-decks/client | Client renderer for saved decks block data. |
DecksBlockProps | Renderer prop type. |
DecksSlide | Slide prop type. |
normalizeDecksBlock | Normalizes saved Payload block data into the renderer interface. |
pnpm install
pnpm build
pnpm test:int
pnpm lint
The integration test uses mongodb-memory-server, so it needs permission to bind a local port in sandboxed environments.
mux video
Mux video upload and playback for Atomic Payload, wrapping the Oversight Studio Mux plugin
6443/wk37v3
images
On-demand Sharp image transforms with focal-point cropping, built-in LQIP placeholders and a favicons collection
6032/wk37v3
payload images
On-demand Sharp image transforms with focal-point cropping, placeholders and a responsive image component
5449/wk18v3
sirv payload
Use Sirv as a media source in the Payload admin and render assets on the frontend with @sirv/react
250v?
payload media
Search stock images and videos from Unsplash, Pexels, Pixabay and Openverse inside the Payload admin
83900/wk8v4
payloadcms plugin image optimizer
Client-side resize, ThumbHash blur placeholders, filename strategies and bulk regeneration on top of Payload's sharp…
79666/wk27v3