Adds a guided-steps collection and a client Wizard component that shows one question per screen, where a Yes is required to continue. Steps hold text, optional video with captions, and stop messages, and are edited in the admin. Flows are registered in code, and answersFor checks submitted answers on the server and returns a record to keep. Requires Payload 3.80 or later and an edit access rule.
Wizards for Payload: gated step-by-step flows, one question per screen with Yes needed to go on, a video and text per step edited in the admin, and the answers checked on the server and recorded.
Installation
npm i @extantape/payload-plugin-wizards0
Stars
0
Forks
1
Open Issues
Today
Last Updated
369
Weekly Downloads
v0.1.1
npm Version
58.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 |
358+358 since Nov 14
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 358 |
| Dec 4, 2026 | 352 |
| Dec 3, 2026 | 327 |
| Dec 2, 2026 | 293 |
| Dec 1, 2026 | 255 |
| Nov 30, 2026 | 217 |
| Nov 29, 2026 | 22 |
| Nov 28, 2026 | 19 |
| Nov 27, 2026 | 24 |
| Nov 26, 2026 | 21 |
| Nov 25, 2026 | 24 |
| Nov 24, 2026 | 33 |
| Nov 23, 2026 | 52 |
| Nov 22, 2026 | 226 |
| Nov 21, 2026 | 223 |
| Nov 20, 2026 | 216 |
| Nov 19, 2026 | 216 |
| Nov 18, 2026 | 210 |
| Nov 17, 2026 | 198 |
| Nov 16, 2026 | 178 |
| 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/1456392457-root)<a href="https://payloaddirectory.dev/plugins/1456392457-root"><img src="https://payloaddirectory.dev/badge/1456392457-root.svg" alt="Payload Directory"></a>README
Wizards for Payload: gated step-by-step flows, one question per screen with Yes needed to go on, a video and text per step edited in the admin, and the answers checked on the server and recorded.
Status: early (0.x). 475 tests pass: 29 server tests on Payload 3.92 with an in-memory MongoDB, 13 on SQLite for blank text, 402 for the scope option, mostly run on MongoDB and SQLite, and 31 component tests in jsdom. It hasn't been tested on a real site, and nothing has run in a real browser.
Steps in the admin (guided-steps): each has a flow, a key, a group, an order and a kind:
Each step also has its question, a text version, an optional video with required captions, a stop message, and active or not.
access.edit, required) change steps. The public reads active ones only.Flows are registered in code: a list of slots, either your own code steps (finding a kit with the camera, choosing an animal) or a group of content steps. Other plugins register flows at config.custom.wizardFlows with no import, and a flow registered twice, or one that uses a group of steps twice, stops the site at start-up.
flowSteps(payload, { flow, locale, req }) gives the flow's slots, with active steps in order, for the page. A step whose question, stop message or an option label is blank in that language is left out and named in blank. With localization.fallback: false, an untranslated step is blank. Show an error instead of the flow when blank or empty has anything in it.
<Wizard> (./client) shows one step per screen:
next and back;The answers are checked on the server, not trusted. Call answersFor(payload, { flow, answers, req }) before acting. It refuses:
blankStep), so nobody is recorded agreeing to text they weren't shown;Pass the locale the person read. It returns the record to keep with your action: the language, each step's hash and question as the person read them, the answers, and the time. The hash identifies the full wording; the plugin keeps no copy of older wording, so keep versions on guided-steps if you need to show a past version in full. A client can't skip a gate by posting straight to your action.
For a platform that runs several sites from one database. Unset, nothing changes: every caller sees every step, as in 0.1.0.
wizardsPlugin({
flows,
access: { edit },
scope: {
where: ({ req }) => {
if (!req.user?.site) throw new Error('No site') // refuses plainly
return { site: { equals: req.user.site } }
},
indexWith: ['site'],
},
})
where runs on every call with the request. If it throws, the call is refused. A scope may use only equals and in. equals takes one non-empty string or number. in takes a non-empty list of them. The plugin refuses everything else at every depth, so a filter can't match everything by accident or mean one thing in memory and another in a database: any other operator (not_equals, not_in, exists, like, contains and the comparisons), an empty string, null or undefined, a list with an empty or null entry, an empty and or or, an empty {}, and anything that isn't a plain object. and and or can nest. Build or lists so that a user with no sites throws instead of producing { or: [] }. If a user's site can be an object (a populated relationship), return its id. A host that wants every site leaves scope unset.overrideAccess: false only see the caller's steps. flowSteps and answersFor take req and apply the scope themselves. With a scope set and no req they refuse (answersFor answers noScope) and never fall back to all sites.overrideAccess: true calls and direct db.updateOne, db.deleteOne and db.deleteMany calls, and a where that matches steps on two sites is refused whole. A call with no req is refused. While a scope is set, updateMany and upsert on the adapter for the steps are refused, and so is updateOne with upsert set. A delete through the collection is also checked in beforeDelete. The stored-step check reads first and writes after, and the write is handed the scope in its where, so a step that moves to another site in between is not touched (the call then does nothing, or touches only the steps still in scope). The read uses the call's locale. A seeding script has to pass a req the hook accepts.db, so set db in the config before this plugin and list wizardsPlugin last among the plugins that touch db. A plugin listed before it that wraps create, updateOne or deleteOne (or deleteMany) runs after the check, so its changes to those calls are not checked. At start-up the plugin looks at the adapter the site actually runs. If find, create, updateOne, deleteOne, deleteMany, updateMany or upsert is not the one this plugin wrapped (a later plugin put the original db back, or wrapped it again), the site refuses to start and the error says so.indexWith adds your field names to the unique index on flow + key. Sites that share step keys need it, because without it the index is flow + key alone, so a second site can't reuse a key. Even then a duplicate key is answered with a 400 "must be unique" without indexWith, including for a key that only another site uses, so the answer tells a caller that the key exists elsewhere. Set indexWith if that matters to you. You add the field yourself, in a plugin or config that runs after Wizards ({ name: 'site', type: 'text', required: true, index: true }, for example); naming a field that doesn't exist stops the site at start-up. If scope is set without indexWith, a warning is logged at start-up.flowSteps returns, are looked up as the caller (overrideAccess: false), so a site can't attach or show another site's files. Give your media collection its own site-based read access. A file the caller can't read shows as no video.versions or drafts (autosave included). They write through adapter calls the scope check doesn't cover, and their reads aren't scoped. If a later plugin or your config turns them on, the site refuses to start. With no scope, nothing changes.On its own: Wizards needs only Payload, an access.edit rule, and an upload collection if your steps have videos (media, or false for none). Your site registers its flows in flows and renders its own code steps.
Needs: Payload ^3.80.0 as a peer dependency, with React ^19.0.0 optional. No other EXTANT APE plugin is required.
Works with:
adapters.wizards, Sample Kits registers its kit-activation flow at config.custom.wizardFlows and checks the answers with answersFor.<CameraScanButton>, for example to find a kit. Neither plugin imports the other.Color Theory: no direct link. The wizard client brings no colors of its own and takes your site's CSS, so a site styled with Color Theory's --palette-* tokens styles it too.
Family: Wizards sits in the Fulfillment family, with Kitting, Restock, Sample Kits, Shipping, Scan, Labels, Custody and Sequences, though the families are a working draft and Fulfillment is due to be split into different groups.
npm install @extantape/payload-plugin-wizards
import { wizardsPlugin } from '@extantape/payload-plugin-wizards'
wizardsPlugin({
flows: { 'kit-activation': { slots: [{ code: 'find-kit' }, { steps: 'safety' }, { code: 'sampled' }] } },
access: { edit: ({ req }) => req.user?.role === 'editor' }, // required
media: 'media', // your upload collection for videos and captions, or false
})
// In your action, before doing anything:
const check = await answersFor(payload, { flow: 'kit-activation', answers, locale })
if (!check.ok) return refuse(check.problem)
await markSampled(kit, { confirmed: check.record })
npm test
npm run typecheck
npm run build
MIT. See LICENSE.
form builder
Let admin editors build and manage forms from within the Payload admin panel
100171.2k/wk46.1kv3 v4
payload recaptcha v3
Protect collection operations with Google reCAPTCHA v3 token verification
37183/wk37v3
payload forms
Visual drag-and-drop form builder with submissions, email notifications and CSV import/export
3639/wk5v3
payload contact
Contact form with a message inbox, runtime settings and spam protection for Payload 3
222v3
form builder app 1 2025
Next.js and Payload app using the form builder plugin to create forms and accept submissions with file attachments
151/wk7v?
payload plugin contact tiles
Routed contact page with topic autocomplete, quick tiles and one form that emails the topic's group address
74161/wk0v3