ExtantApe

payload plugin roadmap

by ExtantApe
Publishing workflow
v3
^3.60.0
MIT

Overview

Summary generated from the README

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.

Features

  • Curator-set stages from requested to released or declined
  • One vote per user per item enforced by a unique index with recounted totals
  • One item per subject, with automatic parent grouping
  • Merge similar items, moving votes and children to the target
  • Optional extra earned votes with lock periods and release stages
  • Optional features catalog and syncing of items from other plugins

Use cases

  • Run a public feature-request board where users vote and editors set stages
  • Show a features catalog that stays in sync with the roadmap
  • Host separate per-site roadmaps in a multi-tenant Payload setup

From the author

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-roadmap

0

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

GitHub stars

00 since Oct 25

Show data
GitHub stars by day (UTC)
DateStars
Dec 6, 20260
Dec 5, 20260
Dec 4, 20260
Dec 3, 20260
Dec 2, 20260
Dec 1, 20260
Nov 30, 20260
Nov 29, 20260
Nov 28, 20260
Nov 27, 20260
Nov 26, 20260
Nov 25, 20260
Nov 24, 20260
Nov 23, 20260
Nov 22, 20260
Nov 21, 20260
Nov 20, 20260
Nov 19, 20260
Nov 18, 20260
Nov 17, 20260
Nov 16, 20260
Nov 15, 20260
Nov 14, 20260
Nov 13, 20260
Nov 12, 20260
Nov 11, 20260
Nov 10, 20260
Nov 9, 20260
Nov 8, 20260
Nov 7, 20260
Nov 6, 20260
Nov 5, 20260
Nov 4, 20260
Nov 3, 20260
Nov 2, 20260
Nov 1, 20260
Oct 31, 20260
Oct 30, 20260
Oct 29, 20260
Oct 28, 20260
Oct 27, 20260
Oct 26, 20260
Oct 25, 20260
npm weekly downloads

337+337 since Oct 31

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 6, 2026337
Dec 5, 2026533
Dec 4, 2026703
Dec 3, 2026732
Dec 2, 2026753
Dec 1, 2026755
Nov 30, 2026773
Nov 29, 2026724
Nov 28, 2026532
Nov 27, 2026366
Nov 26, 2026342
Nov 25, 2026315
Nov 24, 2026283
Nov 23, 2026247
Nov 22, 2026330
Nov 21, 2026300
Nov 20, 2026289
Nov 19, 2026257
Nov 18, 2026237
Nov 17, 2026211
Nov 16, 2026195
Nov 15, 20260
Nov 14, 2026356
Nov 13, 2026340
Nov 12, 2026469
Nov 11, 2026622
Nov 10, 2026856
Nov 9, 2026980
Nov 8, 2026918
Nov 7, 2026881
Nov 6, 2026860
Nov 5, 2026652
Nov 4, 2026430
Nov 3, 20260
Nov 2, 20260
Nov 1, 20260
Oct 31, 20260

Each point is npm's rolling 7-day download count.

Health Score

74/100Good

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1440216740-root.svg)](https://payloaddirectory.dev/plugins/1440216740-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1440216740-root"><img src="https://payloaddirectory.dev/badge/1440216740-root.svg" alt="Payload Directory"></a>
Updated Nov 29, 2026Created Oct 30, 2026Published Nov 27, 2026

README

payload-plugin-roadmap

A public roadmap with voting for Payload 3.

  • Items move through stages that curators set (requested → under review → planned → in progress → released, or not planned). Votes inform priorities; they never change a stage by themselves.
  • One vote per user per item, enforced by a unique index. The stored voteCount is recounted from the votes after every change, never incremented, so it cannot drift.
  • One item per subject. Give items a subject (a taxon, a product, any collection) and a second request for the same subject finds the existing item instead of creating a duplicate.
  • Grouping. Items can sit under a parent item. With subject.parentOf, items group automatically whichever is requested first (e.g. subspecies under their species).
  • Extra votes (optional): on top of the one free vote per item, users can place votes they've earned (from gifts, points, a membership…) anywhere: several on one item or spread across many. Your app says how many each user has earned; placed votes are spent at once, can be locked for a set time, and rankings show people and votes separately.
  • Merging. Editors combine similar items with "Merge into": votes move over (one free vote per person), children follow, and later requests for the old item land on the new one.
  • Release stages (optional): a stage such as "not planned" frees placed votes at once; releasedVotes lists them so you can ask each voter to move them (withdrawVotes) or keep them (keepVotes).
  • Features catalog (optional): a board's items double as a catalog of what your product does. Categories become its sections; each entry gets details, links and an audience, and is labeled from its stage (Available, Members, In progress, Planned). getCatalog() returns it ready to render, so the catalog never drifts from the roadmap.
  • Boards keep separate roadmaps (e.g. features and species) in one pair of collections.
  • Scopes. With 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, and with others

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:

  • Docs (@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.
  • Membership (@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.
  • Multi-tenant (@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.

Install

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').

Options

OptionDefault
slugs{ items: 'roadmap-items', votes: 'roadmap-votes', notices: 'roadmap-notices', categories: 'roadmap-categories' }Collection slugs
usersSlug'users'Auth collection whose accounts vote
boardsone board, featuresSeparate roadmaps
stagesrequested, under-review, planned, in-progress, released, declinedFirst stage is where requests start
subjectnone{ relationTo, filterOptions?, parentOf? }
scopeFieldnoneField that partitions roadmaps (not added by the plugin)
access.managenobodyWho edits items and sees every vote
access.voteany signed-in userWho 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
allocationoff{ earned: ({ payload, user, scope }) => Promise<number>, lockDays?, boards?, releaseStages? }: extra votes
itemSourcesnone[{ source, board, status?, scope? }]: items synced from another plugin (below). scope is the scopeField value for new items
votes.locktruefalse lets voters withdraw placed votes at any time, ignoring allocation.lockDays
noticesoff{ fields: [{ name, label, options, boards? }] }: conditional notices (below)
catalogoff{ 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.

Item sources

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.

Vote locking

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.

Conditional notices

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.

Features catalog

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:

  • it registers itself at config.custom.docsSources, so the docs plugin's nightly sync reads every visible entry;
  • after an entry changes, it calls the docs plugin's 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.

Server helpers

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.

License

MIT

Similar plugins