rilrom

activity log

by rilrom
payload-bites
Logging & monitoring
v4
>=4.0.0-beta.10 <5.0.0
MIT

Overview

Summary generated from the README

Adds an activity log collection to Payload and records changes made to the collections and globals you choose. Each collection can be configured individually, including whether updates, IP addresses and device info are logged. Draft autosave logging can be toggled, and the log collection can be customized through an override function. Payload 4 prereleases need the v2 beta; Payload 3 uses v1.

Features

  • Per-collection and per-global activity logging
  • Optional toggles for update, IP address and device info logging
  • Option to log or skip draft autosaves
  • Override function to adjust the activity log collection access and admin settings
  • Separate versions for Payload 3 (v1) and Payload 4 (v2)

Use cases

  • Track which editors changed content across posts, pages and globals
  • Keep a reporting group in the admin showing recent CMS activity
  • Limit logging to specific collections while disabling IP and device capture for privacy

From the author

keep an eye on everything happening in your cms

Installation

npm i @payload-bites/activity-log

115

Stars

7

Forks

2

Open Issues

1 weeks ago

Last Updated

715

Weekly Downloads

v1.8.1

npm Version

78.6 KB

Unpacked Size

0

Dependencies

Repository stars

115+3 since Sep 7

Show data
Repository stars by day (UTC)
DateStars
Dec 6, 2026115
Dec 5, 2026115
Dec 4, 2026115
Dec 3, 2026115
Dec 2, 2026115
Dec 1, 2026115
Nov 30, 2026115
Nov 29, 2026115
Nov 28, 2026115
Nov 27, 2026115
Nov 26, 2026115
Nov 25, 2026114
Nov 24, 2026114
Nov 23, 2026114
Nov 22, 2026114
Nov 21, 2026114
Nov 20, 2026114
Nov 19, 2026114
Nov 18, 2026114
Nov 17, 2026114
Nov 16, 2026114
Nov 15, 2026114
Nov 14, 2026114
Nov 13, 2026114
Nov 12, 2026114
Nov 11, 2026114
Nov 10, 2026114
Nov 9, 2026114
Nov 8, 2026114
Nov 7, 2026114
Nov 6, 2026114
Nov 5, 2026114
Nov 4, 2026114
Nov 3, 2026114
Nov 2, 2026114
Nov 1, 2026114
Oct 31, 2026114
Oct 30, 2026114
Oct 29, 2026114
Oct 28, 2026114
Oct 27, 2026114
Oct 26, 2026114
Oct 25, 2026114
Oct 24, 2026114
Oct 23, 2026114
Oct 22, 2026114
Oct 21, 2026113
Oct 20, 2026113
Oct 19, 2026113
Oct 18, 2026113
Oct 17, 2026113
Oct 16, 2026113
Oct 15, 2026113
Oct 14, 2026113
Oct 13, 2026113
Oct 12, 2026113
Oct 11, 2026113
Oct 10, 2026113
Oct 9, 2026113
Oct 8, 2026113
Oct 7, 2026113
Oct 6, 2026113
Oct 5, 2026113
Oct 4, 2026113
Oct 3, 2026113
Oct 2, 2026113
Oct 1, 2026113
Sep 30, 2026113
Sep 29, 2026113
Sep 28, 2026113
Sep 27, 2026113
Sep 26, 2026113
Sep 25, 2026113
Sep 24, 2026113
Sep 23, 2026113
Sep 22, 2026113
Sep 21, 2026113
Sep 20, 2026113
Sep 19, 2026113
Sep 18, 2026113
Sep 17, 2026113
Sep 16, 2026113
Sep 15, 2026113
Sep 14, 2026113
Sep 13, 2026112
Sep 12, 2026112
Sep 11, 2026112
Sep 10, 2026112
Sep 9, 2026112
Sep 8, 2026112
Sep 7, 2026112

Shared by 6 plugins in rilrom/payload-bites.

npm weekly downloads

715+10 since Sep 7

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 6, 2026715
Dec 5, 20261,010
Dec 4, 2026997
Dec 3, 20261,044
Dec 2, 20261,069
Dec 1, 20261,257
Nov 30, 20261,404
Nov 29, 20261,321
Nov 28, 2026964
Nov 27, 20261,024
Nov 26, 20261,119
Nov 25, 20261,133
Nov 24, 20261,141
Nov 23, 20261,040
Nov 22, 20261,192
Nov 21, 20261,190
Nov 20, 20261,151
Nov 19, 20261,359
Nov 18, 20261,310
Nov 17, 20261,100
Nov 16, 20261,470
Nov 15, 20261,313
Nov 14, 20261,427
Nov 13, 20261,459
Nov 12, 20261,053
Nov 11, 20261,079
Nov 10, 20261,359
Nov 9, 2026972
Nov 8, 20261,072
Nov 7, 20261,038
Nov 6, 20261,084
Nov 5, 20261,198
Nov 4, 20261,257
Nov 3, 20261,063
Nov 2, 20261,129
Nov 1, 20261,061
Oct 31, 20261,043
Oct 30, 20261,018
Oct 29, 2026854
Oct 28, 2026639
Oct 27, 2026722
Oct 26, 2026672
Oct 25, 2026763
Oct 24, 2026709
Oct 23, 2026558
Oct 22, 2026845
Oct 21, 20261,066
Oct 20, 20261,050
Oct 19, 20261,201
Oct 18, 20261,136
Oct 17, 20261,247
Oct 16, 20261,351
Oct 15, 20261,146
Oct 14, 20261,005
Oct 13, 2026859
Oct 12, 2026652
Oct 11, 2026559
Oct 10, 2026424
Oct 9, 2026419
Oct 8, 2026420
Oct 7, 2026533
Oct 6, 2026596
Oct 5, 2026667
Oct 4, 2026821
Oct 3, 2026862
Oct 2, 2026819
Oct 1, 2026863
Sep 30, 2026773
Sep 29, 2026725
Sep 28, 2026665
Sep 27, 2026503
Sep 26, 2026455
Sep 25, 2026448
Sep 24, 2026365
Sep 23, 2026350
Sep 22, 2026363
Sep 21, 2026442
Sep 20, 2026558
Sep 19, 2026569
Sep 18, 2026609
Sep 17, 2026663
Sep 16, 2026666
Sep 15, 2026782
Sep 14, 2026761
Sep 13, 2026729
Sep 12, 2026779
Sep 11, 2026799
Sep 10, 2026785
Sep 9, 2026786
Sep 8, 2026706
Sep 7, 2026705

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

Health Score

87/100Excellent

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/908347705-activity-log.svg)](https://payloaddirectory.dev/plugins/908347705-activity-log)
HTML
<a href="https://payloaddirectory.dev/plugins/908347705-activity-log"><img src="https://payloaddirectory.dev/badge/908347705-activity-log.svg" alt="Payload Directory"></a>
Updated Nov 26, 2026Created Dec 25, 2024Published Nov 26, 2026

README

Activity log

Keep an eye on everything happening in your cms.

Compatibility table

Payload versionActivity log version
v3v1.x
v4v2.x

Payload 4 versions are prereleases. Install them with pnpm add @payload-bites/activity-log@beta.

Quick start

  1. Install the plugin:
pnpm add @payload-bites/activity-log
  1. Add the plugin to your payload.config.ts:
import { activityLogPlugin } from "@payload-bites/activity-log";

export default buildConfig({
  plugins: [
    activityLogPlugin({
      collections: {
        posts: {},
        pages: {
          enableUpdateLogging: false,
          enableIpAddressLogging: false,
          enableDeviceInfoLogging: false,
        },
      },
      globals: {
        footer: {},
      },
      enableDraftAutosaveLogging: false,
      overrideActivityLogCollection: (collection) => ({
        ...collection,
        access: {
          ...collection?.access,
          update: () => true,
          create: () => true,
        },
        admin: {
          ...collection?.admin,
          group: "Reporting",
        },
      }),
    }),
  ],
});

Defaults

For defaults, refer to defaults.ts.

Options

For options, refer to types.ts.

Roadmap

  • Capture user logins and logouts
  • Record failed login attempts
  • Custom fields in activity log collection
  • Export to CSV or JSON

Similar plugins