Overview & Quick Start
Payload CMS auditing
@nexload-sdk/payload-hooks
v3.1.0 ReleasedEffortless, 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.
Installation
Section titled “Installation”pnpm add @nexload-sdk/payload-hooks payloadnpm install @nexload-sdk/payload-hooks payloadyarn add @nexload-sdk/payload-hooks payloadbun add @nexload-sdk/payload-hooks payloadQuick Start
Section titled “Quick Start”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.