Adds an admin-feedback collection and a floating widget that captures a message, page path, optional CSS selector and annotated screenshots. Reports trigger an email through the Payload email adapter. An optional issue tracker adds statuses, assignees, duplicate grouping and a grouped Issues view. Requires Payload 3.84.1 or newer and React 19.
Floating admin feedback widget plugin for Payload CMS.
Installation
npm i @matija2209/payload-plugin-admin-feedback5
Stars
0
Forks
0
Open Issues
5 days ago
Last Updated
496
Weekly Downloads
v1.3.0
npm Version
333.3 KB
Unpacked Size
0
Dependencies
50 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 5 |
| Dec 5, 2026 | 5 |
| Dec 4, 2026 | 5 |
| Dec 3, 2026 | 5 |
| Dec 2, 2026 | 5 |
| Dec 1, 2026 | 5 |
| Nov 30, 2026 | 5 |
| Nov 29, 2026 | 5 |
| Nov 28, 2026 | 5 |
| Nov 27, 2026 | 5 |
| Nov 26, 2026 | 5 |
| Nov 25, 2026 | 5 |
| Nov 24, 2026 | 5 |
| Nov 23, 2026 | 5 |
| Nov 22, 2026 | 5 |
| Nov 21, 2026 | 5 |
| Nov 20, 2026 | 5 |
| Nov 19, 2026 | 5 |
| Nov 18, 2026 | 5 |
| Nov 17, 2026 | 5 |
| Nov 16, 2026 | 5 |
| Nov 15, 2026 | 5 |
| Nov 14, 2026 | 5 |
| Nov 13, 2026 | 5 |
| Nov 12, 2026 | 5 |
| Nov 11, 2026 | 5 |
| Nov 10, 2026 | 5 |
| Nov 9, 2026 | 5 |
| Nov 8, 2026 | 5 |
| Nov 7, 2026 | 5 |
| Nov 6, 2026 | 5 |
| Nov 5, 2026 | 5 |
| Nov 4, 2026 | 5 |
| Nov 3, 2026 | 5 |
| Nov 2, 2026 | 5 |
| Nov 1, 2026 | 5 |
| Oct 31, 2026 | 5 |
| Oct 30, 2026 | 5 |
| Oct 29, 2026 | 5 |
| Oct 28, 2026 | 5 |
| Oct 27, 2026 | 5 |
| Oct 26, 2026 | 5 |
| Oct 25, 2026 | 5 |
| Oct 24, 2026 | 5 |
| Oct 23, 2026 | 5 |
| Oct 22, 2026 | 5 |
| Oct 21, 2026 | 5 |
| Oct 20, 2026 | 5 |
| Oct 19, 2026 | 5 |
| Oct 18, 2026 | 5 |
| Oct 17, 2026 | 5 |
| Oct 16, 2026 | 5 |
| Oct 15, 2026 | 5 |
| Oct 14, 2026 | 5 |
| Oct 13, 2026 | 5 |
| Oct 12, 2026 | 5 |
| Oct 11, 2026 | 5 |
| Oct 10, 2026 | 5 |
| Oct 9, 2026 | 5 |
| Oct 8, 2026 | 5 |
| Oct 7, 2026 | 5 |
| Oct 6, 2026 | 5 |
| Oct 5, 2026 | 5 |
| Oct 4, 2026 | 5 |
| Oct 3, 2026 | 5 |
| Oct 2, 2026 | 5 |
| Oct 1, 2026 | 5 |
| Sep 30, 2026 | 5 |
| Sep 29, 2026 | 5 |
| Sep 28, 2026 | 5 |
| Sep 27, 2026 | 5 |
| 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 |
487+478 since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 487 |
| Dec 5, 2026 | 464 |
| Dec 4, 2026 | 436 |
| Dec 3, 2026 | 414 |
| Dec 2, 2026 | 192 |
| Dec 1, 2026 | 18 |
| Nov 30, 2026 | 18 |
| Nov 29, 2026 | 14 |
| Nov 28, 2026 | 8 |
| Nov 27, 2026 | 8 |
| Nov 26, 2026 | 7 |
| Nov 25, 2026 | 7 |
| Nov 24, 2026 | 4 |
| Nov 23, 2026 | 4 |
| Nov 22, 2026 | 6 |
| Nov 21, 2026 | 6 |
| Nov 20, 2026 | 3 |
| Nov 19, 2026 | 3 |
| Nov 18, 2026 | 5 |
| Nov 17, 2026 | 4 |
| Nov 16, 2026 | 4 |
| Nov 15, 2026 | 5 |
| Nov 14, 2026 | 5 |
| Nov 13, 2026 | 5 |
| Nov 12, 2026 | 9 |
| Nov 11, 2026 | 10 |
| Nov 10, 2026 | 14 |
| Nov 9, 2026 | 14 |
| Nov 8, 2026 | 14 |
| Nov 7, 2026 | 14 |
| Nov 6, 2026 | 15 |
| Nov 5, 2026 | 11 |
| Nov 4, 2026 | 11 |
| Nov 3, 2026 | 7 |
| Nov 2, 2026 | 7 |
| Nov 1, 2026 | 4 |
| Oct 31, 2026 | 4 |
| Oct 30, 2026 | 3 |
| Oct 29, 2026 | 3 |
| Oct 28, 2026 | 0 |
| Oct 27, 2026 | 1 |
| Oct 26, 2026 | 2 |
| Oct 25, 2026 | 7 |
| Oct 24, 2026 | 8 |
| Oct 23, 2026 | 8 |
| Oct 22, 2026 | 15 |
| Oct 21, 2026 | 15 |
| Oct 20, 2026 | 14 |
| Oct 19, 2026 | 13 |
| Oct 18, 2026 | 9 |
| Oct 17, 2026 | 8 |
| Oct 16, 2026 | 8 |
| Oct 15, 2026 | 1 |
| Oct 14, 2026 | 1 |
| Oct 13, 2026 | 1 |
| Oct 12, 2026 | 3 |
| Oct 11, 2026 | 3 |
| Oct 10, 2026 | 3 |
| Oct 9, 2026 | 3 |
| Oct 8, 2026 | 3 |
| Oct 7, 2026 | 3 |
| Oct 6, 2026 | 3 |
| Oct 5, 2026 | 1 |
| Oct 4, 2026 | 0 |
| Oct 3, 2026 | 0 |
| Oct 2, 2026 | 1 |
| Oct 1, 2026 | 1 |
| Sep 30, 2026 | 1 |
| Sep 29, 2026 | 2 |
| Sep 28, 2026 | 2 |
| Sep 27, 2026 | 2 |
| Sep 26, 2026 | 6 |
| Sep 25, 2026 | 5 |
| Sep 24, 2026 | 6 |
| Sep 23, 2026 | 6 |
| Sep 22, 2026 | 16 |
| Sep 21, 2026 | 20 |
| Sep 20, 2026 | 21 |
| Sep 19, 2026 | 17 |
| Sep 18, 2026 | 17 |
| Sep 17, 2026 | 16 |
| Sep 16, 2026 | 16 |
| Sep 15, 2026 | 7 |
| Sep 14, 2026 | 3 |
| Sep 13, 2026 | 2 |
| Sep 12, 2026 | 3 |
| Sep 11, 2026 | 4 |
| Sep 10, 2026 | 5 |
| Sep 9, 2026 | 6 |
| Sep 8, 2026 | 8 |
| Sep 7, 2026 | 9 |
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/1225573053-root)<a href="https://payloaddirectory.dev/plugins/1225573053-root"><img src="https://payloaddirectory.dev/badge/1225573053-root.svg" alt="Payload Directory"></a>README

Floating feedback/chat widget plugin for Payload CMS admin and selected Next.js frontend routes.
admin-feedback collection to Payloadpnpm add @matija2209/payload-plugin-admin-feedback
payload ^3.84.1 (native advanced plugin API with definePlugin)react ^19| Plugin Version | Payload Version |
|---|---|
| 1.x.x | ^3.84.1 |
import { buildConfig } from 'payload'
import { adminFeedbackPlugin } from '@matija2209/payload-plugin-admin-feedback'
export default buildConfig({
// ...
plugins: [
adminFeedbackPlugin({
emailTo: '[email protected]',
fromLabel: 'Store Admin Feedback',
fromName: 'Payload Admin',
fromAddress: '[email protected]',
allowScreenshotUpload: true,
mediaCollectionSlug: 'files',
strictMediaCollection: true,
screenshot: {
enabled: true,
maxFileSizeBytes: 5 * 1024 * 1024,
allowedMimeTypes: ['image/png', 'image/jpeg', 'image/webp'],
capturePolicy: 'current-tab-first',
},
maxMessageLength: 3000,
frontend: {
enabled: true,
include: ['/marketplace*', '/profile*'],
},
tenant: {
enabled: true,
collectionSlug: 'tenants',
fieldName: 'tenant',
formDataSlugKey: 'tenant',
pathMarkers: ['pisarna', 'narocilnica'],
resolveTenantId: async ({ req, tenantSlug }) => {
// Optional host fallback (admin cookie, subdomain, …)
return null
},
},
}),
],
})
This registers the admin-feedback collection with custom endpoints (/submit, /upload, /upload/:id) — no additional API routes are needed.
When tenant.enabled is true, screenshot uploads set the configured relationship field on mediaCollectionSlug. Resolution order:
FormData (set automatically when tenantPathMarkers is passed to FrontendFeedbackWidget)tenant.pathMarkerstenant.resolveTenantId callback for host-specific logicIf your project stores uploads in a collection named files instead of media, set mediaCollectionSlug: 'files' exactly as shown above. The plugin validates that the target collection exists and is upload-enabled during startup.
The simplest way: let the plugin register it.
adminFeedbackPlugin({
emailTo: '[email protected]',
adminWidget: { enabled: true, title: 'Report a bug', submitLabel: 'Send report' },
access: {
create: ({ req }) => Boolean(req.user),
read: ({ req }) => req.user?.role === 'admin' || { createdBy: { equals: req.user?.id } },
},
})
The widget then shows for every signed-in user whose permissions allow creating feedback. Regenerate the import map (payload generate:importmap).
Or render it yourself in the admin layout:
In your Payload admin layout (src/app/(payload)/layout.tsx):
import { AdminFeedbackWidget } from '@matija2209/payload-plugin-admin-feedback/client'
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<RootLayout config={config} importMap={importMap} serverFunction={serverFunction}>
{children}
<AdminFeedbackWidget />
</RootLayout>
)
}
The admin widget automatically sends authenticated requests (HTTP-only cookies via credentials: 'include').
In your Next.js frontend locale layout (src/app/(frontend)/[locale]/layout.tsx):
import { FrontendFeedbackWidget } from '@matija2209/payload-plugin-admin-feedback/client'
export default async function LocaleLayout({ children, params }) {
return (
<html>
<body>
{/* ... */}
<FrontendFeedbackWidget
include={['/marketplace*', '/profile*', '/checkout*']}
locales={['en', 'ru', 'sl']}
/>
{children}
{/* ... */}
</body>
</html>
)
}
FrontendFeedbackWidget props:
| Prop | Type | Default | Description |
|---|---|---|---|
include | string[] | required | Glob-style route patterns to show the widget on. Supports * wildcard suffixes (e.g. '/profil*' matches /profile, /profile/orders/123). |
locales | string[] | [] | Supported locale prefixes. The widget strips the locale segment before matching against include patterns. If all your routes are non-prefixed, leave empty. |
title | string | 'Feedback' | Widget title. |
submitLabel | string | 'Send' | Submit button label. |
uploadLabel | string | 'Upload image' | Upload button label. |
tenantPathMarkers | string[] | [] | Path markers — tenant slug is the segment before each marker; sent on upload. |
tenantFormDataKey | string | 'tenant' | FormData key for tenant slug. |
How locale normalization works: When locales is ['en', 'ru', 'sl'], the widget strips the first path segment if it matches a locale. For example, /en/marketplace becomes /marketplace before checking the include patterns. This means you write patterns once and they work across all locales.
access?: { create?, read?, update?, delete? } per-operation collection access; default: signed-in user for each. The endpoints check create.
collectionOverrides?: (collection) => collection adjust labels, admin group, fields; keep the slug admin-feedback
adminWidget?: { enabled?: boolean; title?: string; submitLabel?: string; uploadLabel?: string } register the admin widget as a provider
adminBaseUrl?: string absolute admin host for e-mail links (default config.serverURL, then NEXT_PUBLIC_SERVER_URL)
emailDateLocale?: string default 'sl-SI'
enabled?: boolean default true
emailTo: string | string[] required recipient address or addresses
fromLabel?: string label used by the widget and email output
fromName?: string optional sender name for feedback emails
fromAddress?: string optional sender address for feedback emails
email?: Config['email'] optional Payload email config injected only when config.email is not already set
allowScreenshotUpload?: boolean default true; enables image upload support in the widget, including annotated screenshot uploads
maxMessageLength?: number default 3000
mediaCollectionSlug?: string default 'media'; slug of the upload-enabled collection used for image uploads
strictMediaCollection?: boolean default true; when true, startup fails if mediaCollectionSlug is missing or not upload-enabled
screenshot?: { enabled?: boolean; maxFileSizeBytes?: number; allowedMimeTypes?: string[]; capturePolicy?: 'current-tab-first' | 'strict-current-tab' | 'any-surface' }
frontend?: { enabled?: boolean; include?: string[] }
frontendRouteMatcher?: (pathname: string) => boolean optional custom route matcher for frontend display logic
tenant?: TenantConfig optional multi-tenant upload scoping (enabled, collectionSlug, fieldName, formDataSlugKey, pathMarkers, resolveTenantId)
adminGroup?: string | Record<string, string> Admin nav group of the collection; default 'System'
tracker?: TrackerConfig opt-in issue tracker, see below
Turn the reports into a small issue tracker:
adminFeedbackPlugin({
emailTo: '[email protected]',
tracker: {
enabled: true,
// listView: true, replace the list with the grouped Issues view
// notifyReporter: true, e-mail the reporter when their issue is closed
// versions: true, keep history (50 versions per issue)
// assigneeFilterOptions: { roles: { contains: 'admin' } },
// listViewLimit: 500, newest reports the Issues view groups
},
})
This changes the collection schema (new fields, statuses and a versions table). Run your migrations, then regenerate the import map (payload generate:importmap): the Issues view is a server component exported from @matija2209/payload-plugin-admin-feedback/rsc.
new → triaged → in_progress → resolved / wont_fix / duplicate. Moves outside STATUS_TRANSITIONS are refused with a 400. A closed issue can only be reopened to triaged. duplicate needs duplicateOf.resolvedAt and resolvedBy are set from the session when an issue closes and cleared when it reopens; new reports always start as new and unassigned. A request body cannot set any of these.fingerprint from its page path (record ids replaced by :id, query and hash dropped) and selector. The Issues view groups reports with the same fingerprint into one row that lists every report and reporter.overrideAccess: false), so whatever access.read allows is all the view shows.req.context.skipTrackerNotify.allowScreenshotUpload: false disables image uploads from the widget entirely, including saving annotated screenshots.screenshot.enabled: false disables browser screenshot capture while still allowing regular file uploads if allowScreenshotUpload remains true.current-tab-first is the default. The widget prefers the active browser tab and still accepts window or screen capture if the browser returns a broader surface.strict-current-tab requires the captured surface to resolve as a browser tab and fails otherwise.any-surface allows the browser to offer any supported surface without tab-first constraints.The plugin uploads images through the resolved Payload upload collection, not directly to a specific storage adapter.
@payloadcms/storage-*, uploads are automatically stored there.strictMediaCollection is true (default), plugin initialization fails when the configured mediaCollectionSlug is missing or not upload-enabled.strictMediaCollection is false and the configured slug is missing, the plugin falls back to 'media' only when a 'media' collection exists and is upload-enabled.Use frontend.include for simple glob-style path matching. Use frontendRouteMatcher when widget visibility depends on custom logic that cannot be expressed as a simple allowlist.
adminFeedbackPlugin({
emailTo: '[email protected]',
frontend: {
enabled: true,
},
frontendRouteMatcher: (pathname) => pathname.startsWith('/app') && !pathname.startsWith('/app/embed'),
})
slug, order, options) via definePlugin.adminFeedbackPlugin({ ...options }) remains unchanged.MIT
payload plugin roadmap
Public roadmap with voting, curator-set stages, deduplicated requests and an optional features catalog
74194/wk0v3
payload plugin comments
Document-level and field-level comments with mentions, resolution and email notifications for Payload admin
757.0k/wk37v3
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 docs
Keeps a reviewed docs page for each feature your site lists, with a publish-time lint for internal details
78367/wk0v3
payload plugin scheduling
Schedule future publication of drafts on collections and globals with a secured cron endpoint
77783/wk37v3