
Company News
Meet the Socket Team at RSAC and BSidesSF 2026
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.
payload-clienthub
Advanced tools
Payload CMS plugin for client management, service tracking, and invoicing.
Automatic monthly invoicing with PDF generation, Swiss QR Bill support, and multi-language email delivery for Payload CMS.
payload-clienthub adds a full invoicing workflow to Payload -- clients, services, and invoices are managed as collections. Recurring services are automatically detected when due, rendered as localized PDF invoices (with Swiss QR Bill support), and emailed to each client. A single endpoint processes all clients at once, so you can wire it up to a scheduler and forget about it.
Features
pnpm add payload-clienthub
// payload.config.ts
import { buildConfig } from 'payload';
import { clienthubPlugin } from 'payload-clienthub';
export default buildConfig({
// ...
plugins: [
clienthubPlugin({
cronSecret: process.env.CRON_SECRET!,
}),
],
});
Trigger invoice generation for all clients by calling the batch endpoint (e.g. from a monthly scheduler):
curl -H "Authorization: Bearer $CRON_SECRET" \
https://your-app.com/api/plugin-invoices/process-all-clients
| Option | Type | Default | Description |
|---|---|---|---|
cronSecret | string | — | Required. Shared secret used to authenticate batch requests via the Authorization: Bearer header. |
clientsCollectionSlug | CollectionSlug | 'clients' | Slug for the auto-created clients collection. |
servicesCollectionSlug | CollectionSlug | 'services' | Slug for the auto-created services collection. |
invoicesCollectionSlug | CollectionSlug | 'invoices' | Slug for the auto-created invoices collection. |
invoicePdfsCollectionSlug | CollectionSlug | 'invoice-pdfs' | Slug for the auto-created invoice PDFs upload collection. |
onError | (error: Error, context: { operation: string; metadata?: Record<string, unknown> }) => void | console.error | Custom error handler called when PDF generation or email delivery fails. |
This plugin lives in the payload-plugins monorepo.
pnpm install
# watch this plugin for changes
pnpm --filter payload-clienthub dev
# run the Payload dev app (in a second terminal)
pnpm --filter sandbox dev
The sandbox/ directory is a Next.js + Payload app that imports plugins via workspace:* — use it to test changes locally.
fix(payload-clienthub): ...).pnpm release.Bug reports and feature requests are welcome — open an issue.
MIT
FAQs
Payload CMS plugin for client management, service tracking, and invoicing.
We found that payload-clienthub demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.

Research
/Security News
Malicious Packagist packages disguised as Laravel utilities install an encrypted PHP RAT via Composer dependencies, enabling remote access and C2 callbacks.

Research
/Security News
OpenVSX releases of Aqua Trivy 1.8.12 and 1.8.13 contained injected natural-language prompts that abuse local AI coding agents for system inspection and potential data exfiltration.