Enhances the admin list view of media collections with justified, masonry, grid and the original list layouts. It adds a quick edit drawer, bulk selection with keyboard modifiers, and a lightbox for images, video and audio. It is configured through the plugins array and targets Payload 3.73 or later. It works in the All Media view but not in Folders.
A Payload CMS 3 plugin that enhances the Media List View with Grid, Masonry, and Lightbox views, including video previews.
Installation
npm i @sitebytom/payload-media-gallery29
Stars
3
Forks
2
Open Issues
10 months ago
Last Updated
2.2k
Weekly Downloads
v1.2.0
npm Version
233.0 KB
Unpacked Size
4
Dependencies
29+7 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 29 |
| Dec 4, 2026 | 29 |
| Dec 3, 2026 | 29 |
| Dec 2, 2026 | 29 |
| Dec 1, 2026 | 29 |
| Nov 30, 2026 | 29 |
| Nov 29, 2026 | 29 |
| Nov 28, 2026 | 29 |
| Nov 27, 2026 | 29 |
| Nov 26, 2026 | 29 |
| Nov 25, 2026 | 29 |
| Nov 24, 2026 | 29 |
| Nov 23, 2026 | 29 |
| Nov 22, 2026 | 29 |
| Nov 21, 2026 | 29 |
| Nov 20, 2026 | 29 |
| Nov 19, 2026 | 29 |
| Nov 18, 2026 | 29 |
| Nov 17, 2026 | 29 |
| Nov 16, 2026 | 29 |
| Nov 15, 2026 | 29 |
| Nov 14, 2026 | 29 |
| Nov 13, 2026 | 29 |
| Nov 12, 2026 | 29 |
| Nov 11, 2026 | 29 |
| Nov 10, 2026 | 28 |
| Nov 9, 2026 | 28 |
| Nov 8, 2026 | 28 |
| Nov 7, 2026 | 28 |
| Nov 6, 2026 | 28 |
| Nov 5, 2026 | 28 |
| Nov 4, 2026 | 27 |
| Nov 3, 2026 | 26 |
| Nov 2, 2026 | 26 |
| Nov 1, 2026 | 26 |
| Oct 31, 2026 | 26 |
| Oct 30, 2026 | 26 |
| Oct 29, 2026 | 26 |
| Oct 28, 2026 | 26 |
| Oct 27, 2026 | 26 |
| Oct 26, 2026 | 26 |
| Oct 25, 2026 | 26 |
| Oct 24, 2026 | 26 |
| Oct 23, 2026 | 26 |
| Oct 22, 2026 | 26 |
| Oct 21, 2026 | 26 |
| Oct 20, 2026 | 26 |
| Oct 19, 2026 | 26 |
| Oct 18, 2026 | 26 |
| Oct 17, 2026 | 26 |
| Oct 16, 2026 | 26 |
| Oct 15, 2026 | 26 |
| Oct 14, 2026 | 26 |
| Oct 13, 2026 | 26 |
| Oct 12, 2026 | 26 |
| Oct 11, 2026 | 25 |
| Oct 10, 2026 | 25 |
| Oct 9, 2026 | 24 |
| Oct 8, 2026 | 24 |
| Oct 7, 2026 | 24 |
| Oct 6, 2026 | 24 |
| Oct 5, 2026 | 24 |
| Oct 4, 2026 | 24 |
| Oct 3, 2026 | 24 |
| Oct 2, 2026 | 24 |
| Oct 1, 2026 | 24 |
| Sep 30, 2026 | 24 |
| Sep 29, 2026 | 24 |
| Sep 28, 2026 | 24 |
| Sep 27, 2026 | 24 |
| Sep 26, 2026 | 24 |
| Sep 25, 2026 | 23 |
| Sep 24, 2026 | 23 |
| Sep 23, 2026 | 23 |
| Sep 22, 2026 | 23 |
| Sep 21, 2026 | 23 |
| Sep 20, 2026 | 23 |
| Sep 19, 2026 | 23 |
| Sep 18, 2026 | 23 |
| Sep 17, 2026 | 23 |
| Sep 16, 2026 | 23 |
| Sep 15, 2026 | 23 |
| Sep 14, 2026 | 23 |
| Sep 13, 2026 | 23 |
| Sep 12, 2026 | 23 |
| Sep 11, 2026 | 23 |
| Sep 10, 2026 | 22 |
| Sep 9, 2026 | 22 |
| Sep 8, 2026 | 22 |
| Sep 7, 2026 | 22 |
| Sep 6, 2026 | 22 |
2.3K+2K since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 2,280 |
| Dec 4, 2026 | 2,117 |
| Dec 3, 2026 | 1,789 |
| Dec 2, 2026 | 1,278 |
| Dec 1, 2026 | 1,184 |
| Nov 30, 2026 | 1,168 |
| Nov 29, 2026 | 848 |
| Nov 28, 2026 | 536 |
| Nov 27, 2026 | 442 |
| Nov 26, 2026 | 325 |
| Nov 25, 2026 | 346 |
| Nov 24, 2026 | 334 |
| Nov 23, 2026 | 339 |
| Nov 22, 2026 | 420 |
| Nov 21, 2026 | 480 |
| Nov 20, 2026 | 508 |
| Nov 19, 2026 | 505 |
| Nov 18, 2026 | 486 |
| Nov 17, 2026 | 411 |
| Nov 16, 2026 | 413 |
| Nov 15, 2026 | 334 |
| Nov 14, 2026 | 323 |
| Nov 13, 2026 | 382 |
| Nov 12, 2026 | 496 |
| Nov 11, 2026 | 557 |
| Nov 10, 2026 | 651 |
| Nov 9, 2026 | 669 |
| Nov 8, 2026 | 693 |
| Nov 7, 2026 | 703 |
| Nov 6, 2026 | 684 |
| Nov 5, 2026 | 567 |
| Nov 4, 2026 | 523 |
| Nov 3, 2026 | 446 |
| Nov 2, 2026 | 478 |
| Nov 1, 2026 | 464 |
| Oct 31, 2026 | 433 |
| Oct 30, 2026 | 397 |
| Oct 29, 2026 | 356 |
| Oct 28, 2026 | 276 |
| Oct 27, 2026 | 289 |
| Oct 26, 2026 | 268 |
| Oct 25, 2026 | 264 |
| Oct 24, 2026 | 326 |
| Oct 23, 2026 | 265 |
| Oct 22, 2026 | 392 |
| Oct 21, 2026 | 478 |
| Oct 20, 2026 | 474 |
| Oct 19, 2026 | 517 |
| Oct 18, 2026 | 618 |
| Oct 17, 2026 | 609 |
| Oct 16, 2026 | 647 |
| Oct 15, 2026 | 592 |
| Oct 14, 2026 | 580 |
| Oct 13, 2026 | 595 |
| Oct 12, 2026 | 566 |
| Oct 11, 2026 | 423 |
| Oct 10, 2026 | 394 |
| Oct 9, 2026 | 405 |
| Oct 8, 2026 | 406 |
| Oct 7, 2026 | 391 |
| Oct 6, 2026 | 369 |
| Oct 5, 2026 | 330 |
| Oct 4, 2026 | 374 |
| Oct 3, 2026 | 359 |
| Oct 2, 2026 | 373 |
| Oct 1, 2026 | 372 |
| Sep 30, 2026 | 369 |
| Sep 29, 2026 | 363 |
| Sep 28, 2026 | 373 |
| Sep 27, 2026 | 353 |
| Sep 26, 2026 | 362 |
| Sep 25, 2026 | 385 |
| Sep 24, 2026 | 407 |
| Sep 23, 2026 | 447 |
| Sep 22, 2026 | 463 |
| Sep 21, 2026 | 470 |
| Sep 20, 2026 | 464 |
| Sep 19, 2026 | 407 |
| Sep 18, 2026 | 379 |
| Sep 17, 2026 | 374 |
| Sep 16, 2026 | 355 |
| Sep 15, 2026 | 341 |
| Sep 14, 2026 | 318 |
| Sep 13, 2026 | 318 |
| Sep 12, 2026 | 348 |
| Sep 11, 2026 | 334 |
| Sep 10, 2026 | 265 |
| Sep 9, 2026 | 253 |
| Sep 8, 2026 | 253 |
| Sep 7, 2026 | 252 |
| Sep 6, 2026 | 233 |
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/1142833666-root)<a href="https://payloaddirectory.dev/plugins/1142833666-root"><img src="https://payloaddirectory.dev/badge/1142833666-root.svg" alt="Payload Directory"></a>README

A Payload CMS 3 plugin that enhances the dashboard media collection view. It adds view toggles for justified and grid layouts while keeping the original list view. Features include quick edit drawer, bulk selection and a lightbox for images, video playback, and audio files.
orderable: true in collection config).pnpm add @sitebytom/payload-media-gallery
In your payload.config.ts:
import { buildConfig } from 'payload'
import { mediaGalleryPlugin } from '@sitebytom/payload-media-gallery'
export default buildConfig({
// ...
plugins: [
mediaGalleryPlugin({
collections: {
media: true,
},
defaultView: 'justified', // 'justified' | 'masonry' | 'grid' | 'list'
layouts: {
justified: {
enabled: true,
footer: 'hover', // 'hover' | 'always'
},
masonry: {
enabled: true,
footer: 'hover', // 'hover' | 'always'
},
grid: {
enabled: true,
footer: 'hover', // 'hover' | 'always'
},
},
lightbox: true,
edit: true,
disabled: false,
}),
],
})
| Option | Type | Default | Description |
|---|---|---|---|
collections | string[] | object | ['media'] | Collections to enable the gallery for. |
defaultView | ViewType | 'justified' | The initial view mode if no preference exists. |
layouts | object | {} | Configure available layouts and their footer mode. |
lightbox | boolean | true | Whether to enable the lightbox gallery. |
edit | boolean | true | Whether to enable the quick edit button. |
disabled | boolean | false | Whether to disable the plugin. |
⚠️ Experimental
An "as-is" personal concept for Payload CMS. Maintenance is not guaranteed.
- Scope: Works in "All Media" view; unsupported in Folders.
- Tested: Payload 3.73.0 | Next.js 16.1.4 | React 19.2.3
Topics
payload plugin media preview
Preview images, video, audio, code, CSV and Office files in the Payload admin edit and list views
66632/wk14v4
payload mux
Mux Video integration for Payload with a Videos collection that uploads directly to Mux
58133/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
mux video
Upload and manage Mux videos from a dedicated Payload collection with public or signed playback
793.9k/wk84v3
payload video streaming
Video upload, encoding status and playback for Payload using Cloudflare Stream, Mux or Bunny Stream
65961/wk0v3 v4