Creates and maintains a documentation page for every feature supplied by one or more sources, using hooks and a nightly sync. Drafts come from your own generator function, pages require reviewer approval before publishing, and a lint blocks internal details such as paths, keys and hosts. Requires the MongoDB adapter, edit and review access functions, and at least one feature source.
Docs for Payload: a docs page for every feature your site lists, made and kept up to date by hook, with hand-written pages beside them, a publish-time lint for internals, and a check that nothing is missing.
Installation
npm i @extantape/payload-plugin-docs0
Stars
0
Forks
0
Open Issues
6 days ago
Last Updated
375
Weekly Downloads
v0.1.1
npm Version
38.9 KB
Unpacked Size
0
Dependencies
00 since Nov 8
| Date | Stars |
|---|---|
| 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 |
412+412 since Nov 14
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 412 |
| Dec 4, 2026 | 567 |
| Dec 3, 2026 | 597 |
| Dec 2, 2026 | 601 |
| Dec 1, 2026 | 431 |
| Nov 30, 2026 | 469 |
| Nov 29, 2026 | 549 |
| Nov 28, 2026 | 500 |
| Nov 27, 2026 | 324 |
| Nov 26, 2026 | 265 |
| Nov 25, 2026 | 226 |
| Nov 24, 2026 | 180 |
| Nov 23, 2026 | 143 |
| Nov 22, 2026 | 217 |
| Nov 21, 2026 | 214 |
| Nov 20, 2026 | 212 |
| Nov 19, 2026 | 212 |
| Nov 18, 2026 | 208 |
| Nov 17, 2026 | 196 |
| Nov 16, 2026 | 181 |
| Nov 15, 2026 | 0 |
| Nov 14, 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/1453672049-root)<a href="https://payloaddirectory.dev/plugins/1453672049-root"><img src="https://payloaddirectory.dev/badge/1453672049-root.svg" alt="Payload Directory"></a>README
Docs for Payload: a docs page for every feature your site lists, made and kept up to date by hook, with hand-written pages beside them, a publish-time lint for internals, and a check that nothing is missing.
Status: 0.1.1 is the latest release (see CHANGELOG.md). 25 tests pass against Payload 3.92 with an in-memory MongoDB replica set and a fake generator (no AI is called). They cover pages following features, the lint, reviews, publishing rules, public access, the check and the tree. No site uses it yet.
Sources that fail or come back empty leave their pages alone, and the check reports them. A failed draft is tried again at the next sync.
A page for every feature. Features come from one or more sources: a few lines each, from a roadmap plugin's catalog or your own list.
onFeatureChange from its own hook. syncDocs(payload), nightly, reads every source and catches anything a hook missed.Drafts come from your generator (generate), given the feature's own fields and, if you give uiTextFor, the user-facing text of its pages.
Hand-written pages (kind: 'extra') sit in the same sections.
Nothing internal goes public. Publishing is refused if a page's title, summary or body has any of these:
allow lets public names through (YouTube, Stripe).
Reviews:
access.review) review, and a page is approved only when the reviewer ticks approved. A note alone approves nothing.checkDocs(payload), for a nightly job and your pre-release step, lists:
/docs links that go nowhere;Reading:
docsTree(payload) gives the published sections and pages, for your /docs routes.docsPage(payload, '/docs/section/slug') gives one page.access.edit) only.Bodies are Markdown, so your site renders them its own way.
On its own. Docs needs the MongoDB adapter, access.edit and access.review, and at least one feature source: a list function you write. Drafts come from your own generate, or from each feature's summary and details. It doesn't import any other plugin.
Needs. Payload ^3.80.0 as a peer dependency. No other EXTANT APE plugin is required.
Works with:
@extantape/payload-plugin-roadmap): with catalog: { docs: true }, Roadmap's features catalog adds itself to config.custom.docsSources and calls onFeatureChange when an entry changes. No import either way, and plugin order doesn't matter.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. Docs is in the Library family, with Watchlist and Wikipedia, which are named but not built yet. Roadmap is in a different family (Patronage), so that pairing is "works with". The families are a working draft that may change.
npm install @extantape/payload-plugin-docs
import { docsPlugin, onFeatureChange } from '@extantape/payload-plugin-docs'
docsPlugin({
sources: [{ name: 'catalog', list: async ({ payload }) => myFeatures(payload) }],
generate: async ({ feature, uiText }) => myModelCall(feature, uiText), // { summary, body } in Markdown
access: { edit: isEditor, review: isReviewer }, // both required
privateTerms: myPrivateTerms,
allow: ['YouTube', 'Stripe'],
})
// In your feature source's own hook:
await onFeatureChange(payload, { source: 'catalog', feature, req }) // or { source, removedId, req }
Run syncDocs and checkDocs nightly. Another plugin can be a feature source with no import: it adds { name, list } to config.custom.docsSources (in any plugin order) and calls payload.config.custom.docs?.onFeatureChange from its own hook when that's there.
npm test # integration tests, in-memory MongoDB
npm run typecheck
npm run build
MIT. See LICENSE.
payload markdown docs
Sync a repo-local Markdown docs tree into Payload and render it in Next.js through CI or signed pushes
68901/wk4v3
payload plugin comments
Document-level and field-level comments with mentions, resolution and email notifications for Payload admin
757.0k/wk37v3
payload plugin workflows
Code-defined editorial workflows with stages, actions, transitions and publish guards for editors and AI agents
73797/wk37v3
payload plugin netlify deploy
Deploy button in the Payload admin that builds a Netlify site, streams the log, and publishes a preview
72370/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