Adds roadmap item, vote, notice and category collections to Payload 3 so users can request and vote on items that curators move through stages. Votes are enforced as one per user per item, with recounted totals, parent grouping, merging and optional extra earned votes. It requires an auth collection for voters and Payload 3.60 or newer, and works with multi-tenant scoping.
Roadmaps for Payload: public roadmap and voting, with items in curator-set stages, one vote per person per item, deduplicated requests and parent grouping.
Installation
npm i @extantape/payload-plugin-roadmap0
Stars
0
Forks
0
Open Issues
1 weeks ago
Last Updated
194
Weekly Downloads
v0.5.1
npm Version
75.9 KB
Unpacked Size
0
Dependencies
00 since Oct 25
| 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 |
| Oct 31, 2026 | 0 |
| Oct 30, 2026 | 0 |
| Oct 29, 2026 | 0 |
| Oct 28, 2026 | 0 |
| Oct 27, 2026 | 0 |
| Oct 26, 2026 | 0 |
| Oct 25, 2026 | 0 |
337+337 since Oct 31
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 337 |
| Dec 5, 2026 | 533 |
| Dec 4, 2026 | 703 |
| Dec 3, 2026 | 732 |
| Dec 2, 2026 | 753 |
| Dec 1, 2026 | 755 |
| Nov 30, 2026 | 773 |
| Nov 29, 2026 | 724 |
| Nov 28, 2026 | 532 |
| Nov 27, 2026 | 366 |
| Nov 26, 2026 | 342 |
| Nov 25, 2026 | 315 |
| Nov 24, 2026 | 283 |
| Nov 23, 2026 | 247 |
| Nov 22, 2026 | 330 |
| Nov 21, 2026 | 300 |
| Nov 20, 2026 | 289 |
| Nov 19, 2026 | 257 |
| Nov 18, 2026 | 237 |
| Nov 17, 2026 | 211 |
| Nov 16, 2026 | 195 |
| Nov 15, 2026 | 0 |
| Nov 14, 2026 | 356 |
| Nov 13, 2026 | 340 |
| Nov 12, 2026 | 469 |
| Nov 11, 2026 | 622 |
| Nov 10, 2026 | 856 |
| Nov 9, 2026 | 980 |
| Nov 8, 2026 | 918 |
| Nov 7, 2026 | 881 |
| Nov 6, 2026 | 860 |
| Nov 5, 2026 | 652 |
| Nov 4, 2026 | 430 |
| Nov 3, 2026 | 0 |
| Nov 2, 2026 | 0 |
| Nov 1, 2026 | 0 |
| Oct 31, 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/1440216740-root)<a href="https://payloaddirectory.dev/plugins/1440216740-root"><img src="https://payloaddirectory.dev/badge/1440216740-root.svg" alt="Payload Directory"></a>README
A public roadmap with voting for Payload 3.
voteCount is recounted from the votes after every change, never incremented, so it cannot drift.subject.parentOf, items group automatically whichever is requested first (e.g. subspecies under their species).releasedVotes lists them so you can ask each voter to move them (withdrawVotes) or keep them (keepVotes).getCatalog() returns it ready to render, so the catalog never drifts from the roadmap.scopeField (e.g. tenant from the multi-tenant plugin) each site has its own roadmap.Status: beta (0.x). Used on a live site, where it was first built for a species roadmap. The API may still change before 1.0.
On its own. Roadmap needs an auth collection whose accounts vote (users by default). Subjects, extra votes, notices and the catalog are optional, and each reads your own collections or functions. No other plugin is involved.
Needs. Payload ^3.60.0 as a peer dependency. No other EXTANT APE plugin is required.
Works with:
@extantape/payload-plugin-docs): with catalog: { docs: true }, the catalog registers itself at config.custom.docsSources and calls Docs' onFeatureChange when an entry changes, so every feature gets a docs page. No import either way, and without Docs it does nothing. See Features catalog.@extantape/payload-plugin-membership): your allocation.earned function can count votes members have earned. There's no adapter for this. It's your own code.@payloadcms/plugin-multi-tenant): list roadmap-items and roadmap-votes in it and set scopeField: 'tenant', and each site has its own roadmap.Color Theory. None needed. It has no screens of its own, and its collections use Payload's standard admin, which takes Color Theory's admin colors when its applyToAdmin option is on.
Family. Roadmap is in the Patronage family, with Membership, Sponsors, Backing, Credits and Printify. Docs is in a different family (Library), so that pairing is "works with". The families are a working draft that may change.
npm install @extantape/payload-plugin-roadmap
import { roadmapPlugin } from '@extantape/payload-plugin-roadmap'
export default buildConfig({
plugins: [
roadmapPlugin({
boards: [
{ label: 'Features', value: 'features' },
{ label: 'Species', value: 'species' },
],
subject: {
relationTo: 'taxa',
filterOptions: { rank: { in: ['species', 'subspecies'] } },
// Optional: group a subspecies under its species' item.
parentOf: async ({ id, req }) => {
const t = await req.payload.findByID({ collection: 'taxa', id, depth: 0, req })
return t.rank === 'subspecies' ? (t.parent as string) : null
},
},
access: {
manage: ({ req }) => Boolean(req.user?.roles?.includes('admin')), // curators
vote: ({ req }) => Boolean(req.user), // REST/GraphQL voting; () => false for server-only voting
},
}),
],
})
Add the plugin before plugins that wrap collections it creates (e.g. list roadmap-items and roadmap-votes in the multi-tenant plugin, and set scopeField: 'tenant').
| Option | Default | |
|---|---|---|
slugs | { items: 'roadmap-items', votes: 'roadmap-votes', notices: 'roadmap-notices', categories: 'roadmap-categories' } | Collection slugs |
usersSlug | 'users' | Auth collection whose accounts vote |
boards | one board, features | Separate roadmaps |
stages | requested, under-review, planned, in-progress, released, declined | First stage is where requests start |
subject | none | { relationTo, filterOptions?, parentOf? } |
scopeField | none | Field that partitions roadmaps (not added by the plugin) |
access.manage | nobody | Who edits items and sees every vote |
access.vote | any signed-in user | Who may vote through the API. Only accounts of usersSlug can vote, always as themselves with weight 1; a vote that names another voter, a weight or a ballot is refused (403). Accounts from other auth collections never vote, see or delete votes unless manage lets them |
allocation | off | { earned: ({ payload, user, scope }) => Promise<number>, lockDays?, boards?, releaseStages? }: extra votes |
itemSources | none | [{ source, board, status?, scope? }]: items synced from another plugin (below). scope is the scopeField value for new items |
votes.lock | true | false lets voters withdraw placed votes at any time, ignoring allocation.lockDays |
notices | off | { fields: [{ name, label, options, boards? }] }: conditional notices (below) |
catalog | off | { boards?, availableStages?, progressStages?, hiddenStages? }: features catalog (below) |
overrides.items / .votes / .notices / .categories | (collection) => collection |
The public reads items that are not hidden. Voters read and delete only their own votes.
Another plugin can offer items to a board without either plugin importing the other. A source is
{ key, list({ payload }) => Promise<{ externalId, title, description?, votes, tags? }[]> }.
roadmapPlugin({ itemSources: [{ source: mySource, board: 'features', status: 'requested' }] })
await syncItemSources(payload) // every source
await syncItemSource(payload, 'my-source-key') // one, e.g. from the source's afterChange hook
Sync creates ordinary items keyed by source key and externalId, and later updates only the
title, the summary and the source's vote count. Status, curator notes and hiding stay as staff
set them. An item the source stops listing is marked sourceGone, never deleted. Source items
show the source's count and refuse Roadmap votes, so nothing is counted twice. The source fields
can't be written through the API, by anyone; the sync functions write with overrideAccess, so
call them from server code only. A sync returns errors for items it skipped. Source items can't be merged into or out of. Tags are not stored yet.
allocation.lockDays holds placed votes until they unlock. votes: { lock: false } turns that off
for the whole Payload config (one setting, not one per site): placed votes can be withdrawn at any time. The default is true, as before. The one free
vote per item was never locked.
Declare facts about items that editors can match on, and the plugin adds a roadmap-notices
collection: each rule ticks values (any match counts), has a message, and can ask voters to
confirm before voting or requesting. Your app computes each entry's values, so a rule can also
apply to a subject that has no item yet:
roadmapPlugin({
notices: { fields: [{ name: 'cites', label: 'CITES Appendix', boards: ['species'], options: [{ label: 'I', value: 'I' }] }] },
})
const rules = await getNoticeRules(payload, { board: 'species', scope: tenantId })
const notices = matchingNotices(rules, { cites: taxon.citesAppendices }) // [{ id, message, confirm }]
Without fields there is no notices collection.
roadmapPlugin({ catalog: {} }) // board `features`; released = Available, in-progress = In progress
Adds a roadmap-categories collection (title, slug, summary, intro, order) and, on catalog
boards, category, audience (everyone or members), order, details and links to items.
Render it on a page:
import { getCatalog } from '@extantape/payload-plugin-roadmap'
const sections = await getCatalog(payload, { scope: tenantId, locale: 'de', fallbackLocale: 'en' })
// [{ slug, title, summary, intro, entries: [{ slug, title, summary, status, details, links, votes }] }]
Entries without a category, hidden items and "not planned" items are left out. Members suggest new entries through the board as usual; once an editor gives one a category it appears in the catalog as Planned.
Docs for every entry. With catalog: { docs: true } (or { docs: { name } }), the catalog
feeds a docs plugin such as @extantape/payload-plugin-docs, with no import either way:
config.custom.docsSources, so the docs plugin's nightly sync reads every visible entry;onFeatureChange when that's there, so the page follows: made, marked out of date, or archived when the entry is hidden, declined, merged or deleted.Without the docs plugin it does nothing. A failure there never fails the edit: it's logged, and the nightly sync catches up. Only the public catalog's words go across (title, summary, details, site-path links, stage and section). The catalog isn't split by site for docs.
For server actions and endpoints that have already checked the user and scope (they run with overrideAccess):
import { castVote, removeVote, requestItem, recountVotes } from '@extantape/payload-plugin-roadmap'
await requestItem(payload, { board: 'species', title: 'Testudo graeca', subject: taxonId, scope: tenantId, user: userId })
await castVote(payload, { item, user }) // returns the existing vote if there is one
await removeVote(payload, { item, user })
await allocateVotes(payload, { item, user, votes: 10, scope }) // spends from the balance
await voteBalance(payload, { user, scope }) // { earned, spent, available }
await withdrawVotes(payload, { item, user, scope }) // unlocked placed votes back to the balance
await releasedVotes(payload, { user, scope }) // placed votes on items in a release stage, not yet kept
await keepVotes(payload, { item, user, scope }) // the voter keeps them there
await mergeItems(payload, { from, into }) // same as setting "Merge into" in the admin
Votes and new items are inserted outside a transaction so that concurrent duplicates fail cleanly on the unique index and resolve to the existing record.
Each placement of extra votes takes the voter's next numbered slot, stored in the votes' slot field under a unique index. Of two placements that read the same balance, only one saves; the other reads again and either places on what's left or is refused. After saving, the balance is checked once more, and a placement that would overspend is undone. On MongoDB the index is { slot: 1 }, unique and sparse (Payload builds it with ensureIndexes; a site that builds indexes by hand needs db['<votes slug>'].createIndex({ slot: 1 }, { unique: true, sparse: true })). Sparse skips votes with no slot but not a stored null, so the plugin never stores a null or empty slot. On Postgres or SQLite, the new slot column needs a migration.
MIT
payload plugin comments
Document-level and field-level comments with mentions, resolution and email notifications for Payload admin
757.0k/wk37v3
payload plugin admin feedback
Floating feedback widget with screenshot annotation for the Payload admin and selected frontend routes
72496/wk5v3
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
payload plugin workflows
Code-defined editorial workflows with stages, actions, transitions and publish guards for editors and AI agents
73797/wk37v3