Adds endpoints and admin controls that let editors modify Payload content directly on the frontend. It registers per-collection and per-global options, uses Payload's document access checks, and adds Edit on page and Copy preview link buttons to the admin. It is designed to work with a companion Next.js package for session handling.
payload-onpage for Payload CMS: on-page editing endpoints, auto-mapping, preview links and admin controls.
Installation
npm i @payload-onpage/plugin4
Stars
0
Forks
2
Open Issues
2 weeks ago
Last Updated
59
Weekly Downloads
v0.7.0
npm Version
302.8 KB
Unpacked Size
1
Dependencies
4+4 since Oct 4
| Date | Stars |
|---|---|
| Dec 5, 2026 | 4 |
| Dec 4, 2026 | 4 |
| Dec 3, 2026 | 4 |
| Dec 2, 2026 | 4 |
| Dec 1, 2026 | 3 |
| Nov 30, 2026 | 3 |
| Nov 29, 2026 | 3 |
| Nov 28, 2026 | 3 |
| Nov 27, 2026 | 3 |
| Nov 26, 2026 | 3 |
| Nov 25, 2026 | 3 |
| Nov 24, 2026 | 3 |
| Nov 23, 2026 | 3 |
| Nov 22, 2026 | 3 |
| Nov 21, 2026 | 3 |
| Nov 20, 2026 | 3 |
| Nov 19, 2026 | 3 |
| Nov 18, 2026 | 3 |
| Nov 17, 2026 | 3 |
| Nov 16, 2026 | 3 |
| Nov 15, 2026 | 3 |
| Nov 14, 2026 | 3 |
| Nov 13, 2026 | 3 |
| Nov 12, 2026 | 3 |
| Nov 11, 2026 | 3 |
| Nov 10, 2026 | 3 |
| Nov 9, 2026 | 1 |
| Nov 8, 2026 | 1 |
| Nov 7, 2026 | 1 |
| Nov 6, 2026 | 1 |
| Nov 5, 2026 | 1 |
| Nov 4, 2026 | 1 |
| Nov 3, 2026 | 1 |
| Nov 2, 2026 | 1 |
| Nov 1, 2026 | 1 |
| Oct 31, 2026 | 1 |
| 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 |
46−1.1K since Oct 14
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 46 |
| Dec 4, 2026 | 43 |
| Dec 3, 2026 | 44 |
| Dec 2, 2026 | 60 |
| Dec 1, 2026 | 63 |
| Nov 30, 2026 | 66 |
| Nov 29, 2026 | 66 |
| Nov 28, 2026 | 65 |
| Nov 27, 2026 | 62 |
| Nov 26, 2026 | 68 |
| Nov 25, 2026 | 48 |
| Nov 24, 2026 | 48 |
| Nov 23, 2026 | 51 |
| Nov 22, 2026 | 58 |
| Nov 21, 2026 | 72 |
| Nov 20, 2026 | 86 |
| Nov 19, 2026 | 84 |
| Nov 18, 2026 | 88 |
| Nov 17, 2026 | 86 |
| Nov 16, 2026 | 92 |
| Nov 15, 2026 | 98 |
| Nov 14, 2026 | 92 |
| Nov 13, 2026 | 102 |
| Nov 12, 2026 | 108 |
| Nov 11, 2026 | 103 |
| Nov 10, 2026 | 124 |
| Nov 9, 2026 | 116 |
| Nov 8, 2026 | 113 |
| Nov 7, 2026 | 106 |
| Nov 6, 2026 | 91 |
| Nov 5, 2026 | 83 |
| Nov 4, 2026 | 147 |
| Nov 3, 2026 | 310 |
| Nov 2, 2026 | 324 |
| Nov 1, 2026 | 317 |
| Oct 31, 2026 | 347 |
| Oct 30, 2026 | 350 |
| Oct 29, 2026 | 342 |
| Oct 28, 2026 | 266 |
| Oct 27, 2026 | 109 |
| Oct 26, 2026 | 105 |
| Oct 25, 2026 | 152 |
| Oct 24, 2026 | 392 |
| Oct 23, 2026 | 372 |
| Oct 22, 2026 | 589 |
| Oct 21, 2026 | 1,090 |
| Oct 20, 2026 | 2,244 |
| Oct 19, 2026 | 2,230 |
| Oct 18, 2026 | 2,176 |
| Oct 17, 2026 | 1,901 |
| Oct 16, 2026 | 1,901 |
| Oct 15, 2026 | 1,684 |
| Oct 14, 2026 | 1,183 |
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/1413241800-plugin)<a href="https://payloaddirectory.dev/plugins/1413241800-plugin"><img src="https://payloaddirectory.dev/badge/1413241800-plugin.svg" alt="Payload Directory"></a>README
The Payload side: endpoints (enter/mode/exit/preview links/schema), access through Payload's own docAccessOperation, the editor schema, marker hooks, a stale-write guard, and Edit on page / Copy preview link in the admin.


import { onpage } from '@payload-onpage/plugin'
import { nextSession } from '@payload-onpage/next/session'
plugins: [onpage({ collections: ['pages'], globals: ['header'], session: nextSession() })]
Options: collections, globals (with per-document fields and url), access, session, encode, previewLinkTTL, validatePreviewLink, secret, authCookie, routePrefix, enabled. See security.
Part of payload-onpage: on-page editing and draft previews for Payload CMS + Next.js. Start with the getting started guide.
MIT licensed.
See the tour and getting started.
Found a bug? Report it or see CONTRIBUTING.md to fix it yourself.
Topics
payload better preview
Live preview with block hover highlighting and two-way scroll sync between the Payload admin and the preview
4846/wk16v3
payload better editor
Side-by-side live-preview iframe with a sidebar for editing individual blocks in the Payload edit view
781.2k/wk119v3
payload live nav
Section index and field focus bridge that syncs the Payload edit form with the Live Preview
5414/wk0v3
payload visual editor
Edit text fields inline in the Payload live preview iframe and save changes back as drafts
4313/wk7v3
payload inplace
Live inline editing for Payload-powered Next.js websites with block reordering and reviewed drafts
62175/wk6v3
plugin
Click-to-edit inline visual editing and block operations on top of Payload Live Preview
581.3k/wk13v3