Adds a collapsible section index to configured edit views so one click scrolls both the form and the Live Preview to the same section. Focusing a field in the form scrolls the previewed page to the element tagged with a matching data-cms-field attribute and flashes it. A small listener component or function must be added to the previewed page, and the admin and the preview must share an origin. Requires Payload 3.
Section index and field to preview focus bridge for the Payload admin: click a section to jump both the form and the Live Preview, focus a field to flash it on the page.
Installation
npm i payload-live-nav0
Stars
0
Forks
0
Open Issues
3 months ago
Last Updated
15
Weekly Downloads
v0.1.1
npm Version
34.7 KB
Unpacked Size
0
Dependencies
00 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 0 |
| 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 |
15+8 since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 15 |
| Dec 5, 2026 | 10 |
| Dec 4, 2026 | 10 |
| Dec 3, 2026 | 4 |
| Dec 2, 2026 | 2 |
| Dec 1, 2026 | 5 |
| Nov 30, 2026 | 5 |
| Nov 29, 2026 | 4 |
| Nov 28, 2026 | 4 |
| Nov 27, 2026 | 5 |
| Nov 26, 2026 | 5 |
| Nov 25, 2026 | 6 |
| Nov 24, 2026 | 3 |
| Nov 23, 2026 | 3 |
| Nov 22, 2026 | 5 |
| Nov 21, 2026 | 5 |
| Nov 20, 2026 | 4 |
| Nov 19, 2026 | 6 |
| Nov 18, 2026 | 6 |
| Nov 17, 2026 | 6 |
| Nov 16, 2026 | 9 |
| Nov 15, 2026 | 8 |
| Nov 14, 2026 | 11 |
| Nov 13, 2026 | 12 |
| Nov 12, 2026 | 13 |
| Nov 11, 2026 | 13 |
| Nov 10, 2026 | 15 |
| Nov 9, 2026 | 12 |
| Nov 8, 2026 | 12 |
| Nov 7, 2026 | 11 |
| Nov 6, 2026 | 9 |
| Nov 5, 2026 | 7 |
| Nov 4, 2026 | 6 |
| Nov 3, 2026 | 5 |
| Nov 2, 2026 | 7 |
| Nov 1, 2026 | 9 |
| Oct 31, 2026 | 8 |
| Oct 30, 2026 | 8 |
| Oct 29, 2026 | 7 |
| Oct 28, 2026 | 7 |
| Oct 27, 2026 | 7 |
| Oct 26, 2026 | 8 |
| Oct 25, 2026 | 7 |
| Oct 24, 2026 | 8 |
| Oct 23, 2026 | 8 |
| Oct 22, 2026 | 15 |
| Oct 21, 2026 | 17 |
| Oct 20, 2026 | 16 |
| Oct 19, 2026 | 15 |
| Oct 18, 2026 | 14 |
| Oct 17, 2026 | 13 |
| Oct 16, 2026 | 13 |
| Oct 15, 2026 | 10 |
| Oct 14, 2026 | 8 |
| Oct 13, 2026 | 9 |
| Oct 12, 2026 | 9 |
| Oct 11, 2026 | 9 |
| Oct 10, 2026 | 8 |
| Oct 9, 2026 | 10 |
| Oct 8, 2026 | 7 |
| Oct 7, 2026 | 7 |
| Oct 6, 2026 | 8 |
| Oct 5, 2026 | 6 |
| Oct 4, 2026 | 7 |
| Oct 3, 2026 | 9 |
| Oct 2, 2026 | 9 |
| Oct 1, 2026 | 8 |
| Sep 30, 2026 | 9 |
| Sep 29, 2026 | 8 |
| Sep 28, 2026 | 8 |
| Sep 27, 2026 | 7 |
| Sep 26, 2026 | 8 |
| Sep 25, 2026 | 6 |
| Sep 24, 2026 | 7 |
| Sep 23, 2026 | 7 |
| Sep 22, 2026 | 8 |
| Sep 21, 2026 | 9 |
| Sep 20, 2026 | 9 |
| Sep 19, 2026 | 8 |
| Sep 18, 2026 | 9 |
| Sep 17, 2026 | 10 |
| Sep 16, 2026 | 16 |
| Sep 15, 2026 | 15 |
| Sep 14, 2026 | 16 |
| Sep 13, 2026 | 16 |
| Sep 12, 2026 | 14 |
| Sep 11, 2026 | 13 |
| Sep 10, 2026 | 12 |
| Sep 9, 2026 | 6 |
| Sep 8, 2026 | 5 |
| Sep 7, 2026 | 7 |
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/1327533310-root)<a href="https://payloaddirectory.dev/plugins/1327533310-root"><img src="https://payloaddirectory.dev/badge/1327533310-root.svg" alt="Payload Directory"></a>README
Section navigation for the Payload admin, wired to Live Preview. Click a section in a small index panel and both the edit form and the preview jump there. Focus any field and the preview scrolls to that element and flashes it.

Payload's Live Preview shows you the page while you edit, but on a long page you still scroll the form and the preview separately, hunting for the field you want. This closes that gap.
data-cms-field attribute, with a short flash so your eye lands on it. Zero config, works on every edit view with Live Preview.pnpm add payload-live-nav
1. Register the plugin in payload.config.ts. The entities map is keyed by collection or global slug; each listed entity gets the page index on its edit view.
import { liveNavPlugin } from 'payload-live-nav'
export default buildConfig({
plugins: [
liveNavPlugin({
entities: {
homepage: {
sections: [
{ label: 'Hero', path: 'hero', adminLabel: 'Hero (top of page)' },
{ label: 'FAQ', path: 'faq' },
],
},
},
}),
],
})
path is the section group's field path in the form. adminLabel is the group's label as the admin renders it; it defaults to label and only matters for the fallback described below.
2. Drop the listener into the previewed page. React (Next.js layout or page):
import { LiveNavListener } from 'payload-live-nav/frontend'
// anywhere in the previewed page tree, renders nothing
<LiveNavListener />
Not on React? The core is framework agnostic:
import { attachLiveNavListener } from 'payload-live-nav/frontend'
const detach = attachLiveNavListener(document)
3. Tag your elements. Give the rendered elements a data-cms-field attribute matching their field path:
<h1 data-cms-field="hero.headline">{hero.headline}</h1>
A group path like faq needs no element of its own: the listener resolves it through the first child it finds (faq.headline), and unmatched child paths climb to their parent.
The admin side watches focusin events and reads Payload's internal field-<path> DOM id scheme to learn which field you are in, then posts the path into the Live Preview iframe with postMessage (same origin only, both directions). That id scheme is internal to Payload: if a future version changes it, this plugin degrades to a quiet no-op rather than breaking your admin, and the page index falls back to matching the group's heading text (that is what adminLabel is for).
Three edge cases this plugin carries fixes for, learned in production:
body.getBoundingClientRect().top goes negative once scrolled. Root scrolling therefore uses the viewport relative offset directly instead of container relative math, which double counts.| Payload | Status |
|---|---|
| 3.85 | tested |
| 4.x | untested, internals may differ |
Same origin setups only: the admin and the previewed site must share an origin, which is Payload's default Live Preview arrangement.
MIT
payload better editor
Side-by-side live-preview iframe with a sidebar for editing individual blocks in the Payload edit view
781.2k/wk119v3
plugin
On-page editing and draft preview links for Payload collections and globals on a Next.js frontend
6068/wk4v3 v4
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
payload better preview
Live preview with block hover highlighting and two-way scroll sync between the Payload admin and the preview
4846/wk16v3
payload visual editor
Edit text fields inline in the Payload live preview iframe and save changes back as drafts
4313/wk7v3