atlasgong

payload sentinel

by atlasgong
Logging & monitoring
v3
^3.29.0
MIT

Overview

Summary generated from the README

Payload Sentinel logs user create, update and delete operations into a centralized audit log collection so you can see who did what and when. It is added through the plugins array and works without configuration. Read-operation logging can be enabled through options, and it integrates with Payload versioning for diff viewing.

Features

  • Logs create, update and delete operations automatically
  • Stores entries in a centralized audit log collection
  • Works out of the box with no required configuration
  • Optional logging of read operations
  • Integrates with Payload versioning to view diffs
  • Zero external dependencies

Use cases

  • Track which users changed content and when in a Payload admin
  • Keep an audit trail of edits across collections and globals

From the author

Payload Sentinel is a lightweight, opinionated audit logger for Payload CMS.

Installation

npm i payload-sentinel

10

Stars

2

Forks

3

Open Issues

1 weeks ago

Last Updated

0

Weekly Downloads

v0.2.2

npm Version

470.1 KB

Unpacked Size

0

Dependencies

GitHub stars

Trends appear after 7 days of data. Daily snapshots have not started yet.

npm weekly downloads

Trends appear after 7 days of data. Daily snapshots have not started yet.

Each point is npm's rolling 7-day download count.

Health Score

45/100Fair

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/969401869-root.svg)](https://payloaddirectory.dev/plugins/969401869-root)
HTML
<a href="https://payloaddirectory.dev/plugins/969401869-root"><img src="https://payloaddirectory.dev/badge/969401869-root.svg" alt="Payload Directory"></a>
Updated Oct 9, 2026Created Apr 20, 2025Published Apr 2, 2026

README

Payload Sentinel (A PayloadCMS Plugin)

Payload Sentinel is a simple audit logger for Payload CMS. It automatically logs user CRUD operations in a centralized audit log collection, allowing you to track who did what and when.

It:

  • Works right out of the box, with no configuration needed.
  • Has zero external dependencies.
  • Natively integrates with Payload's versioning features.

Installation

Requires Payload CMS v3.81.0 or above.

Using npm:

npm install payload-sentinel

Using pnpm:

pnpm add payload-sentinel

Then add the plugin to your payload.config.ts:

import { payloadSentinel } from "payload-sentinel";

export default buildConfig({
  plugins: [
    payloadSentinel(),
  ],
});

You're good to go! Payload Sentinel will automatically start logging all user create, update, and delete operations. To enable logging for read operations, see Configuration.

[!TIP] To enable diff viewing in audit logs, make sure versioning is enabled for the relevant collections or globals. Sentinel doesn’t handle diffs itself, nor is it planned to, because Payload already provides built-in versioning, which Sentinel natively integrates with.

Note: Versioning is optional; audit logging still works without it. You just won't be able to view diffs.

Configuration

Payload Sentinel works without any configuration. If you want to customize its behavior, there are minimal configuration options, which you can check here: config.ts. If there is a feature not currently configurable that you would like to see configurable, you may submit a feature request here.

Roadmap

  • Analytics panel for usage insights
  • I18n support
  • Logging console (API) operations
  • Seamless native integration with version diffs
  • Tamper-evident audit logs using cryptographic hash chaining

Issues & Feature Requests

Please report issues and request features by opening a GitHub issue. PRs are welcome; see CONTRIBUTING.md.

Similar plugins