Hooks

Logs collection create, update, delete and read operations

Community 3 5/wk v2.1.0

Installation

pnpm add @nexload-sdk/payload-hooks

About

Payload Hooks writes a log entry each time a collection hook fires, so you can trace what happens to documents in a Payload project. Attach it to a collection's before change, after change, after delete or after read hooks, and each entry records the collection name and the hook type. The hook hands back the data it received, so the document flow stays the same. It suits debugging content workflows or getting a quick trace of who changes what, without writing a custom logger for each collection.

Package info

Package name
@nexload-sdk/payload-hooks
Latest version
2.1.0
Unpacked size
9 kB
Weekly downloads
5
Last publish
Jul 20, 2026

More from gecut

View profile

Shared ESLint 9 flat configs for Node, React, Next.js and Payload projects

Typed custom operations for Payload with a client and server-side contract

Shared field definitions that generate Payload fields and matching validation schemas

Slug, Jalali date and minor-unit money fields for Payload collections

Preset-based Lexical rich text configuration for Payload fields

Readiness check that runs a Payload collection query to confirm the database responds

Similar plugins

More in Devtools

Chat agent that composes and edits Payload pages from your block library

Exposes Payload collections and globals to AI agents through the Model Context Protocol

Lets AI assistants read and edit Payload content over MCP with scoped API keys

Editorial suite that lets teams run a Payload site through MCP tools and AI assistants

Typed block registry and React Server Component renderer for Payload blocks

Runs Payload CMS admin and APIs under vinext, on Node or Cloudflare Workers