jellologic

plugin

by jellologic
payload-onpage
Publishing workflow
v3
v4
^3.90.2 || ^4.0.0-beta.0
MIT

Overview

Summary generated from the README

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.

Features

  • Edit on page and Copy preview link controls in the Payload admin
  • Endpoints for entering, switching and exiting edit mode and for schema
  • Access checks through Payload's own document access operation
  • Configurable preview link expiry and validation
  • Stale-write guard and marker hooks for mapping fields to page elements
  • Per-document field and URL options for collections and globals

Use cases

  • Let editors click and edit page text in place with changes autosaved as drafts
  • Share expiring draft preview links with reviewers who lack admin accounts

From the author

payload-onpage for Payload CMS: on-page editing endpoints, auto-mapping, preview links and admin controls.

Installation

npm i @payload-onpage/plugin

4

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

GitHub stars

4+4 since Oct 4

Show data
GitHub stars by day (UTC)
DateStars
Dec 5, 20264
Dec 4, 20264
Dec 3, 20264
Dec 2, 20264
Dec 1, 20263
Nov 30, 20263
Nov 29, 20263
Nov 28, 20263
Nov 27, 20263
Nov 26, 20263
Nov 25, 20263
Nov 24, 20263
Nov 23, 20263
Nov 22, 20263
Nov 21, 20263
Nov 20, 20263
Nov 19, 20263
Nov 18, 20263
Nov 17, 20263
Nov 16, 20263
Nov 15, 20263
Nov 14, 20263
Nov 13, 20263
Nov 12, 20263
Nov 11, 20263
Nov 10, 20263
Nov 9, 20261
Nov 8, 20261
Nov 7, 20261
Nov 6, 20261
Nov 5, 20261
Nov 4, 20261
Nov 3, 20261
Nov 2, 20261
Nov 1, 20261
Oct 31, 20261
Oct 30, 20260
Oct 29, 20260
Oct 28, 20260
Oct 27, 20260
Oct 26, 20260
Oct 25, 20260
Oct 24, 20260
Oct 23, 20260
Oct 22, 20260
Oct 21, 20260
Oct 20, 20260
Oct 19, 20260
Oct 18, 20260
Oct 17, 20260
Oct 16, 20260
Oct 15, 20260
Oct 14, 20260
Oct 13, 20260
Oct 12, 20260
Oct 11, 20260
Oct 10, 20260
Oct 9, 20260
Oct 8, 20260
Oct 7, 20260
Oct 6, 20260
Oct 5, 20260
Oct 4, 20260
npm weekly downloads

46−1.1K since Oct 14

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 202646
Dec 4, 202643
Dec 3, 202644
Dec 2, 202660
Dec 1, 202663
Nov 30, 202666
Nov 29, 202666
Nov 28, 202665
Nov 27, 202662
Nov 26, 202668
Nov 25, 202648
Nov 24, 202648
Nov 23, 202651
Nov 22, 202658
Nov 21, 202672
Nov 20, 202686
Nov 19, 202684
Nov 18, 202688
Nov 17, 202686
Nov 16, 202692
Nov 15, 202698
Nov 14, 202692
Nov 13, 2026102
Nov 12, 2026108
Nov 11, 2026103
Nov 10, 2026124
Nov 9, 2026116
Nov 8, 2026113
Nov 7, 2026106
Nov 6, 202691
Nov 5, 202683
Nov 4, 2026147
Nov 3, 2026310
Nov 2, 2026324
Nov 1, 2026317
Oct 31, 2026347
Oct 30, 2026350
Oct 29, 2026342
Oct 28, 2026266
Oct 27, 2026109
Oct 26, 2026105
Oct 25, 2026152
Oct 24, 2026392
Oct 23, 2026372
Oct 22, 2026589
Oct 21, 20261,090
Oct 20, 20262,244
Oct 19, 20262,230
Oct 18, 20262,176
Oct 17, 20261,901
Oct 16, 20261,901
Oct 15, 20261,684
Oct 14, 20261,183

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

Health Score

60/100Good

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/1413241800-plugin.svg)](https://payloaddirectory.dev/plugins/1413241800-plugin)
HTML
<a href="https://payloaddirectory.dev/plugins/1413241800-plugin"><img src="https://payloaddirectory.dev/badge/1413241800-plugin.svg" alt="Payload Directory"></a>
Updated Nov 17, 2026Created Oct 10, 2026Published Oct 25, 2026

README

@payload-onpage/plugin

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.

Editing a Payload CMS page in place: click the heading, type, and it autosaves as a draft

Edit on page and Copy preview link in the Payload 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.

Similar plugins