Communication & Collaboration

React Messaging & Sharing Guardrails

Messaging guardrails warn against unintended reply-all sends, external domain recipients on internal threads, forgotten attachments, and accidentally pasted secrets or API keys before messages are broadcast.

Messaging kit

Wrong recipient, reply-all, the forgotten attachment and the leaked key.

pnpm dlx shadcn@4.21.0 add @bollard/messaging-pack

Components in Messaging & sharing (45)

React 19+ · Tailwind v4 · shadcn
AI Paste GuardStyled

Holds a paste into an AI prompt box when it carries text the person could not see, so hidden prompt injections are noticed before they are sent.

Stops: Hidden prompt injection in a paste
Undo ToastStyled

Runs actions optimistically and commits only after an undo window, so a mistake can be taken back without an "Are you sure?".

Stops: Deleted item gone with no undo
Swipe Delete RowStyled

Makes swipe-to-delete deliberate: the row deletes only past a visible line, never on a flick or scroll, and keeps an Undo.

Stops: Swipe while scrolling deleted row
Grace SendStyled

Gives a short change-of-mind window after pressing Send, so a regretted message or action can be cancelled before it actually goes.

Stops: Helps catch a send before second thoughts
Scheduled QueueStyled

Keeps scheduled sends visible: live countdowns, a last-chance window before the cancel cutoff, quiet-hour warnings and missed sends flagged.

Stops: Scheduled campaign sent at 3am
URL InputStyled

Catches broken, insecure and disguised links: missing https, lookalike hostnames, user@host tricks, typo'd endings and tracking clutter.

Stops: Lookalike or broken link saved
Character BudgetStyled

Counts text against X, SMS, LinkedIn and meta-description limits at once, so posts aren't cut off and SMS don't silently cost double.

Stops: Post cut off or SMS costs double
Hashtag InputStyled

Catches hashtags that quietly break, such as #don't posting as #don, and posts over a platform's tag limit.

Stops: Helps catch a hashtag cut short by a space
Wrong Layout InputStyled

Notices text typed with the wrong keyboard layout ("ghbdtn" for "привет") and offers the retyped text as a one-tap fix.

Stops: Text typed in the wrong keyboard layout
Leftover Text CheckStyled

Catches chatbot chatter, refusals, unfilled placeholders and TODOs left in text before it is published.

Stops: Chatbot reply published as listing
Markdown CheckStyled

Catches Markdown that will render differently from how it reads, like an unclosed ** or a link broken by a space, and previews each spot.

Stops: Markdown renders differently than written
Stale Attachment CheckStyled

Flags an attachment that looks like an older copy, e.g. report_v2.pdf attached while report_v3_final.pdf was edited today.

Stops: Old draft attached instead of final
Attachment NudgeStyled

Notices "see attached" in a message with nothing attached and asks inline whether to attach a file or send anyway.

Stops: "See attached" sent without attachment
Resume MarkerStyled

Remembers where a reader stopped in a long feed or doc and offers a jump back, without moving the page on its own.

Stops: Lost my place in a long feed
New Content PillStyled

Holds new feed items behind a "5 new posts" pill, so the feed doesn't jump under the reader's finger while they read or tap.

Stops: Feed jumped while I was tapping
Unsent MarkerStyled

Brings a typed-but-never-sent message back as a clear "Not sent" bubble, so people don't think they replied.

Stops: Thought I replied but never sent it
Bcc GuardStyled

Shows the To line as each recipient will see it, so a group email doesn't expose everyone's names and addresses to each other.

Stops: Recipients see each other's addresses
Hidden Content CheckStyled

Opens an .xlsx, .docx or .pptx in the browser before it is shared and lists what is hidden inside: sheets, rows, comments, notes, tracked deletions, author details.

Stops: Hidden tab leaked staff names
Prompt Data GuardStyled

Before a message goes to an AI chat, says exactly what personal data, secrets or confidential documents are in it and where they'll go.

Stops: Helps keep a customer list out of an AI chat
Callback Number CheckStyled

Says what a number really is before you call it back, so a Caribbean, premium-rate or one-ring scam number isn't mistaken for a local one.

Stops: Called back a premium-rate scam number
Calendar External Guest GuardStyled

Shows what outside guests on an internal invite will actually see, so an agenda, file or guest list isn't shared beyond your domain by mistake.

Stops: Internal agenda shared with outside guests
Chat Audience CheckStyled

Before a sensitive message goes to a group chat, flags members who don't seem to belong, so it doesn't reach the wrong person.

Stops: Secret message reached a stranger in group
Out of Office CheckStyled

Reads an auto-reply back with exactly when it runs and who gets what, so it doesn't reply all day on the day you're back or tell strangers too much.

Stops: Auto-reply runs on the day I'm back
Retract WindowStyled

Shows how long Edit and Unsend really stay open for a sent message, and who will keep the original anyway.

Stops: Trusted an unsend that didn't work
Link Access CheckStyled

Before a message is sent, checks each cloud document link against its recipients, so nobody gets a link they can't open and nothing goes public by accident.

Stops: Shared a link they can't open
Reply All GuardStyled

Shows how many people a reply-all really reaches and who is outside the organisation before it goes, with a one-tap reply to the sender only.

Stops: Reply all to the whole company
Bulk Send GuardStyled

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.

Stops: Bulk blast sent at 2 AM
PII Post GuardStyled

Before a public post goes out, finds phone numbers, emails, Aadhaar, PAN, card numbers or OTPs in it and masks them in one tap.

Stops: Helps stop an Aadhaar number being posted in public
Recipient CheckStyled

Reduces misaddressed email by flagging external recipients, lookalike or typo'd domains, duplicates and names paired with the wrong address.

Stops: Email sent to the wrong address
Secret Paste GuardStyled

Spots API keys, tokens and private keys as they're pasted or typed into a field and offers one-tap Redact before they're sent.

Stops: Helps catch an API key pasted into a chat
External LinkStyled

Confirms off-site links with the real destination and flags lookalike, punycode or mismatched links, so people don't click through to a phishing site.

Stops: Clicked through to a phishing site
Send Time CheckStyled

Shows the recipient's local time next to Send and offers to schedule for their next working morning when it's night, weekend or a holiday there.

Stops: Message landed at 2 AM their time
Photo Location GuardStyled

Reads a photo's EXIF and XMP before upload and offers one-tap location removal, so a picture doesn't reveal where and when it was taken.

Stops: Photo leaked my home location
Mention GuardStyled

Says how many people @channel, @everyone or a group mention will notify as you type, and asks for an explicit confirm before a mass ping.

Stops: @channel pinged 1,240 people
Share LinkStyled

Reads every share-link setting back as one sentence and warns about public edit access, links that never expire and widening an already-copied link.

Stops: Anyone with the link could edit
Merge Field CheckStyled

Renders a mail-merge template for each real recipient, so nothing goes out as "Hi ," or "{{frist_name}}".

Stops: Email went out as Hi {{first_name}}
Forward GuardStyled

Lists what new recipients will see for the first time when a thread is forwarded, so internal notes and addresses aren't overshared.

Stops: Forwarded internal notes to a client
Link Unfurl CheckStyled

Previews how a link will unfurl before you post it and catches localhost or staging links, tracking parameters and broken preview images.

Stops: Posted a localhost link preview
QR ShareStyled

Reads the exact URL back under a QR code and re-decodes what it drew, so a shared code doesn't open the wrong page.

Stops: QR code opens the wrong page
Redact ImageStyled

Helps a redacted screenshot stay redacted: solid boxes only, padded to whole pixels, flattened into a fresh PNG that is re-checked on export.

Stops: Redacted screenshot still readable
SMS SegmentsStyled

Shows how many billed SMS parts a text becomes and names the character (curly quote, emoji) that forced Unicode and raised the count.

Stops: One emoji doubled the SMS bill
Large AttachmentStyled

Checks attachments against each service's real size limit, counting email's Base64 overhead, so a message doesn't bounce for being too big.

Stops: Email bounced for a big attachment
Alt Text CheckStyled

Checks each image's alt text before posting, so filenames, "image of" and empty alt text don't reach screen-reader users.

Stops: Unusable alt text gets posted
Stale ReplyStyled

Warns before replying to an old message in a thread that has moved on, and shows what was said since.

Stops: Replied to a thread that moved on
Truncation PreviewStyled

Shows where social feeds and search results cut a post behind "…more", and warns when the key point or a link falls below the fold.

Stops: Hook hidden behind "…more"

Frequently Asked Questions about Messaging & sharing Guardrails

How do I prevent accidental 'Reply All' emails to company-wide distribution lists?

Reply All Warning (`reply-all-warning`) alerts when an email reply targets more than 5 recipients or an external domain. Install with `npx shadcn@4.21.0 add @bollard/reply-all-warning`. Limitation: mail server routing rules enforce final delivery.

How do I catch accidentally pasted API keys or secrets before sending messages?

Secret Paste Guard (`secret-paste-guard`) detects regex patterns matching AWS keys, GitHub tokens, and private keys. Install with `npx shadcn@4.21.0 add @bollard/secret-paste-guard`. Limitation: proprietary or custom token formats may require custom regex patterns.

How do I alert users when sending messages to external domains?

External Recipient Badge (`external-recipient-badge`) flags recipients outside your corporate domain. Install with `npx shadcn@4.21.0 add @bollard/external-recipient-badge`. Limitation: email aliases must be resolved by your email server.

How do I remind users about forgotten attachments mentioned in text?

Attachment Check (`attachment-check`) scans draft text for words like 'attached' or 'attachment' if no file is uploaded. Install with `npx shadcn@4.21.0 add @bollard/attachment-check`. Limitation: does not verify that the attached file contains the correct contents.