Adds a Comments collection, a Comments Settings global and a Comment Statistics admin view to Payload 3. Visitors can comment anonymously with a mood emoji, react to comments and reply up to three levels deep. Comment bodies accept a safe Markdown subset, and approval before publishing can be toggled at runtime. A ready-made React component is included, or you can use the REST API. Requires a salt environment variable for IP hashing.
Anonymous comments and reactions plugin for Payload 3.x with optional moderation and 3-level threads.
Installation
npm i @navanem/payload-comments1
Stars
0
Forks
9
Open Issues
2 weeks ago
Last Updated
0
Weekly Downloads
v
npm Version
Dependencies
10 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 1 |
| Dec 4, 2026 | 1 |
| Dec 3, 2026 | 1 |
| Dec 2, 2026 | 1 |
| Dec 1, 2026 | 1 |
| Nov 30, 2026 | 1 |
| Nov 29, 2026 | 1 |
| Nov 28, 2026 | 1 |
| Nov 27, 2026 | 1 |
| Nov 26, 2026 | 1 |
| Nov 25, 2026 | 1 |
| Nov 24, 2026 | 1 |
| Nov 23, 2026 | 1 |
| Nov 22, 2026 | 1 |
| Nov 21, 2026 | 1 |
| Nov 20, 2026 | 1 |
| Nov 19, 2026 | 1 |
| Nov 18, 2026 | 1 |
| Nov 17, 2026 | 1 |
| Nov 16, 2026 | 1 |
| Nov 15, 2026 | 1 |
| Nov 14, 2026 | 1 |
| Nov 13, 2026 | 1 |
| Nov 12, 2026 | 1 |
| Nov 11, 2026 | 1 |
| Nov 10, 2026 | 1 |
| Nov 9, 2026 | 1 |
| Nov 8, 2026 | 1 |
| Nov 7, 2026 | 1 |
| Nov 6, 2026 | 1 |
| Nov 5, 2026 | 1 |
| Nov 4, 2026 | 1 |
| Nov 3, 2026 | 1 |
| Nov 2, 2026 | 1 |
| Nov 1, 2026 | 1 |
| Oct 31, 2026 | 1 |
| Oct 30, 2026 | 1 |
| Oct 29, 2026 | 1 |
| Oct 28, 2026 | 1 |
| Oct 27, 2026 | 1 |
| Oct 26, 2026 | 1 |
| Oct 25, 2026 | 1 |
| Oct 24, 2026 | 1 |
| Oct 23, 2026 | 1 |
| Oct 22, 2026 | 1 |
| Oct 21, 2026 | 1 |
| Oct 20, 2026 | 1 |
| Oct 19, 2026 | 1 |
| Oct 18, 2026 | 1 |
| Oct 17, 2026 | 1 |
| Oct 16, 2026 | 1 |
| Oct 15, 2026 | 1 |
| Oct 14, 2026 | 1 |
| Oct 13, 2026 | 1 |
| Oct 12, 2026 | 1 |
| Oct 11, 2026 | 1 |
| Oct 10, 2026 | 1 |
| Oct 9, 2026 | 1 |
| Oct 8, 2026 | 1 |
| Oct 7, 2026 | 1 |
| Oct 6, 2026 | 1 |
| Oct 5, 2026 | 1 |
| Oct 4, 2026 | 1 |
| Oct 3, 2026 | 1 |
| Oct 2, 2026 | 1 |
| Oct 1, 2026 | 1 |
| Sep 30, 2026 | 1 |
| Sep 29, 2026 | 1 |
| Sep 28, 2026 | 1 |
| Sep 27, 2026 | 1 |
| Sep 26, 2026 | 1 |
| Sep 25, 2026 | 1 |
| Sep 24, 2026 | 1 |
| Sep 23, 2026 | 1 |
| Sep 22, 2026 | 1 |
| Sep 21, 2026 | 1 |
| Sep 20, 2026 | 1 |
| Sep 19, 2026 | 1 |
| Sep 18, 2026 | 1 |
| Sep 17, 2026 | 1 |
| Sep 16, 2026 | 1 |
| Sep 15, 2026 | 1 |
| Sep 14, 2026 | 1 |
| Sep 13, 2026 | 1 |
| Sep 12, 2026 | 1 |
| Sep 11, 2026 | 1 |
| Sep 10, 2026 | 1 |
| Sep 9, 2026 | 1 |
| Sep 8, 2026 | 1 |
| Sep 7, 2026 | 1 |
| Sep 6, 2026 | 1 |
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
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/1273411047-root)<a href="https://payloaddirectory.dev/plugins/1273411047-root"><img src="https://payloaddirectory.dev/badge/1273411047-root.svg" alt="Payload Directory"></a>README
Anonymous comments and reactions for Payload 3.x — with Markdown comment bodies, optional pre-publish moderation, mood emojis, reactions on comments, and up to 3 levels of replies.
<Comments /> React component, or build your own on the REST API.The Comments widget on a live article
The bundled <Comments /> component on a published page: a threaded comment with a Markdown-rendered body, a mood emoji and a date, a reaction row and a reply button, plus the composer (name, optional email, Markdown text and mood).
The comments moderation queue in the Payload admin
Every comment lands in a standard Payload collection, so moderation uses the admin UI you already know. The list is your moderation queue — author, excerpt, a Thread indicator (top-level vs "↳ Reply to <author>"), target document, status and date — with native filtering and bulk actions; approving a pending comment publishes it instantly.
A single comment's detail view in the admin
Opening a comment shows its full record — author and email, mood, the related document and threaded parent, the salted IP/fingerprint hashes used for anti-spam — and the status selector to approve, mark as spam, or trash it.
The Comments Settings global
The Comments Settings global toggles commenting per collection at runtime and exposes the Require approval switch, so you can turn mandatory pre-publish moderation on or off without a redeploy.
The Comment Statistics admin view
The Comment Statistics view: KPIs (totals by status, reaction count, per-day rate), per-collection and per-mood breakdowns, and a recent-comments table — all filterable by collection, status and period, and auth-gated server-side.
pnpm add @navanem/payload-comments
# or from Git until published:
pnpm add github:navanem/payload-comments
payload, react and react-dom are peer dependencies.
// payload.config.ts
import { commentsPlugin } from '@navanem/payload-comments'
export default buildConfig({
// ...
plugins: [
commentsPlugin({
enabledCollections: ['posts', 'pages'],
requireApproval: true,
requireEmail: false,
}),
],
})
Set a salt for IP hashing in your environment:
COMMENTS_IP_SALT="a-long-random-string"
The plugin registers a Comments Settings global (admin group "Comments") where
an admin can toggle commenting per collection at runtime. When a collection is
disabled, new submissions are rejected and the <Comments /> widget shows a
"closed" notice instead of the thread. Unset = every configured collection is
enabled (fail-open). The same global has a Require approval checkbox to turn
mandatory moderation on/off at runtime; the submit flow reads it live and falls
back to the requireApproval option.
It also registers a Comment Statistics view at /admin/comments-statistics
(KPIs, per-collection and per-mood breakdowns, and recent comments, filterable by
collection / status / period), plus a nav link to it via afterNavLinks. The view
queries moderation data server-side and is gated on an authenticated admin user.
The view and nav-link components are referenced through the host import map at the
vendored path @/plugins/payload-comments/components/*. If you vendor this plugin
under src/plugins/payload-comments, add the matching import-map entries (run
payload generate:importmap, or add them by hand). Hosts that ship a custom Nav
can ignore the afterNavLinks entry and place the Statistics link themselves.
import { Comments } from '@navanem/payload-comments/client'
export default function PostPage({ post }) {
return <Comments relationTo="posts" docId={post.id} />
}
See docs/frontend-integration.md for props, styling and a no-component (raw API) integration.
MIT © navanem
Built by navanem and running in production on www.navanem.com.
payload plugin comments
Document-level and field-level comments with mentions, resolution and email notifications for Payload admin
757.0k/wk37v3
payload plugin comments
Adds a configurable comments collection with a submission endpoint, approval flow and email alerts
4297/wk63v1
content freeze
Block create, update and delete on chosen collections and globals while a content freeze is active
85207/wk115v4
payload better editor
Side-by-side live-preview iframe with a sidebar for editing individual blocks in the Payload edit view
781.2k/wk119v3
payload plugin scheduling
Schedule future publication of drafts on collections and globals with a secured cron endpoint
77783/wk37v3
payload plugin html preview
Live preview and click-to-edit in the Payload admin for any frontend that renders HTML, no framework needed
74451/wk37v3