Adds createdBy and lastModifiedBy audit fields to collections and globals through a Payload plugin configured in the plugins array. This version targets Payload 4 prereleases and is deprecated in favor of core authorship. It exists to ease the upgrade, and while installed it disables core authorship on decorated entities to avoid a duplicate updatedBy field.
add createdBy and lastModifiedBy fields to collections and globals
Installation
npm i @payload-bites/audit-fields115
Stars
7
Forks
2
Open Issues
1 weeks ago
Last Updated
2.3k
Weekly Downloads
v1.8.1
npm Version
43.5 KB
Unpacked Size
0
Dependencies
115+3 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 115 |
| Dec 5, 2026 | 115 |
| Dec 4, 2026 | 115 |
| Dec 3, 2026 | 115 |
| Dec 2, 2026 | 115 |
| Dec 1, 2026 | 115 |
| Nov 30, 2026 | 115 |
| Nov 29, 2026 | 115 |
| Nov 28, 2026 | 115 |
| Nov 27, 2026 | 115 |
| Nov 26, 2026 | 115 |
| Nov 25, 2026 | 114 |
| Nov 24, 2026 | 114 |
| Nov 23, 2026 | 114 |
| Nov 22, 2026 | 114 |
| Nov 21, 2026 | 114 |
| Nov 20, 2026 | 114 |
| Nov 19, 2026 | 114 |
| Nov 18, 2026 | 114 |
| Nov 17, 2026 | 114 |
| Nov 16, 2026 | 114 |
| Nov 15, 2026 | 114 |
| Nov 14, 2026 | 114 |
| Nov 13, 2026 | 114 |
| Nov 12, 2026 | 114 |
| Nov 11, 2026 | 114 |
| Nov 10, 2026 | 114 |
| Nov 9, 2026 | 114 |
| Nov 8, 2026 | 114 |
| Nov 7, 2026 | 114 |
| Nov 6, 2026 | 114 |
| Nov 5, 2026 | 114 |
| Nov 4, 2026 | 114 |
| Nov 3, 2026 | 114 |
| Nov 2, 2026 | 114 |
| Nov 1, 2026 | 114 |
| Oct 31, 2026 | 114 |
| Oct 30, 2026 | 114 |
| Oct 29, 2026 | 114 |
| Oct 28, 2026 | 114 |
| Oct 27, 2026 | 114 |
| Oct 26, 2026 | 114 |
| Oct 25, 2026 | 114 |
| Oct 24, 2026 | 114 |
| Oct 23, 2026 | 114 |
| Oct 22, 2026 | 114 |
| Oct 21, 2026 | 113 |
| Oct 20, 2026 | 113 |
| Oct 19, 2026 | 113 |
| Oct 18, 2026 | 113 |
| Oct 17, 2026 | 113 |
| Oct 16, 2026 | 113 |
| Oct 15, 2026 | 113 |
| Oct 14, 2026 | 113 |
| Oct 13, 2026 | 113 |
| Oct 12, 2026 | 113 |
| Oct 11, 2026 | 113 |
| Oct 10, 2026 | 113 |
| Oct 9, 2026 | 113 |
| Oct 8, 2026 | 113 |
| Oct 7, 2026 | 113 |
| Oct 6, 2026 | 113 |
| Oct 5, 2026 | 113 |
| Oct 4, 2026 | 113 |
| Oct 3, 2026 | 113 |
| Oct 2, 2026 | 113 |
| Oct 1, 2026 | 113 |
| Sep 30, 2026 | 113 |
| Sep 29, 2026 | 113 |
| Sep 28, 2026 | 113 |
| Sep 27, 2026 | 113 |
| Sep 26, 2026 | 113 |
| Sep 25, 2026 | 113 |
| Sep 24, 2026 | 113 |
| Sep 23, 2026 | 113 |
| Sep 22, 2026 | 113 |
| Sep 21, 2026 | 113 |
| Sep 20, 2026 | 113 |
| Sep 19, 2026 | 113 |
| Sep 18, 2026 | 113 |
| Sep 17, 2026 | 113 |
| Sep 16, 2026 | 113 |
| Sep 15, 2026 | 113 |
| Sep 14, 2026 | 113 |
| Sep 13, 2026 | 112 |
| Sep 12, 2026 | 112 |
| Sep 11, 2026 | 112 |
| Sep 10, 2026 | 112 |
| Sep 9, 2026 | 112 |
| Sep 8, 2026 | 112 |
| Sep 7, 2026 | 112 |
Shared by 6 plugins in rilrom/payload-bites.
2.3K+1.2K since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 2,271 |
| Dec 5, 2026 | 2,356 |
| Dec 4, 2026 | 2,173 |
| Dec 3, 2026 | 1,916 |
| Dec 2, 2026 | 1,878 |
| Dec 1, 2026 | 2,072 |
| Nov 30, 2026 | 2,216 |
| Nov 29, 2026 | 2,383 |
| Nov 28, 2026 | 2,070 |
| Nov 27, 2026 | 2,027 |
| Nov 26, 2026 | 2,095 |
| Nov 25, 2026 | 2,086 |
| Nov 24, 2026 | 2,095 |
| Nov 23, 2026 | 1,972 |
| Nov 22, 2026 | 1,762 |
| Nov 21, 2026 | 1,671 |
| Nov 20, 2026 | 1,703 |
| Nov 19, 2026 | 1,948 |
| Nov 18, 2026 | 2,052 |
| Nov 17, 2026 | 1,817 |
| Nov 16, 2026 | 2,143 |
| Nov 15, 2026 | 2,118 |
| Nov 14, 2026 | 2,388 |
| Nov 13, 2026 | 2,624 |
| Nov 12, 2026 | 2,282 |
| Nov 11, 2026 | 2,088 |
| Nov 10, 2026 | 2,365 |
| Nov 9, 2026 | 1,991 |
| Nov 8, 2026 | 2,150 |
| Nov 7, 2026 | 2,058 |
| Nov 6, 2026 | 1,979 |
| Nov 5, 2026 | 1,929 |
| Nov 4, 2026 | 2,108 |
| Nov 3, 2026 | 1,944 |
| Nov 2, 2026 | 2,048 |
| Nov 1, 2026 | 2,027 |
| Oct 31, 2026 | 2,127 |
| Oct 30, 2026 | 2,093 |
| Oct 29, 2026 | 1,870 |
| Oct 28, 2026 | 1,495 |
| Oct 27, 2026 | 1,572 |
| Oct 26, 2026 | 1,527 |
| Oct 25, 2026 | 1,742 |
| Oct 24, 2026 | 1,719 |
| Oct 23, 2026 | 1,385 |
| Oct 22, 2026 | 1,798 |
| Oct 21, 2026 | 2,051 |
| Oct 20, 2026 | 2,026 |
| Oct 19, 2026 | 2,094 |
| Oct 18, 2026 | 1,721 |
| Oct 17, 2026 | 1,611 |
| Oct 16, 2026 | 1,829 |
| Oct 15, 2026 | 1,627 |
| Oct 14, 2026 | 1,515 |
| Oct 13, 2026 | 1,350 |
| Oct 12, 2026 | 1,241 |
| Oct 11, 2026 | 1,327 |
| Oct 10, 2026 | 1,263 |
| Oct 9, 2026 | 1,245 |
| Oct 8, 2026 | 1,285 |
| Oct 7, 2026 | 1,370 |
| Oct 6, 2026 | 1,422 |
| Oct 5, 2026 | 1,389 |
| Oct 4, 2026 | 1,394 |
| Oct 3, 2026 | 1,292 |
| Oct 2, 2026 | 1,230 |
| Oct 1, 2026 | 1,246 |
| Sep 30, 2026 | 1,163 |
| Sep 29, 2026 | 1,124 |
| Sep 28, 2026 | 1,128 |
| Sep 27, 2026 | 995 |
| Sep 26, 2026 | 1,023 |
| Sep 25, 2026 | 1,175 |
| Sep 24, 2026 | 1,136 |
| Sep 23, 2026 | 1,211 |
| Sep 22, 2026 | 1,222 |
| Sep 21, 2026 | 1,251 |
| Sep 20, 2026 | 1,304 |
| Sep 19, 2026 | 1,306 |
| Sep 18, 2026 | 1,226 |
| Sep 17, 2026 | 1,168 |
| Sep 16, 2026 | 1,117 |
| Sep 15, 2026 | 1,290 |
| Sep 14, 2026 | 1,342 |
| Sep 13, 2026 | 1,392 |
| Sep 12, 2026 | 1,397 |
| Sep 11, 2026 | 1,372 |
| Sep 10, 2026 | 1,335 |
| Sep 9, 2026 | 1,348 |
| Sep 8, 2026 | 1,206 |
| Sep 7, 2026 | 1,119 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/908347705-audit-fields)<a href="https://payloaddirectory.dev/plugins/908347705-audit-fields"><img src="https://payloaddirectory.dev/badge/908347705-audit-fields.svg" alt="Payload Directory"></a>README
[!WARNING] Deprecated. Payload 4 has built-in authorship, so use that instead. v2.x only exists to ease the upgrade. See Migrating to core authorship.
Add createdBy and lastModifiedBy audit fields to collections and globals.
| Payload version | Audit fields version |
|---|---|
| v3 | v1.x |
| v4 | v2.x (deprecated) |
Payload 4 versions are prereleases. Install them with pnpm add @payload-bites/audit-fields@beta.
pnpm add @payload-bites/audit-fields
payload.config.ts:/// ....
import { auditFieldsPlugin } from "@payload-bites/audit-fields";
export default buildConfig({
// ...
plugins: [
// ...
auditFieldsPlugin({
// ...
}),
],
});
Core authorship stores the same { relationTo, value } shape. createdBy carries over unchanged and lastModifiedBy becomes updatedBy (core also sets updatedBy on create). Use your custom field names if you changed them.
To move over, remove the plugin and run payload migrate:create, then edit the generated migration to copy lastModifiedBy into updatedBy before the old column is dropped.
While installed, v2.x sets authorship: false on everything it decorates (unless you set authorship yourself) so core does not add a duplicate updatedBy field.
For defaults, refer to defaults.ts.
For options, refer to types.ts.
Topics
payload plugin audit
Audit trail for Payload collections that records who created or updated documents and stores update deltas
6134/wk1v3
activity log
Record create, update and delete activity on selected collections and globals in a dedicated log collection
87639/wk115v4
audit fields
Track who created and last modified each document, with a Modified By column in the versions view
62176/wk16v3
authors info
Automatically record who created, edited and published documents across collections and globals
59277/wk183v3
payload plugin author fields
Adds createdBy and updatedBy fields to all collections and globals in a Payload app
3676/wk43v1 v2
payload hooks
Identifier-only audit logging hooks for Payload collections, plus a helper to run callbacks after transaction commit
77225/wk3v3