ExtantApe

payload plugin sponsors

by ExtantApe
Other
v3
^3.80.0
MIT

Overview

Summary generated from the README

Adds sponsors, optional tiers and sponsor update collections to Payload, plus an admin overview at /admin/sponsors. Updates are written in the Lexical editor and emailed to chosen sponsors or tiers, with signed opt-out links, per-send reports and recovery of interrupted sends. Requires Payload 3.80 or later, Lexical, an upload collection for logos and working email.

Features

  • Sponsor records with logo, website, summary, tier and a public visibility switch
  • Optional tiers with color, description and perks, ordered by drag and drop
  • Contacts visible only to managers and never exposed in the public API
  • Sponsor updates sent to all sponsors, selected sponsors or tiers with signed opt-out links
  • Partly sent and Failed states, resend to the remaining contacts only, and Recover for stalled sends
  • Archive and restore sponsors, plus upsertListing and retireListing helpers for membership plugins

Use cases

  • Show a sponsor wall grouped by tier on a nonprofit website
  • Send update emails to sponsors from the admin and track delivery per sponsor
  • List paying members as sponsors automatically and remove them when they cancel

From the author

Sponsors for Payload: a public sponsor list with optional tiers, private contacts, and sponsor updates written and sent from the admin.

Installation

npm i @extantape/payload-plugin-sponsors

0

Stars

0

Forks

0

Open Issues

1 weeks ago

Last Updated

131

Weekly Downloads

v0.3.2

npm Version

70.3 KB

Unpacked Size

0

Dependencies

GitHub stars

00 since Nov 1

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
npm weekly downloads

143+143 since Nov 3

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 6, 2026143
Dec 5, 2026184
Dec 4, 2026353
Dec 3, 2026383
Dec 2, 2026409
Dec 1, 2026432
Nov 30, 2026468
Nov 29, 2026551
Nov 28, 2026529
Nov 27, 2026364
Nov 26, 2026347
Nov 25, 2026322
Nov 24, 2026288
Nov 23, 2026420
Nov 22, 2026308
Nov 21, 2026278
Nov 20, 2026267
Nov 19, 2026227
Nov 18, 2026207
Nov 17, 2026183
Nov 16, 20260
Nov 15, 2026290
Nov 14, 2026290
Nov 13, 2026268
Nov 12, 2026475
Nov 11, 2026672
Nov 10, 2026616
Nov 9, 2026607
Nov 8, 2026574
Nov 7, 2026551
Nov 6, 2026541
Nov 5, 2026261
Nov 4, 20260
Nov 3, 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/1442375054-root.svg)](https://payloaddirectory.dev/plugins/1442375054-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1442375054-root"><img src="https://payloaddirectory.dev/badge/1442375054-root.svg" alt="Payload Directory"></a>
Updated Nov 29, 2026Created Nov 2, 2026Published Nov 14, 2026

README

payload-plugin-sponsors

Sponsors for Payload: a public sponsor list with optional tiers, private contacts, and sponsor updates written and sent from the admin.

  • Sponsors: name, logo, website, attribution line, summary, since, tier, and a “Show on the public page” switch. Ordered by drag and drop in the admin; new sponsors are placed alphabetically, so the default order is A–Z. Contacts (one or more emails per sponsor) are visible to managers only, never in the public API.
  • Tiers (optional): Founding, Gold… with color, description and perks, ordered by drag and drop.
  • Sponsor updates: subject and rich-text body in the admin’s own editor; send to all current sponsors, chosen sponsors and/or whole tiers. "All current sponsors" means every sponsor that isn't archived, listed on the public page or not. The admin shows who it will reach and asks to confirm. Every contact gets their own email with a signed opt-out link; opted-out contacts and archived sponsors are skipped. Each update keeps a report (counts per sponsor, never addresses) and can’t be sent twice: if two sends start at once, only one goes out and the other is refused.
  • When a send doesn't finish: if a delivery fails, or something breaks partway, the update is marked Partly sent (or Failed if nobody got it) and the report says so. Sending it again reaches only the contacts who haven't had it; nobody gets it twice. The update remembers who had it as keyed hashes, not addresses.
  • When the server stops mid-send: the update stays Sending. A send records each email as it goes and refreshes a timestamp before each one, so after 30 minutes with no progress (staleSendMinutes) the update's sidebar says "Sending stopped: recover it to finish", with a Recover button. No background job is involved; the check runs when the page loads. Recovering marks it Partly sent, or Failed if nobody had it yet, and sending it again reaches only the rest. A send that is still making progress can't be recovered, two recoveries at once give one winner, and a send that wakes up after being recovered stops without emailing anyone else. One limit: if the server stops just after an email goes out but before it is recorded, that one contact can get the update twice.
  • Archive first: archiving hides a sponsor from the public page and from updates while keeping their history; restore any time. Deleting stays available for mistakes.
  • Overview at /admin/sponsors: logos by tier, add, archive/restore, email sponsors.
  • For membership plugins: upsertListing() / retireListing() list members as sponsors (for example, a paid tier with a sponsor-wall perk) and remove them when they leave.

On its own, and with others

On its own. Sponsors needs Payload's Lexical editor, an upload collection for logos (media by default) and working email (payload.sendEmail, or your own sendEmail). It doesn't import any other plugin.

Needs. Payload ^3.80.0, @payloadcms/next ^3.80.0, @payloadcms/richtext-lexical ^3.80.0, @payloadcms/ui ^3.80.0 and React >=19 as peer dependencies. No other EXTANT APE plugin is required.

Works with:

  • Membership (@extantape/payload-plugin-membership): from Membership's onStatusChange, your site calls upsertListing() and retireListing(), so members of a tier marked "Members are listed as sponsors" show up here and leave when they cancel. Neither plugin imports the other.
  • Multi-tenant (@payloadcms/plugin-multi-tenant): add the tenant field with overrides and set scopeField, and new sponsors are placed A–Z within their own site.

Color Theory. No direct link. Its admin screens use Payload's --theme-* colors, so they follow Color Theory's admin colors when its applyToAdmin option is on.

Family. Sponsors is in the Patronage family, with Membership, Backing, Credits, Printify and Roadmap. Backing and Credits are named but not built yet, and the families are a working draft that may change.

Install

npm install @extantape/payload-plugin-sponsors
import { sponsorsPlugin } from '@extantape/payload-plugin-sponsors'

export default buildConfig({
  editor: lexicalEditor(),
  plugins: [
    sponsorsPlugin({
      canManage: ({ req }) => req.user?.role === 'admin',
      replyTo: '[email protected]',
      // Optional: your email layout around the update.
      renderEmail: ({ html, text }) => ({ html: myLayout(html), text }),
    }),
  ],
})

Show them on your site:

import { getSponsors } from '@extantape/payload-plugin-sponsors'

const groups = await getSponsors(payload) // [{ tier: { name, … } | null, sponsors: [...] }]

Options

OptionDefault
slugssponsors, sponsor-tiers, sponsor-updatestiers: false turns tiers off
uploadsmediaCollection for logos
canManagesigned-in usersWho manages sponsors, sees contacts and sends updates. Only true counts: see Access
canSendalwaysE.g. off in development. Only true allows a send
sendEmailpayload.sendEmailDeliver one email
renderEmailWrap the update in your layout
replyToReply-To on updates
publicURLserverURLOrigin for opt-out links
overridesAdjust the generated collections (e.g. multi-tenant fields)
adminViewtrueThe /admin/sponsors overview and nav link
scopeFieldField separating owners (e.g. tenant): new sponsors are placed A–Z among their own
staleSendMinutes30Minutes without progress before a send counts as stopped and can be recovered

Access

canManage decides everything a manager can do, and only an answer of exactly true counts. Anything else is a no: false, 1, 'yes', an object, or an error thrown or rejected. An error doesn't escape as a 500; the request is refused. Nobody who isn't signed in is a manager, whatever canManage says.

WhereA managerAnyone else
SponsorsReads all, creates, edits, deletesReads listed, non-archived sponsors only
Contacts (field)Reads and writesNever sees them
TiersCreates, edits, deletesReads
Sponsor updatesReads and writesNothing
recipients, send, archive, recover endpointsAllowed401 if not signed in, else 403
/admin/sponsors and its nav linkShown"You don't have access", no link
Opt-out linkAnyone with a valid signed link

Sponsors' read access is the one place that returns a query: a non-manager gets the plugin's own public filter. What canManage returns is never passed to Payload, so an object that looks like a query can't widen it. canSend follows the same rule: only true lets a send start, and anything else, an error included, refuses it with "Sending sponsor updates is turned off here" (400).

overrides can change a collection's access; if you do, your rules replace these.

Recovering a stopped send

From the update's sidebar, or POST /api/sponsor-updates/:id/recover (managers only: canManage must return exactly true). In server code, recoverSend(payload, id) does the same without the access check, and isStuck(payload, update) says whether an update can be recovered. Updates left in Sending by 0.3.1 have no progress timestamp; they count from their last change instead.

Upgrading from 0.1

Version 0.2.0 was briefly named @extantape/payload-plugin-sponsor (singular). If you used that name, install @extantape/payload-plugin-sponsors instead; the exports are unchanged, so only the import path changes.

0.2 replaces the numeric order fields with drag-and-drop ordering (Payload orderable, field _order). Give existing sponsors and tiers an _order once (e.g. with generateNKeysBetween from payload/shared, sponsors A–Z, tiers in their old order).

License

MIT

Similar plugins