Adds a menus collection to Payload 3 where editors build navigation with drag-and-drop entries: links, dropdowns and section headings. A resolveMenu helper filters entries by visitor, fills in labels and hrefs, sorts alphabetically in the visitor's locale and removes empty groups. It only stores data, so the site supplies its own markup. Requires Payload 3.80 or later, @payloadcms/ui and React 19.
Menus for Payload: drag-and-drop links, dropdowns and section headings, optional icons or emoji, alphabetical order in each visitor’s language, and visibility per entry.
Installation
npm i @extantape/payload-plugin-menu0
Stars
0
Forks
0
Open Issues
1 weeks ago
Last Updated
126
Weekly Downloads
v0.1.1
npm Version
25.9 KB
Unpacked Size
0
Dependencies
00 since Nov 1
| Date | Stars |
|---|---|
| Dec 6, 2026 | 0 |
| Dec 5, 2026 | 0 |
| Dec 4, 2026 | 0 |
| Dec 3, 2026 | 0 |
| Dec 2, 2026 | 0 |
| Dec 1, 2026 | 0 |
| Nov 30, 2026 | 0 |
| Nov 29, 2026 | 0 |
| Nov 28, 2026 | 0 |
| Nov 27, 2026 | 0 |
| Nov 26, 2026 | 0 |
| Nov 25, 2026 | 0 |
| Nov 24, 2026 | 0 |
| Nov 23, 2026 | 0 |
| Nov 22, 2026 | 0 |
| Nov 21, 2026 | 0 |
| Nov 20, 2026 | 0 |
| Nov 19, 2026 | 0 |
| Nov 18, 2026 | 0 |
| Nov 17, 2026 | 0 |
| Nov 16, 2026 | 0 |
| Nov 15, 2026 | 0 |
| Nov 14, 2026 | 0 |
| Nov 13, 2026 | 0 |
| Nov 12, 2026 | 0 |
| Nov 11, 2026 | 0 |
| Nov 10, 2026 | 0 |
| Nov 9, 2026 | 0 |
| Nov 8, 2026 | 0 |
| Nov 7, 2026 | 0 |
| Nov 6, 2026 | 0 |
| Nov 5, 2026 | 0 |
| Nov 4, 2026 | 0 |
| Nov 3, 2026 | 0 |
| Nov 2, 2026 | 0 |
| Nov 1, 2026 | 0 |
139+139 since Nov 3
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 139 |
| Dec 5, 2026 | 183 |
| Dec 4, 2026 | 351 |
| Dec 3, 2026 | 382 |
| Dec 2, 2026 | 406 |
| Dec 1, 2026 | 435 |
| Nov 30, 2026 | 477 |
| Nov 29, 2026 | 563 |
| Nov 28, 2026 | 540 |
| Nov 27, 2026 | 374 |
| Nov 26, 2026 | 349 |
| Nov 25, 2026 | 328 |
| Nov 24, 2026 | 295 |
| Nov 23, 2026 | 254 |
| Nov 22, 2026 | 351 |
| Nov 21, 2026 | 321 |
| Nov 20, 2026 | 310 |
| Nov 19, 2026 | 278 |
| Nov 18, 2026 | 256 |
| Nov 17, 2026 | 226 |
| Nov 16, 2026 | 211 |
| Nov 15, 2026 | 0 |
| Nov 14, 2026 | 307 |
| Nov 13, 2026 | 288 |
| Nov 12, 2026 | 264 |
| Nov 11, 2026 | 361 |
| Nov 10, 2026 | 303 |
| Nov 9, 2026 | 291 |
| Nov 8, 2026 | 257 |
| Nov 7, 2026 | 233 |
| Nov 6, 2026 | 221 |
| Nov 5, 2026 | 166 |
| Nov 4, 2026 | 0 |
| Nov 3, 2026 | 0 |
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/1443491321-root)<a href="https://payloaddirectory.dev/plugins/1443491321-root"><img src="https://payloaddirectory.dev/badge/1443491321-root.svg" alt="Payload Directory"></a>README
Menus for Payload 3 that stay simple for editors:
routes), documents from your collections, or URLs. Only links a browser opens as a page are kept: paths on your site, # and ? links, and http, https, mailto and tel addresses. Anything else (javascript:, data:, //other-host) is dropped. With docHref, a document whose docHref gives no URL (an unpublished page, say) isn't shown.@payloadcms/plugin-multi-tenant: add the collection to its list and each site gets its own menus.import { menuPlugin } from '@extantape/payload-plugin-menu'
plugins: [
menuPlugin({
routes: [
{ value: 'climate', label: 'Climate', href: '/climate' },
{ value: 'shop', label: 'Shop', href: '/shop', when: ['shopOpen'] },
],
conditions: [{ value: 'staff', label: 'Staff' }],
linkCollections: ['pages'],
access: { create: isAdmin, update: isAdmin, delete: isAdmin },
}),
]
Render it with resolveMenu(). It drops entries the visitor shouldn't see, fills in labels and hrefs, sorts where asked, and removes empty dropdowns and headings:
import { resolveMenu } from '@extantape/payload-plugin-menu'
const menu = await payload.find({ collection: 'menus', where: { location: { equals: 'header' } }, depth: 1 })
const resolved = resolveMenu(menu.docs[0], {
locale: 'de',
signedIn: Boolean(user),
conditions: { staff: isStaff(user), shopOpen },
routes, // the same list you gave the plugin
routeLabel: (r) => t(`nav.${r.value}`), // optional: your translations
docHref: (doc) => doc.path as string,
})
The plugin stores data and nothing more; markup is up to you. For accessible menus:
<button aria-expanded aria-controls> that shows a list. Escape closes it and returns focus to the button.role="group" with aria-labelledby pointing at its heading.aria-hidden="true". An entry shown only as an icon needs a visually hidden label.aria-current="page" on the link to the current page.On its own. Menu needs only Payload. Menus live in its own collection (menus), link targets come from your routes and collections, and your site renders the result of resolveMenu() with its own markup. It doesn't use any other plugin.
Needs. Payload ^3.80.0, @payloadcms/ui ^3.80.0 and React ^19.0.0 as peer dependencies. No other EXTANT APE plugin is required.
Works with:
@payloadcms/plugin-multi-tenant): add the menus collection to its list, and each site gets its own menus.Color Theory. No direct link. Menu draws nothing on your site, since your own markup renders each menu. In the admin, its row labels use Payload's styles and follow Color Theory's admin colors when its applyToAdmin option is on.
Family. Menu is in the Navigation family, with Nested Docs Browser. They're meant to sit side by side in a site's navigation, but nothing in either plugin's code connects them yet. The families are a working draft that may change.
MIT © EXTANT APE
payload nav studio
Replaces the Payload admin sidebar with a drag and drop navigation that each user can customize
66108/wk15v3
payload enhanced sidebar
Tabbed sidebar navigation for the Payload admin that groups collections, globals and custom links
76835/wk32v3 v4
Payload Advanced Sidebar
Add icons, custom links and animated groups to the Payload admin sidebar
7042/wk7v3
payload plugin
Payload plugin for Blockwright adding layouts, templates, menus, forms and a visual page editor
5925/wk3v3
block builder
Visual drag-and-drop builder that stores block schemas in the database so editors can create blocks without code
5447/wk8v3
payload navigation
Drag-and-drop navigation menu builder with a precomputed clean item tree for frontend use
42151/wk2v3