Adds a contact endpoint to Payload and a React component with a searchable topic box, quick tiles and a short form. The server routes each submission by topic id to a group address, with the sender as reply-to, and never exposes addresses to the browser. Requires Payload 3.80 or later and a configured email adapter; React is only needed for the component. Nothing is stored.
Contact tiles for Payload: a routed contact page with a search box that autocompletes topics and synonyms, quick tiles, and one short form. The server emails the topic's group address, with the sender as reply-to, and never sends an address to the browser.
Installation
npm i @extantape/payload-plugin-contact-tiles0
Stars
0
Forks
0
Open Issues
1 weeks ago
Last Updated
178
Weekly Downloads
v0.2.0
npm Version
60.1 KB
Unpacked Size
0
Dependencies
00 since Nov 15
| 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 |
231+83 since Nov 23
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 231 |
| Dec 4, 2026 | 578 |
| Dec 3, 2026 | 618 |
| Dec 2, 2026 | 649 |
| Dec 1, 2026 | 645 |
| Nov 30, 2026 | 766 |
| Nov 29, 2026 | 731 |
| Nov 28, 2026 | 669 |
| Nov 27, 2026 | 304 |
| Nov 26, 2026 | 235 |
| Nov 25, 2026 | 182 |
| Nov 24, 2026 | 148 |
| Nov 23, 2026 | 148 |
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/1460725111-root)<a href="https://payloaddirectory.dev/plugins/1460725111-root"><img src="https://payloaddirectory.dev/badge/1460725111-root.svg" alt="Payload Directory"></a>README
Contact tiles for Payload: a routed contact page with a search box that autocompletes topics and synonyms, quick tiles, and one short form. The server emails the topic's group address, with the sender as reply-to, and never sends an address to the browser.
Status: 0.2.0 (0.1.0 is on npm). 124 tests pass: the server flow with a stubbed email adapter and made-up addresses (routing, refusals, rate limits that fail closed, header injection, the honeypot, the optional human check hook) and the React component in jsdom (combobox keys and ARIA attributes, tiles, the form, and the server-rendered no-JS markup). Nothing has run on a real site, no real email has been sent, and the component hasn't been checked with a real screen reader, in a phone browser, or with a contrast tool. The CSS colors are chosen to meet WCAG AA but that hasn't been measured.
other (change it with fallbackTopic) is always last, so a search never ends with nothing to pick. The box takes 200 characters, and search counts at most 12 distinct words, so a pasted block cannot slow the page. Arrow keys, Home, End, Enter and Escape work, and a screen reader hears how many suggestions there are.On its own: Contact Tiles needs only Payload, plus React if you use its ContactTiles component. It doesn't depend on any other plugin.
Needs: Payload ^3.80.0 as a peer dependency, with React ^18.0.0 || ^19.0.0 optional. No other EXTANT APE plugin is required.
Works with: no other plugin is wired to it.
Color Theory: none yet. The tiles use their own --ct-* variables with fixed defaults, and they don't fall back to Color Theory's --palette-* tokens. Your site can set the --ct-* variables itself, to var(--palette-primary) and the like.
npm install @extantape/payload-plugin-contact-tiles
Not published yet, so for now install from a local checkout. It needs Payload 3 (^3.80), Node 22 or later, and a configured email adapter. React 18 or 19 is only needed for the component.
import { contactTilesPlugin } from '@extantape/payload-plugin-contact-tiles'
export default buildConfig({
plugins: [
contactTilesPlugin({
topics: [
{ id: 'orders', label: 'Order question', synonyms: ['refund', 'shipping'], hint: 'Where is my kit?', to: '[email protected]' },
{ id: 'sponsors', label: 'Sponsor us', synonyms: ['donate'], to: '[email protected]' },
{ id: 'other', label: 'Something else', to: '[email protected]' },
],
tiles: [{ topic: 'orders' }, { topic: 'sponsors' }, { topic: 'other' }],
}),
],
})
The page, as a client component fed by a server component:
// app/contact/page.tsx (server)
import { publicConfig, resolveOptions } from '@extantape/payload-plugin-contact-tiles'
import { ContactTiles } from '@extantape/payload-plugin-contact-tiles/react'
const options = resolveOptions(contactOptions) // the same object you gave the plugin
export default async function Page({ searchParams }) {
const { topic, sent, error } = await searchParams
const c = publicConfig(options)
return <ContactTiles topics={c.topics} tiles={c.tiles} action={`/api${c.path}`} honeypotField={c.honeypotField} initialTopic={topic} status={sent ? 'sent' : error} pageHref="/contact" />
}
publicConfig leaves the addresses out. GET /api/contact/topics gives the same data if you would rather fetch it.
Rendered on the server, the topic is a plain select, the tiles are links that reload the page with ?topic=, and the form posts to the endpoint. The endpoint answers a form post with a redirect to redirectTo (default /contact) plus ?sent=1 or ?error=<code>. The redirect ends with #contact-result, the id of the message, so a phone lands on it instead of showing the tiles. With JavaScript, focus moves to the message after a send. Once the script runs, the select becomes the search box and the tiles become buttons.
| Option | Default | What it does |
|---|---|---|
topics | required | id, label, to, and optional synonyms and hint. Ids are lowercase letters, digits and hyphens. to is one plain address. |
tiles | first six topics | { topic, label?, hint? }, in order. |
subjectPrefix | [Contact] | Subject is [Contact] Order question: Name. |
path | /contact | Endpoint under Payload's API route. |
redirectTo | /contact | Where a no-JS post goes back to. Must be a path on your site. |
honeypotField | website | Hidden field a person never fills. |
limits | 5 per address, 3 per email | Attempts per window. |
windowMinutes | 60 | The window. |
rateLimit | built in, in memory | Your own limiter ((kind, key, req) => boolean, only true allows), or { store } with hit(key, windowMs) => { count } backed by Redis or your database. A store that throws refuses the send. |
trustProxy | false | 'x-forwarded-for' (last entry counts) or 'x-real-ip', only if your host puts the app behind a proxy that sets that header. With false no header is trusted. |
clientAddress | from trustProxy | Your own function for which address counts. Overrides trustProxy. |
verifyTimeoutMs | 10000 | The human check refuses if it takes longer. Tokens over 2048 characters refuse. |
maxKeys | 50000 | Most keys the built-in limiter keeps. When full and nothing has expired, new keys are refused. |
verifyHuman | off | A human check such as Turnstile: ({ token, address, req }) => boolean. Runs before routing and sending. Only true passes. |
humanTokenField | humanToken | Form field that carries the check's token. |
maxMessage | 5000 | Characters. |
true, refuses the request. Bad options stop Payload at start-up.rateLimit: { store } backed by something shared. It keeps only hashed keys and at most maxKeys of them. By default no header is trusted for the address, so a visitor can't pick their own, and all visitors share one count. Set trustProxy to the header your proxy sets, or pass clientAddress. A request with no address shares the same one count, which fails closed.verifyHuman to verify a Turnstile or similar token on the server. A false, a throw or any answer other than exactly true refuses with a plain message that gives no reason. Show the widget with the component's humanCheck prop; its token field goes in the post, and the no-JS form post forwards it too. Without the hook nothing changes.verifyHuman.npm test # server tests and component tests
npm run typecheck
npm run build
npm run leak-check
MIT, copyright EXTANT APE. See LICENSE.
Pass text to ContactTiles to change any wording. Two are optional and empty by default:
| Key | What it does |
|---|---|
formHeading | A heading (h2) above the form, such as Write to us. |
emailHint | A line under the email field, such as We reply to this address. It is linked to the field for screen readers. |
Messages start with a bold lead word and an icon (errorLead, default Problem:, and sentLead, default Sent:), so they don't depend on color alone.
form builder
Let admin editors build and manage forms from within the Payload admin panel
100171.2k/wk46.1kv3 v4
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
payload recaptcha v3
Protect collection operations with Google reCAPTCHA v3 token verification
37183/wk37v3
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 typesense
Typesense search for Payload with automatic sync, search endpoints, optional vector search and React search components
851.4k/wk33v3 v4