Adds a notifications collection and a bell in the admin header showing an unread count and a dropdown feed. New notifications are stored as database rows and pushed live to open admin tabs via server-sent events. Notifications are created with a pushNotification helper from any hook, endpoint or job. Requires Payload 3 and works best on a long-running Node process; optional multi-tenant scoping is available.
In-dashboard notifications for the Payload admin, with a live SSE bell.
Installation
npm i @elghaied/payload-plugin-notifications7
Stars
0
Forks
0
Open Issues
6 months ago
Last Updated
9
Weekly Downloads
v1.0.0
npm Version
118.9 KB
Unpacked Size
0
Dependencies
7+2 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 7 |
| Dec 5, 2026 | 7 |
| Dec 4, 2026 | 7 |
| Dec 3, 2026 | 7 |
| Dec 2, 2026 | 7 |
| Dec 1, 2026 | 7 |
| Nov 30, 2026 | 7 |
| Nov 29, 2026 | 7 |
| Nov 28, 2026 | 7 |
| Nov 27, 2026 | 7 |
| Nov 26, 2026 | 7 |
| Nov 25, 2026 | 7 |
| Nov 24, 2026 | 7 |
| Nov 23, 2026 | 7 |
| Nov 22, 2026 | 7 |
| Nov 21, 2026 | 7 |
| Nov 20, 2026 | 7 |
| Nov 19, 2026 | 7 |
| Nov 18, 2026 | 7 |
| Nov 17, 2026 | 7 |
| Nov 16, 2026 | 7 |
| Nov 15, 2026 | 7 |
| Nov 14, 2026 | 7 |
| Nov 13, 2026 | 7 |
| Nov 12, 2026 | 7 |
| Nov 11, 2026 | 7 |
| Nov 10, 2026 | 7 |
| Nov 9, 2026 | 7 |
| Nov 8, 2026 | 7 |
| Nov 7, 2026 | 7 |
| Nov 6, 2026 | 7 |
| Nov 5, 2026 | 7 |
| Nov 4, 2026 | 7 |
| Nov 3, 2026 | 7 |
| Nov 2, 2026 | 7 |
| Nov 1, 2026 | 7 |
| Oct 31, 2026 | 7 |
| Oct 30, 2026 | 7 |
| Oct 29, 2026 | 7 |
| Oct 28, 2026 | 7 |
| Oct 27, 2026 | 7 |
| Oct 26, 2026 | 7 |
| Oct 25, 2026 | 7 |
| Oct 24, 2026 | 7 |
| Oct 23, 2026 | 7 |
| Oct 22, 2026 | 7 |
| Oct 21, 2026 | 7 |
| Oct 20, 2026 | 7 |
| Oct 19, 2026 | 7 |
| Oct 18, 2026 | 7 |
| Oct 17, 2026 | 7 |
| Oct 16, 2026 | 7 |
| Oct 15, 2026 | 7 |
| Oct 14, 2026 | 7 |
| Oct 13, 2026 | 7 |
| Oct 12, 2026 | 7 |
| Oct 11, 2026 | 7 |
| Oct 10, 2026 | 7 |
| Oct 9, 2026 | 6 |
| Oct 8, 2026 | 6 |
| Oct 7, 2026 | 6 |
| Oct 6, 2026 | 6 |
| Oct 5, 2026 | 6 |
| Oct 4, 2026 | 6 |
| Oct 3, 2026 | 6 |
| Oct 2, 2026 | 6 |
| Oct 1, 2026 | 6 |
| Sep 30, 2026 | 6 |
| Sep 29, 2026 | 6 |
| Sep 28, 2026 | 6 |
| Sep 27, 2026 | 6 |
| Sep 26, 2026 | 5 |
| Sep 25, 2026 | 5 |
| Sep 24, 2026 | 5 |
| Sep 23, 2026 | 5 |
| Sep 22, 2026 | 5 |
| Sep 21, 2026 | 5 |
| Sep 20, 2026 | 5 |
| Sep 19, 2026 | 5 |
| Sep 18, 2026 | 5 |
| Sep 17, 2026 | 5 |
| Sep 16, 2026 | 5 |
| Sep 15, 2026 | 5 |
| Sep 14, 2026 | 5 |
| Sep 13, 2026 | 5 |
| Sep 12, 2026 | 5 |
| Sep 11, 2026 | 5 |
| Sep 10, 2026 | 5 |
| Sep 9, 2026 | 5 |
| Sep 8, 2026 | 5 |
| Sep 7, 2026 | 5 |
7−9 since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 7 |
| Dec 5, 2026 | 8 |
| Dec 4, 2026 | 14 |
| Dec 3, 2026 | 16 |
| Dec 2, 2026 | 16 |
| Dec 1, 2026 | 17 |
| Nov 30, 2026 | 17 |
| Nov 29, 2026 | 19 |
| Nov 28, 2026 | 16 |
| Nov 27, 2026 | 15 |
| Nov 26, 2026 | 18 |
| Nov 25, 2026 | 21 |
| Nov 24, 2026 | 21 |
| Nov 23, 2026 | 22 |
| Nov 22, 2026 | 24 |
| Nov 21, 2026 | 30 |
| Nov 20, 2026 | 26 |
| Nov 19, 2026 | 20 |
| Nov 18, 2026 | 20 |
| Nov 17, 2026 | 17 |
| Nov 16, 2026 | 17 |
| Nov 15, 2026 | 13 |
| Nov 14, 2026 | 12 |
| Nov 13, 2026 | 11 |
| Nov 12, 2026 | 12 |
| Nov 11, 2026 | 11 |
| Nov 10, 2026 | 12 |
| Nov 9, 2026 | 13 |
| Nov 8, 2026 | 13 |
| Nov 7, 2026 | 9 |
| Nov 6, 2026 | 9 |
| Nov 5, 2026 | 10 |
| Nov 4, 2026 | 8 |
| Nov 3, 2026 | 11 |
| Nov 2, 2026 | 10 |
| Nov 1, 2026 | 11 |
| Oct 31, 2026 | 10 |
| Oct 30, 2026 | 9 |
| Oct 29, 2026 | 7 |
| Oct 28, 2026 | 7 |
| Oct 27, 2026 | 6 |
| Oct 26, 2026 | 7 |
| Oct 25, 2026 | 7 |
| Oct 24, 2026 | 11 |
| Oct 23, 2026 | 11 |
| Oct 22, 2026 | 13 |
| Oct 21, 2026 | 14 |
| Oct 20, 2026 | 13 |
| Oct 19, 2026 | 12 |
| Oct 18, 2026 | 14 |
| Oct 17, 2026 | 9 |
| Oct 16, 2026 | 10 |
| Oct 15, 2026 | 9 |
| Oct 14, 2026 | 9 |
| Oct 13, 2026 | 8 |
| Oct 12, 2026 | 7 |
| Oct 11, 2026 | 6 |
| Oct 10, 2026 | 7 |
| Oct 9, 2026 | 10 |
| Oct 8, 2026 | 10 |
| Oct 7, 2026 | 10 |
| Oct 6, 2026 | 10 |
| Oct 5, 2026 | 11 |
| Oct 4, 2026 | 11 |
| Oct 3, 2026 | 15 |
| Oct 2, 2026 | 15 |
| Oct 1, 2026 | 14 |
| Sep 30, 2026 | 15 |
| Sep 29, 2026 | 19 |
| Sep 28, 2026 | 25 |
| Sep 27, 2026 | 26 |
| Sep 26, 2026 | 32 |
| Sep 25, 2026 | 29 |
| Sep 24, 2026 | 30 |
| Sep 23, 2026 | 28 |
| Sep 22, 2026 | 25 |
| Sep 21, 2026 | 19 |
| Sep 20, 2026 | 17 |
| Sep 19, 2026 | 8 |
| Sep 18, 2026 | 7 |
| Sep 17, 2026 | 8 |
| Sep 16, 2026 | 12 |
| Sep 15, 2026 | 12 |
| Sep 14, 2026 | 11 |
| Sep 13, 2026 | 10 |
| Sep 12, 2026 | 13 |
| Sep 11, 2026 | 14 |
| Sep 10, 2026 | 12 |
| Sep 9, 2026 | 10 |
| Sep 8, 2026 | 11 |
| Sep 7, 2026 | 16 |
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/1261882090-root)<a href="https://payloaddirectory.dev/plugins/1261882090-root"><img src="https://payloaddirectory.dev/badge/1261882090-root.svg" alt="Payload Directory"></a>README
In-dashboard notifications for the Payload admin, with a live bell that updates without a page refresh.
NotificationBell in the admin header — unread count + dropdown feed with compact relative
timestamps ("now", "40m", "2d"); unread rows highlighted, read rows dimmed; click a row to mark
it read and go where it points.links are scheme-validated before navigation (no javascript:/data: XSS).ar, de, en, es, fr, hi, id, it, pl, ru, tr, zh), RTL-aware; user translations override.| Bell dropdown | Custom list view |
|---|---|
![]() | ![]() |
Unread rows carry an accent bar and bolded text; read rows are dimmed. Times are compact and relative (now, 8m, 3h, 2d, 1w), with the full timestamp on hover.
Two decoupled layers:
notifications collection row. Created via pushNotification(). A user
sees their notifications whether or not a tab was open when they were created.afterChange hook on the collection emits each new row over SSE to that
recipient's open admin tabs (in-memory connection registry). This is the only live-push path,
and it's a side effect of the DB write — never a separate path.Designed for a long-running Node process (self-hosted), where SSE connections hold. On serverless or behind a buffering proxy the bell still shows accurate counts on mount and on dropdown-open — it just won't pop instantly.
pnpm add @elghaied/payload-plugin-notifications
// payload.config.ts
import { payloadPluginNotifications } from '@elghaied/payload-plugin-notifications'
export default buildConfig({
plugins: [
payloadPluginNotifications(),
],
})
That adds the notifications collection (hidden from the nav) and the live bell in the admin header.
pushNotification is a thin wrapper over payload.create (with overrideAccess), callable from any
hook, endpoint, or job:
import { pushNotification } from '@elghaied/payload-plugin-notifications'
await pushNotification(payload, {
recipient: user.id,
message: 'Invoice #1042 was paid',
link: '/admin/collections/invoices/1042',
type: 'success', // 'info' | 'warning' | 'success'
})
// Inside a hook, pass `req` so the create joins the same transaction:
await pushNotification(req.payload, { recipient, message: 'Updated', req })
REST create is denied — notifications are system-generated. Each user can only read, mark-read,
and dismiss their own notifications.
payloadPluginNotifications({
disabled, // boolean — default false. Installed but inert; DB schema stays stable.
notificationsSlug, // string — default 'notifications'
usersSlug, // string — default 'users'. The auth collection notifications target.
tenants: { // object — OMIT for single-tenant (recipient-only scoping).
tenantsSlug, // string — default 'tenants'
tenantFieldName, // string — default 'tenant'
},
hideFromNav, // boolean — default true. The bell is the UI surface.
})
When the tenants block is set, the plugin adds a required tenant relationship field and ANDs a
tenant filter into read access. It interoperates with @payloadcms/plugin-multi-tenant but doesn't
depend on it.
The default filter assumes one tenant per user (
user[tenantFieldName]). The official multi-tenant plugin models users with atenantsarray — for that model you'll want a custom tenant filter (atenantFilterconfig hook is the planned extension point).
| field | type | notes |
|---|---|---|
recipient | relationship → users | required |
tenant | relationship → tenants | only when multi-tenant is enabled (required) |
message | text | required |
link | text | e.g. /admin/collections/invoices/123 |
type | select | info | warning | success |
read | checkbox | default false |
pushNotification() is the single seam where payload.jobs.queue()
would swap in for async or scheduled/digest notifications.NotificationRegistry interface (in-memory today) accepts a
distributed implementation (Postgres LISTEN/NOTIFY or Mongo change streams). No Redis.MIT
payload plugin notifications
Recipient-scoped notification inbox collection with optional SSE live updates for Payload 3
6015/wk3v3
payload plugin notifications
In-site notices with per-kind email copies, user preferences and a retrying send queue
74127/wk0v3
payload notifications
Notifications collection with channels, per-user subscriptions, read state and optional web push delivery
67141/wk1v3
payload
Push publish, update and delete events from Payload to Hibira and refresh Next.js pages automatically
6814/wk0v3
payload plugin sms
Send SMS from Payload through Twilio, Telnyx, Plivo, Vonage or AWS SNS using a single sendSMS call
5380/wk7v3
localized slugs
Copies localized slug and full path values into a per-locale localizedSlugs field for multi-language Payload sites
7881/wk9v3