mobilizehub

payload plugin

by mobilizehub
Email
v3
^3.70.0

Overview

Summary generated from the README

Adds contact management and email advocacy tooling to Payload. It provides a contact database with tags and opt-in tracking, email broadcasts with audience targeting, forms and submissions, and letter campaigns. Emails are sent through background tasks using a pluggable adapter with built-in Resend support, and delivery webhooks track status. Alpha release requiring Payload 3.

Features

  • Contact database with tag-based segmentation and opt-in management
  • Email broadcasts with draft-to-sent workflow and audience targeting
  • Forms and form submissions collections
  • Letter campaigns that email a contact's letter to a named target
  • Background task email delivery with idempotency keys to avoid double sends
  • Webhook tracking of delivered, bounced, opened and clicked events

Use cases

  • Run advocacy campaigns that email broadcasts to segmented supporter lists
  • Collect supporter responses through forms and manage them as contacts
  • Let supporters send letters to named targets such as elected officials

From the author

Edvocacy plugin for Payload

Installation

npm i @mobilizehub/payload-plugin

2

Stars

0

Forks

0

Open Issues

2 months ago

Last Updated

29

Weekly Downloads

v0.14.0

npm Version

673.4 KB

Unpacked Size

2

Dependencies

GitHub stars

2+1 since Sep 7

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

29−37 since Sep 7

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 6, 202629
Dec 5, 202630
Dec 4, 202628
Dec 3, 202629
Dec 2, 202629
Dec 1, 202629
Nov 30, 202629
Nov 29, 202629
Nov 28, 202628
Nov 27, 202627
Nov 26, 202626
Nov 25, 20261
Nov 24, 20266
Nov 23, 20266
Nov 22, 20268
Nov 21, 20268
Nov 20, 20268
Nov 19, 20268
Nov 18, 202631
Nov 17, 202625
Nov 16, 202627
Nov 15, 202626
Nov 14, 202626
Nov 13, 202629
Nov 12, 202631
Nov 11, 20269
Nov 10, 202632
Nov 9, 202631
Nov 8, 202641
Nov 7, 202646
Nov 6, 202646
Nov 5, 202644
Nov 4, 202646
Nov 3, 202630
Nov 2, 202633
Nov 1, 202622
Oct 31, 202617
Oct 30, 202614
Oct 29, 202614
Oct 28, 202611
Oct 27, 20267
Oct 26, 20265
Oct 25, 20265
Oct 24, 20266
Oct 23, 20266
Oct 22, 20266
Oct 21, 20267
Oct 20, 202627
Oct 19, 202626
Oct 18, 202630
Oct 17, 202630
Oct 16, 202631
Oct 15, 202639
Oct 14, 202664
Oct 13, 202642
Oct 12, 202642
Oct 11, 202644
Oct 10, 202649
Oct 9, 202656
Oct 8, 202655
Oct 7, 202630
Oct 6, 202633
Oct 5, 202635
Oct 4, 202659
Oct 3, 2026211
Oct 2, 2026203
Oct 1, 2026202
Sep 30, 2026201
Sep 29, 2026199
Sep 28, 2026198
Sep 27, 2026171
Sep 26, 202623
Sep 25, 202627
Sep 24, 202627
Sep 23, 202636
Sep 22, 202641
Sep 21, 202676
Sep 20, 202682
Sep 19, 202699
Sep 18, 2026211
Sep 17, 2026348
Sep 16, 2026339
Sep 15, 2026336
Sep 14, 2026300
Sep 13, 2026298
Sep 12, 2026274
Sep 11, 2026182
Sep 10, 202643
Sep 9, 202647
Sep 8, 202656
Sep 7, 202666

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

Health Score

57/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/1115436658-root.svg)](https://payloaddirectory.dev/plugins/1115436658-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1115436658-root"><img src="https://payloaddirectory.dev/badge/1115436658-root.svg" alt="Payload Directory"></a>
Updated Sep 24, 2026Created Dec 12, 2025Published Sep 24, 2026

README

MobilizeHub Payload Plugin

A comprehensive email advocacy and contact management plugin for Payload CMS. Build powerful advocacy campaigns, manage contacts, send targeted email broadcasts, and track engagement—all within your Payload admin.

npm version License: MIT

Alpha Release: This plugin is currently in alpha. Expect breaking changes between releases until we reach a stable 1.0 version.

Features

  • Contact database with tag-based segmentation and opt-in management
  • Email broadcast campaigns with draft-to-sent workflow and audience targeting
  • Forms and form submissions for collecting and managing user responses
  • Letter campaigns that email a contact's letter to a named target, with an editable body
  • Background task processing for scalable email delivery
  • Webhook integration for delivery status tracking (delivered, bounced, opened, clicked)
  • Secure unsubscribe tokens with HMAC-SHA256 signing
  • Pluggable email adapter system with built-in Resend support
  • createContentCollection helper for defining your own content collections with a consistent status/settings/content structure

Installation

npm install @mobilizehub/payload-plugin
# or
yarn add @mobilizehub/payload-plugin
# or
pnpm add @mobilizehub/payload-plugin

Overriding the emails collection

emailsOverrides.fields replaces the whole field set, so any override must keep the fields the send-email task depends on:

FieldTypePurpose
idempotencyKeytext (unique)The key sent to the provider. Generated once per email row so retries replay rather than double-send.
unsubscribeTokenIdtextLets a resumed send rebuild the same unsubscribe token instead of minting a new one.
replyTotextThe broadcast's reply-to, captured at send time so every retry sends an identical payload.

The emails collection also declares a unique compound index on (broadcast, contact), which is what guarantees one email per contact per broadcast even when two workers race on the same job.

mobilizehubPlugin({
  emailsOverrides: {
    fields: ({ defaultFields }) => [...defaultFields, myExtraField],
  },
})

Extending defaultFields is the safe pattern. If you build the list from scratch, copy all three fields across verbatim.

Preview text

previewText is not a provider field — it reaches the inbox as a preheader inside the HTML. The plugin passes it to your render function; emit it there if you want it:

render: ({ html, previewText }) =>
  `<div style="display:none;max-height:0;overflow:hidden">${previewText ?? ''}</div>${html}`

Development

Setup

# Clone the repository
git clone https://github.com/mobilizehub/payload-plugin.git
cd payload-plugin

# Install dependencies
pnpm install

# Create environment file
cp dev/.env.example dev/.env
# Edit dev/.env with your configuration

# Start development server
pnpm dev

Testing

# Run all tests
pnpm test

# Run integration tests
pnpm test:int

# Run E2E tests
pnpm test:e2e

Building

# Build the plugin
pnpm build

Requirements

  • Node.js: ^18.20.2 || >=20.9.0
  • Payload CMS: ^3.68.5
  • pnpm: ^9 || ^10

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT © MobilizeHub

Support

For issues, questions, or feature requests, please open an issue on GitHub.

Changelog

See CHANGELOG.md for version history and release notes.

Similar plugins