delmaredigital

payload puck

by delmaredigital
Admin customization
v3
>=3.69.0
MIT

Overview

Summary generated from the README

Integrates the Puck visual page builder into Payload CMS. The plugin registers an editor view, API endpoints and Edit with Puck buttons on a chosen pages collection, and provides a PageRenderer for the Next.js frontend. It requires Payload 3.69 or later, Next.js, React 19 and the Puck core package.

Features

  • Editor view and API endpoints registered automatically on a configured pages collection
  • Built-in components with General, Style and Layout tabs in the sidebar
  • PageRenderer component for rendering saved Puck data on the frontend
  • Show or hide blocks per device while keeping them editable
  • Copy and paste blocks between pages, including into slots
  • Integrations that bundle extra components, categories and editor plugins

Use cases

  • Build marketing pages visually with drag-and-drop blocks inside the Payload admin
  • Give editors a visual editor while keeping Payload access control on page collections
  • Extend the page builder with custom components and slot-based experiments

From the author

Puck visual page builder plugin for Payload CMS

Installation

npm i @delmaredigital/payload-puck

117

Stars

13

Forks

3

Open Issues

Yesterday

Last Updated

2.3k

Weekly Downloads

v0.12.6

npm Version

2.0 MB

Unpacked Size

17

Dependencies

GitHub stars

117+17 since Sep 6

Show data
GitHub stars by day (UTC)
DateStars
Dec 5, 2026117
Dec 4, 2026115
Dec 3, 2026115
Dec 2, 2026115
Dec 1, 2026115
Nov 30, 2026115
Nov 29, 2026115
Nov 28, 2026115
Nov 27, 2026115
Nov 26, 2026115
Nov 25, 2026114
Nov 24, 2026113
Nov 23, 2026112
Nov 22, 2026112
Nov 21, 2026112
Nov 20, 2026112
Nov 19, 2026111
Nov 18, 2026111
Nov 17, 2026111
Nov 16, 2026111
Nov 15, 2026111
Nov 14, 2026111
Nov 13, 2026111
Nov 12, 2026111
Nov 11, 2026111
Nov 10, 2026111
Nov 9, 2026110
Nov 8, 2026109
Nov 7, 2026109
Nov 6, 2026109
Nov 5, 2026109
Nov 4, 2026109
Nov 3, 2026109
Nov 2, 2026109
Nov 1, 2026109
Oct 31, 2026109
Oct 30, 2026109
Oct 29, 2026109
Oct 28, 2026109
Oct 27, 2026109
Oct 26, 2026109
Oct 25, 2026108
Oct 24, 2026108
Oct 23, 2026108
Oct 22, 2026108
Oct 21, 2026108
Oct 20, 2026108
Oct 19, 2026108
Oct 18, 2026107
Oct 17, 2026107
Oct 16, 2026107
Oct 15, 2026107
Oct 14, 2026107
Oct 13, 2026106
Oct 12, 2026105
Oct 11, 2026105
Oct 10, 2026105
Oct 9, 2026105
Oct 8, 2026105
Oct 7, 2026105
Oct 6, 2026104
Oct 5, 2026104
Oct 4, 2026104
Oct 3, 2026104
Oct 2, 2026104
Oct 1, 2026104
Sep 30, 2026104
Sep 29, 2026104
Sep 28, 2026103
Sep 27, 2026103
Sep 26, 2026103
Sep 25, 2026103
Sep 24, 2026103
Sep 23, 2026103
Sep 22, 2026103
Sep 21, 2026103
Sep 20, 2026103
Sep 19, 2026103
Sep 18, 2026103
Sep 17, 2026103
Sep 16, 2026103
Sep 15, 2026103
Sep 14, 2026102
Sep 13, 2026101
Sep 12, 2026101
Sep 11, 2026101
Sep 10, 2026101
Sep 9, 2026101
Sep 8, 2026101
Sep 7, 2026101
Sep 6, 2026100
npm weekly downloads

2.1K+787 since Sep 6

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 20262,114
Dec 4, 20261,964
Dec 3, 20261,880
Dec 2, 20261,765
Dec 1, 20261,800
Nov 30, 20261,967
Nov 29, 20262,480
Nov 28, 20262,638
Nov 27, 20262,680
Nov 26, 20262,675
Nov 25, 20262,553
Nov 24, 20262,480
Nov 23, 20262,299
Nov 22, 20262,040
Nov 21, 20262,087
Nov 20, 20262,110
Nov 19, 20262,025
Nov 18, 20262,197
Nov 17, 20262,132
Nov 16, 20262,129
Nov 15, 20261,922
Nov 14, 20261,887
Nov 13, 20261,737
Nov 12, 20261,851
Nov 11, 20261,561
Nov 10, 20261,593
Nov 9, 20261,629
Nov 8, 20261,816
Nov 7, 20261,973
Nov 6, 20261,968
Nov 5, 20262,036
Nov 4, 20262,032
Nov 3, 20261,969
Nov 2, 20261,970
Nov 1, 20261,726
Oct 31, 20261,824
Oct 30, 20262,312
Oct 29, 20261,949
Oct 28, 20261,772
Oct 27, 20261,800
Oct 26, 20261,763
Oct 25, 20261,705
Oct 24, 20261,259
Oct 23, 2026583
Oct 22, 2026806
Oct 21, 2026977
Oct 20, 20261,061
Oct 19, 20261,177
Oct 18, 20261,233
Oct 17, 20261,674
Oct 16, 20261,905
Oct 15, 20261,989
Oct 14, 20262,141
Oct 13, 20262,139
Oct 12, 20262,006
Oct 11, 20261,963
Oct 10, 20261,529
Oct 9, 20261,744
Oct 8, 20261,758
Oct 7, 20261,734
Oct 6, 20261,639
Oct 5, 20261,645
Oct 4, 20261,609
Oct 3, 20261,517
Oct 2, 20261,338
Oct 1, 20261,197
Sep 30, 20261,055
Sep 29, 20261,013
Sep 28, 20261,021
Sep 27, 2026944
Sep 26, 20261,061
Sep 25, 2026955
Sep 24, 20261,031
Sep 23, 20261,059
Sep 22, 20261,072
Sep 21, 20261,168
Sep 20, 20261,318
Sep 19, 20261,403
Sep 18, 20261,743
Sep 17, 20261,643
Sep 16, 20261,724
Sep 15, 20261,750
Sep 14, 20261,629
Sep 13, 20261,641
Sep 12, 20261,511
Sep 11, 20261,253
Sep 10, 20261,376
Sep 9, 20261,289
Sep 8, 20261,268
Sep 7, 20261,285
Sep 6, 20261,327

Each point is npm's rolling 7-day download count.

Health Score

77/100Excellent

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1127989065-root.svg)](https://payloaddirectory.dev/plugins/1127989065-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1127989065-root"><img src="https://payloaddirectory.dev/badge/1127989065-root.svg" alt="Payload Directory"></a>
Updated Dec 4, 2026Created Jan 5, 2026Published Dec 3, 2026

README

@delmaredigital/payload-puck

A PayloadCMS plugin for integrating Puck visual page builder. Build pages visually with drag-and-drop components while leveraging Payload's content management capabilities.

The Puck editor inside the Payload admin, with a Card selected and its Style tab open

Starter Template - Use This

Deploy with Vercel

Documentation: plugins.delmaredigital.com/docs/puck · Overview

⚠️ Upgrading to 0.10.x from 0.9? Breaking — requires @puckeditor/core 0.24. Run pnpm add @puckeditor/core@^0.24.0. The built-in components now arrange their sidebar fields in General / Style / Layout tabs, and the action bar shows a drag handle (dnd={{ enableDragHandle: false }} on PuckEditor hides it). Saved page data is unchanged. 0.10.1 only raises dependency floors. 0.10.2 is a security fix — upgrade recommended: the admin editor view now applies the collection's read access. It also makes the admin editor full-screen, and the canvas no longer inherits the admin page's CSS; list any stylesheet your preview needs in editorStylesheets. 0.10.3 adds integrations (bundles of components, categories and editor plugins from other packages); nothing changes if you don't use them. 0.11.0 is a security fix and breaking: anonymous callers can read published pages only (collections with drafts turned off are unaffected), so a preview that reads drafts without a signed-in user must pass one or set access.read; see upgrading. See the CHANGELOG.

Coming from an older version? The Upgrade Guide lists what each breaking or security release needs.


Documentation

Ask DeepWiki

Covers installation, configuration, components, custom fields, theming, layouts, dark mode, page-tree integration, hybrid integration, AI integration, and more.


Install

pnpm add @delmaredigital/payload-puck @puckeditor/core

Requirements

DependencyVersion
node>= 20.9.0
@puckeditor/core>= 0.24.0
payload>= 3.69.0
@payloadcms/next>= 3.69.0
next>= 15.4.8 (see security note below)
react>= 19.2.1

Using @delmaredigital/payload-better-auth? Any published version works — its auth strategy stamps collection on the user, which is what 0.9's access resolution needs. 0.9.0 or later is recommended: it is the first release where the recommended payload.auth() wiring, combined with the request headers 0.9 now forwards into Payload, is free of side effects for API-key requests. Current is 0.11.3, which requires Better Auth 1.7.

Note: Puck 0.21+ moved from @measured/puck to @puckeditor/core. This plugin requires the new package scope.

Security: If your app uses Next.js middleware (or proxy.ts) to protect dynamic routes, use next >= 15.5.16 / 16.2.5 to pick up the fix for CVE-2026-44574 (middleware bypass via dynamic route parameter injection). Turbopack users need >= 15.5.18 / 16.2.6.


Quick Start

1. Add the Plugin

// src/payload.config.ts
import { buildConfig } from 'payload'
import { createPuckPlugin } from '@delmaredigital/payload-puck/plugin'

export default buildConfig({
  plugins: [
    createPuckPlugin({
      pagesCollection: 'pages',
    }),
  ],
})

2. Provide Puck Configuration

// app/(app)/layout.tsx
import { PuckConfigProvider } from '@delmaredigital/payload-puck/client'
import { editorConfig } from '@delmaredigital/payload-puck/config/editor'

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        <PuckConfigProvider config={editorConfig}>
          {children}
        </PuckConfigProvider>
      </body>
    </html>
  )
}

3. Create a Frontend Route

// app/(frontend)/[[...slug]]/page.tsx
import { getPayload } from 'payload'
import config from '@payload-config'
import { PageRenderer } from '@delmaredigital/payload-puck/render'
import { baseConfig } from '@delmaredigital/payload-puck/config'
import { notFound } from 'next/navigation'

async function getPage(slug?: string[]) {
  const payload = await getPayload({ config })
  const slugPath = slug?.join('/') || ''
  const { docs } = await payload.find({
    collection: 'pages',
    where: {
      and: [
        { _status: { equals: 'published' } },
        slugPath
          ? { slug: { equals: slugPath } }
          : { isHomepage: { equals: true } },
      ],
    },
    limit: 1,
  })
  return docs[0] || null
}

export default async function Page({ params }: { params: Promise<{ slug?: string[] }> }) {
  const { slug } = await params
  const page = await getPage(slug)
  if (!page) notFound()
  return <PageRenderer config={baseConfig} data={page.puckData} />
}

That's it! The plugin registers the editor view, API endpoints, and "Edit with Puck" buttons automatically.

Copy starter files from GitHub or the starter files guide. See examples/README.md for the file guide and setup notes. The npm package ships only dist; examples must be copied from GitHub or the docs. Contributors can check them against the source exports with pnpm typecheck:examples.


Documentation

For everything else — components, custom fields, theming, layouts, dark mode, page-tree integration, hybrid integration, AI integration, advanced configuration, and the full export reference — see the full documentation.


Integrations

An integration bundles Puck components, categories and optional editor plugins. Host components and category fields win; integrations fill missing component keys and append category names. Config helpers ignore plugins.

// Render config
import { extendConfig, baseConfig, type PuckIntegration } from '@delmaredigital/payload-puck/config'

const integrations: readonly PuckIntegration[] = [{
  name: 'dummy',
  components: { DummyBlock: { render: () => <div>Dummy block</div> } },
  categories: { custom: { title: 'Custom', components: ['DummyBlock'] } },
}]

export const renderConfig = extendConfig({ base: baseConfig, integrations })
'use client'

import { PuckConfigProvider, type PuckIntegration } from '@delmaredigital/payload-puck/client'
import { editorConfig } from '@delmaredigital/payload-puck/config/editor'
import type { ReactNode } from 'react'

const integrations: readonly PuckIntegration[] = [{
  name: 'dummy',
  components: { DummyBlock: { render: () => <div>Dummy block</div> } },
  categories: { custom: { title: 'Custom', components: ['DummyBlock'] } },
}]

export function EditorProvider({ children }: { children: ReactNode }) {
  return <PuckConfigProvider config={editorConfig} integrations={integrations}>{children}</PuckConfigProvider>
}

Create the integration array once at module scope: a new array per render rebuilds the editor config. PuckEditor also accepts integrations directly. Integration plugins follow prop and context plugins; named integration plugins are deduped against prop, context and earlier integration plugins. plugins={false} disables all plugins while integration components still apply.

The editor applies integrations without exclude, so to opt out of an integration's component, omit that integration from the provider or define your own component under the same key, which wins.

Showing and hiding blocks

Every block can be hidden from the live page, or only on phone, tablet or desktop, while staying editable (grayed out) in the editor. Nothing to set up. See Showing and hiding blocks.

Copying and pasting blocks

Every block's action bar has Copy block. Once a block is copied, Paste after puts it right after the selected block, and Paste inside fills one of a block's slots, including an empty one. Cmd/Ctrl+C and Cmd/Ctrl+V do the same on a selected block, outside text fields. The copied block, with everything inside it, is stored unencrypted in the browser for up to 24 hours, readable through the editor by the signed-in user only, so you can paste it on another page. Signing out doesn't delete it; see the docs for when it's deleted. Turn it off with copyPaste={false} on PuckEditor. See Copying and pasting blocks.

Running experiments on slots

Use @delmaredigital/payload-experiments to run experiments on Puck slots through an integration. Works with: payload-experiments ≥0.4.0 ↔ payload-puck ≥0.10.3.

License

MIT

Similar plugins