Skip to content

Overview & Quick Start

Payload CMS auditing

@nexload-sdk/payload-hooks

v3.1.0 Released

Effortless, type-safe logging for Payload CMS collection operations.

Examples follow workspace source. Check pending Changesets against your installed version.

SDK dependencies: @nexload-sdk/logger

auditPlugin attaches log-only collection hooks. It stores no audit records and does not change collection fields.

Terminal window
pnpm add @nexload-sdk/payload-hooks payload
import { auditPlugin } from "@nexload-sdk/payload-hooks";
const plugins = [auditPlugin({ operations: ["create", "update", "delete", "read", "auth"] })];

Reads are off by default; auth is on for auth collections. See guides for event names, options, and transaction caveats. Payload >=3.85.0 <4.0.0 is a peer dependency; the hooks run in Node.js Payload configuration.

Optimization

Agent usage