Bulk Send Guard

Bulk Send Guard is a copy-paste React component that stops bulk blast sent at 2 am before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/bulk-send-guard
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsBulk blast sent at 2 AM

Was this component page useful?

How do I install Bulk Send Guard?

pnpm dlx shadcn@latest add @bollard/bulk-send-guard

The files land in your project. They're yours to edit.

What input mistakes does Bulk Send Guard catch?

  • Opted-out, STOP and unreachable recipients, counted and left out
  • Recipients in quiet hours in their own IANA time zone (default 21:00–10:00 for SMS and WhatsApp)
  • The cost of the send
  • A send much bigger than the last one, which requires typing the count
  • Accidental double-click sends, via a separate confirm step

What props does Bulk Send Guard accept?

BulkSendGuard props
PropTypeDefault
channel* (required)

Which channel the blast goes out on; sets the default quiet hours.

BulkChannel—
audience* (required)

Who is on the list, who is excluded, and their time zones.

BulkAudience—
costPerMessage

Cost of one message (one part, for SMS). Leave out to hide the estimate.

number—
segments

SMS parts per message.

number1
currency

ISO 4217 code for the cost. Defaults to INR.

string"INR"
locale

BCP 47 locale for numbers and money. Defaults to en-IN.

string"en-IN"
quietHours

Quiet hours in each recipient's local time. Defaults to 21 → 10 for SMS and WhatsApp (TRAI's default for promotional SMS), none for email. Pass `null` for transactional or service messages, which TRAI allows at any hour.

QuietHours | null—
fallbackTimeZone

IANA time zone for recipients with no known zone. Defaults to UTC.

string"UTC"
lastSend

The previous blast, for the jump check.

{ count: number; at: Date | number | string }—
jumpFactor

Flag a send this many times bigger than the last one, and ask for the count to be typed.

number2
now

Pass for deterministic rendering; otherwise the clock is read after mount and every 30 s.

Date—
onSend* (required)

Sends it. Return a promise for a pending state; a rejection returns to the confirm step.

(plan: BulkSendPlan) => void | Promise<void>—
messages

Override any visible string.

Partial<BulkSendGuardMessages>—

* required. Also accepts the native props of <section> (className, aria-*, data-*…), passed through to it.

How is Bulk Send Guard accessible?

  • Section labelled by the reach summary; quiet-hours options are a labelled fieldset
  • Focus moves to the confirm step and back to Review; Escape goes back
  • Errors use role="alert" and status updates role="status"
  • Icons are aria-hidden; every number is written in text

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

This is a UX guard rail. Enforce on the server: Enforce opt-outs, DND registries, quiet hours and send limits in the sending service, with idempotency so one blast can't go out twice.

  • Audience counts, exclusions and time zones come from your props
  • The default quiet hours follow TRAI's default for promotional SMS in India; other countries and channels have different rules
  • It does not send, schedule or hold messages; onSend does

What validation rules apply to Bulk Send Guard?

Rules last verified:

Informational; check the official source. TCCCPR 2018 sets time bands 00:00–10:00 and 21:00–24:00 default OFF for promotional communication, matching the 21:00–10:00 default. Later TRAI amendments (2025) were not reviewed for changes to this default. Copied components don't update themselves, so re-check after rule changes (see updating a component).

What expensive mistakes does Bulk Send Guard stop?

Bulk blast sent at 2 AM

Also known as

bulk sms · whatsapp broadcast · email campaign · newsletter · dnd · opt out · quiet hours · marketing

Field type

What dependencies does Bulk Send Guard require?

Bulk Send Guard facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameBulk Send Guard
Registry identifier@bollard/bulk-send-guard
Install commandnpx shadcn@latest add @bollard/bulk-send-guard
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Bulk Send Guard

What form validation mistake does Bulk Send Guard catch?

Bulk Send Guard prevents bulk blast sent at 2 AM. States who an SMS, WhatsApp or email blast will reach, who is excluded and who is in quiet hours, before an explicit confirm sends it. Catches: Opted-out, STOP and unreachable recipients, counted and left out, Recipients in quiet hours in their own IANA time zone (default 21:00–10:00 for SMS and WhatsApp), The cost of the send, A send much bigger than the last one, which requires typing the count, Accidental double-click sends, via a separate confirm step. Limitation: validate bulk-send-guard schemas on backend.

How do I install bulk-send-guard with shadcn?

Run `npx shadcn@latest add @bollard/bulk-send-guard`. Sources added: registry/default/bulk-send-guard/bulk-send-guard.tsx. Package requirements: lucide-react.

What props customize Bulk Send Guard?

Bulk Send Guard accepts `channel`, `audience`, `costPerMessage`, `segments`, `currency`. Configures bulk sms, whatsapp broadcast, email campaign behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of bulk-send-guard?

Audience counts, exclusions and time zones come from your props. The default quiet hours follow TRAI's default for promotional SMS in India; other countries and channels have different rules. It does not send, schedule or hold messages; onSend does Server requirement: Enforce opt-outs, DND registries, quiet hours and send limits in the sending service, with idempotency so one blast can't go out twice.

How does Bulk Send Guard meet accessibility guidelines?

Section labelled by the reach summary; quiet-hours options are a labelled fieldset. Focus moves to the confirm step and back to Review; Escape goes back. Errors use role="alert" and status updates role="status". Icons are aria-hidden; every number is written in text. Minimizes errors: bulk sms sent at night, whatsapp broadcast wrong list.

Which components pair with Bulk Send Guard?