@payload-onpage/core
v0.6.0
Published
payload-onpage core: document refs, schema, field operations, stega codec, autosave and the editor session, plus the port interfaces adapters implement.
Maintainers
Readme
@payload-onpage/core
Framework-free building blocks: document refs, paths and field operations, the editor session (multi-document, undo, serialized publish/discard), autosave with stale-write detection, invisible field markers, sealing, and the port interfaces adapters implement.

import { EditorSession } from '@payload-onpage/core'
import { payloadRest } from '@payload-onpage/core/payload'
const session = new EditorSession({ dataSource: payloadRest() })
await session.open({ kind: 'collection', slug: 'pages', id: 1 })
session.setValue('c:pages:1', 'title', 'Hello')
await session.publish()Entries: @payload-onpage/core (logic, ports), @payload-onpage/core/payload (Payload REST DataSource + MediaLibrary).
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.
