Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words Sign in

Messaging Rules

✓ pinlyx.com

by Pinlyxversion 0.1.1i★ 0iRuns on your computerOfficial site ↗

How to install

What it does

Can I message this person now? Source-cited WhatsApp, Instagram, Messenger, Telegram and X rules.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Chat & email

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score12/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Messaging Rules. Follow https://mcp.popnx.com/i/pinlyx-messaging-rules.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 26, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Messaging Rules for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "messaging-rules": { "command": "npx", "args": [ "-y", "messaging-rules" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Messaging Rules tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "messaging-rules": {
          "command": "npx",
          "args": [
            "-y",
            "messaging-rules"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Messaging Rules and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Messaging Rules or shows a Messaging Rules tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Messaging Rules yet

Messaging Rules runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Messaging Rules

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)

B · Others in Chat & email that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Messaging Rules for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user messaging-rules -- npx -y messaging-rules 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Messaging Rules tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user messaging-rules -- npx -y messaging-rules
  4. Type /mcp in Claude Code

    You should see Messaging Rules listed as connected

  5. Try it

    Use Messaging Rules and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Messaging Rules or shows a Messaging Rules tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Messaging Rules for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "messaging-rules": { "command": "npx", "args": [ "-y", "messaging-rules" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Messaging Rules tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Messaging Rules and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Messaging Rules or shows a Messaging Rules tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Messaging Rules for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "messaging-rules": { "type": "stdio", "command": "npx", "args": [ "-y", "messaging-rules" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Messaging Rules tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Messaging Rules and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Messaging Rules or shows a Messaging Rules tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Messaging Rules💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user messaging-rules -- npx -y messaging-rules

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "messaging-rules": {
      "command": "npx",
      "args": [
        "-y",
        "messaging-rules"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "messaging-rules": {
      "command": "npx",
      "args": [
        "-y",
        "messaging-rules"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "messaging-rules": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "messaging-rules"
      ]
    }
  }
}

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Registry name
com.pinlyx/messaging-rules
Downloads per weeki
Not on npm/PyPI
Verified domain
✓ pinlyx.com
Connection
Runs on your computer
Latest versioni
0.1.1
Published to registryi
Nov 26, 2026
Code last changedi
Nov 26, 2026
Maker
Pinlyx
Packages
npm: messaging-rules
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 26, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified against the domain pinlyx.com (the registry checks domain ownership)

  • ✓ Pass

    Still maintained

    Code last changed today

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for messaging-rules@0.1.1

Checks only this package version, not every dependency · checked Nov 26, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/pinlyx-messaging-rules.svg)](https://mcp.popnx.com/en/servers/pinlyx-messaging-rules)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Chat & emaili

  • More stars than 0% of the other 2199 servers in this category
  • Published to the registry more recently than 98% of the other 2199 servers in this category
  • Basic checks equal to or better than 99% of the other 2199 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Messaging Rules safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed today, and the latest version (0.1.1) reached the registry today.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: MoeMail, emailmd, Kite Discord Bot Builder, e2a — email for AI agents, Infobip MCP

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

MoeMail

Disposable email for AI agents: create a mailbox, wait for the code, clean up. Hosted, no install.

by beilunyangWidely used★ 2.8KUpdated 2 days ago

Connect now (has URL) · sign-in✓ service owner · moemail.app

emailmd

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

by anypostWidely used↓ 5.4K/wk★ 1.4KUpdated 12 days ago

Connect now (has URL)3 tools · light✓ service owner · emailmd.dev

Kite Discord Bot Builder

Build and fix Discord bots from a chat. Kite hosts them 24/7, with no code to deploy.

by merlinfuchsGrowing★ 333 Stars for the whole repoUpdated 29 days ago

Connect now (has URL) · sign-in✓ service owner · kite.onl

e2a — email for AI agents

Authenticated email gateway for AI agents — per-agent inboxes, HITL approval, SPF/DKIM verified.

by tokencanopyGrowing★ 200 Stars for the whole repoUpdated 4 months ago

Connect now (has URL) · sign-in✓ service owner · e2a.dev

Infobip MCP

Infobip MCP server for omnichannel communication and messaging. SMS, RCS, WhatsApp, Viber and more.

by infobipEarly★ 36Updated 13 months ago

Connect now (has URL) · sign-in✓ service owner · infobip.com
Compared with similar ones
This one
Messaging Rules
MoeMailemailmdKite Discord Bot Buildere2a — email for AI agentsInfobip MCP
Runs whereInstalls on your computerRuns in the cloud, nothing to installCloud or install on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoYes
Basic checks3/34/45/54/44/44/4
LicenseMITMITMITAGPL-3.0Apache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

messaging-rules

Can I message this person right now? Source-cited rules for WhatsApp, Instagram, Messenger, Telegram and X, as data, a library and an MCP tool.

canMessage({ channel: 'instagram', lastInboundAt: '2026-11-19T09:00:00Z', sender: 'bot' })

// { allowed: false, // reason: 'The 24h standard messaging window closed at 2026-11-20T09:00:00.000Z. After it: Only HUMAN_AGENT tagged replies sent by a person, ...', // allowedAlternatives: [], sources: ['https://developers.facebook.com/...'] }

Why

The rules that decide whether a business may message someone are spread across dozens of platform pages, change several times a year, and are mostly explained second-hand in vendor help centers, each covering a fragment. There is no machine-readable source, so developers and AI agents keep breaking them:

  • sending free-form WhatsApp text after the 24-hour customer service window closed (only an approved template is allowed then);
  • replying from an Instagram or Messenger bot with the HUMAN_AGENT tag (it is for a person replying manually, within 7 days);
  • still using the Messenger ACCOUNT_UPDATE, POST_PURCHASE_UPDATE or CONFIRMED_EVENT_UPDATE tags, which return error 100 since 2026-04-27;
  • trying to have a Telegram bot start a chat (a user has to message it first);
  • sending a 1,500 character Instagram DM (the limit is 1,000 bytes) or a 6 MB WhatsApp image (5 MB).

This repository turns those rules into one JSON file per channel. Every value carries the official URL it was read from, a short quote from that page and the date it was verified. A TypeScript library, a Python port and an MCP server answer the two questions that matter before sending: *may I send this now?* and *will this message be accepted?*

ChannelWho messages firstReply windowAfter the windowText maxAttachments per messageVerified
WhatsAppBusiness may start: Template message24 hoursOnly pre-approved template messages.4,096 characters12026-11-20
InstagramThe person24 hoursOnly HUMAN_AGENT tagged replies sent by a person, within 7 days of the user's last message.999 characters, 1,000 UTF-8 bytes102026-11-20
MessengerThe person24 hoursA HUMAN_AGENT tagged reply by a person (7 days), an approved utility template, a marketing message to an opted-in person, or a sponsored message.2,000 characters302026-11-20
TelegramThe personOpens once, never expiresn/a4,096 characters102026-11-20
XBusiness may start: Direct MessageNoneNo window appliesno documented maximum12026-11-20

Full tables with a source link on every value: [RULES.md](RULES.md).

Install

Not on npm or PyPI yet; install from GitHub.

# TypeScript / JavaScript (Node 18+): library and the messaging-rules-mcp command

npm install messaging-rules

Python 3.9+ (standard library only)

pip install "git+https://github.com/Pinlyx/messaging-rules#subdirectory=python"

Quick start

TypeScript
import { canMessage, validateMessage, getChannel } from 'messaging-rules';

// A WhatsApp user wrote 23 hours ago: free-form is still allowed. const r = canMessage({ channel: 'whatsapp', lastInboundAt: new Date(Date.now() - 23 * 3600_000), sender: 'bot', }); console.log(r.allowed, r.windowEndsAt); // true, about one hour from now

// 30 hours ago: only a template. const late = canMessage({ channel: 'whatsapp', lastInboundAt: new Date(Date.now() - 30 * 3600_000) }); console.log(late.allowed, late.allowedAlternatives.map((a) => a.kind)); // false [ 'template' ]

// A person (not a bot) answering on Instagram 3 days later may use the HUMAN_AGENT tag. canMessage({ channel: 'instagram', lastInboundAt: new Date(Date.now() - 3 * 86400_000), sender: 'human', kind: 'tag', tag: 'HUMAN_AGENT', }).allowed; // true

// Check a draft before sending it. validateMessage('whatsapp', { caption: 'New menu', attachments: [{ type: 'image', bytes: 6_000_000, mime: 'image/png' }], }); // { ok: false, problems: [{ code: 'file_too_large', limit: 5000000, actual: 6000000, source: '...', ... }] }

getChannel('telegram')?.rate_limits; // per chat, per group, broadcast limits with sources

Python
from datetime import datetime, timedelta, timezone

from messaging_rules import can_message, validate_message, get_channel

now = datetime.now(timezone.utc)

r = can_message(channel="messenger", last_inbound_at=now - timedelta(hours=30), sender="bot") print(r["allowed"]) # False print([a["kind"] for a in r["allowed_alternatives"]])

['tag', 'utility_template', 'marketing_message', 'sponsored'] (the tag is NON_PROMOTIONAL_SUBSCRIPTION, news Pages only)

print(validate_message("telegram", text="x" * 5000)"problems"["code"]) # text_too_long print(get_channel("x")"limits"["max"]) # 1

The Python functions take the same arguments in snake_case and return plain dicts with snake_case keys (window_ends_at, allowed_alternatives).

MCP server

The npm package ships a stdio MCP server, messaging-rules-mcp, with three tools:

ToolWhat it answers
check_messaging_windowMay this sender send this kind of message on this channel now? Returns allowed, reason, windowEndsAt, conditions, allowedAlternatives, sources.
validate_messageDoes this draft fit the channel's text, caption, attachment, media size/type and button limits?
get_channel_rulesThe full source-cited rules for a channel, one section of them, or a summary of all channels.

Add it to any MCP client that supports stdio servers:

{

"mcpServers": { "messaging-rules": { "command": "npx", "args": ["-y", "-p", "messaging-rules", "messaging-rules-mcp"] } } }

If you installed the package, use "command": "messaging-rules-mcp" (or node node_modules/messaging-rules/dist/mcp.js) instead. The server reads only the bundled data: no network, no keys.

API

canMessage(input) / can_message(**input)
InputMeaning
channelwhatsapp, instagram, messenger, telegram or x.
lastInboundAtWhen the person last messaged you: Date, ISO 8601 string (UTC when no offset is given) or epoch milliseconds. null if they never did. For private_reply, pass the time of the comment.
nowDefaults to the current time.
senderbot (default) or human.
kindfree_form (default), template (WhatsApp), tag, private_reply (Instagram, Messenger), utility_template, marketing_message, sponsored (Messenger).
tagWith kind: 'tag', for example HUMAN_AGENT.
openedByad_referral when the conversation started from a click-to-message ad (Instagram and Messenger windows can then last up to 7 days).

Returns { allowed, reason, channel, kind, tag?, windowEndsAt?, conditions, allowedAlternatives, sources }. A window is open while now < lastInboundAt + duration, so exactly 24 hours later it is closed. conditions lists what the data cannot check for you (opt-in, permissions, recipient settings). allowedAlternatives lists other kinds or tags that would be allowed at the same moment.

validateMessage(channel, message) / validate_message(channel, ...)

message may contain text, caption, attachments ([{ type, bytes?, mime?, filename?, viaUrl? }]), buttons, quickReplies and listRows (titles). Returns { ok, channel, problems }; each problem has a code, severity (error or warning), field, message and, where relevant, limit, actual and source. ok is false only when there is an error.

Lengths are counted in UTF-16 code units, which is never less than the number of characters, so the check errs on the safe side (an emoji counts as 2). Instagram also has a byte limit, counted in UTF-8.

Other exports

getChannel(id), listChannels(), CHANNEL_IDS and all TypeScript types. The raw files are importable as messaging-rules/channels/ .json and messaging-rules/schema/channel.schema.json.

Data format

channels/ .json, validated by schema/channel.schema.json:

FieldHolds
initiationWhether the person must message first, plus cited rules.
windowsduration_hours (null = never expires), starts_on, resets_on, applies_to (bot, human, any), optional only_when_opened_by and max_messages, and after_window (what is still allowed).
message_kindsWhich windows a kind needs, or allowed_without_window plus conditions; template categories.
tagsstatus (active or retired with retired_on), applies_to, own window, requirements.
limitstext, caption, attachments_per_message, media (type, MIME types or extensions, max_bytes, max_size_documented), buttons, quick_replies, list_rows, other.
rate_limitslimit per period_seconds and scope, or a formula.
notes, sourcesCited caveats, and every official page used.

Every rule object has source (official URL), quote (text from that page; [...] marks an elision and long dashes are written as hyphens) and verified (date). Megabytes are converted to bytes as 1 MB = 1,000,000 bytes, the stricter reading; the original wording stays in max_size_documented. The schema is generic on purpose: LinkedIn, Viber or email can be added as new files without code changes.

channels/*.json is the single source. npm run sync-data copies it into src/data.generated.ts and python/messaging_rules/data/, and both test suites fail if a copy drifts.

How the rules are verified

  • Values come only from official pages: developers.facebook.com, core.telegram.org and docs.x.com. Third-party articles are used at most to find the official page, never for a value.
  • If a value could not be confirmed on an official page it is left out rather than guessed. Not included at the last verification:
  • X: maximum DM text length (the current v2 reference has a dm-text-too-long error but no number), and size limits beyond the media upload categories.
  • Telegram: maximum number of inline keyboard buttons or rows.
  • WhatsApp: per-user marketing template limits and exact per-category rules beyond the three categories.
  • Messenger: One-time Notification (still mentioned on the policy page, current status unclear) and message tags other than the four listed.
  • Instagram: marketing messages and utility messages.
  • npm test checks that every rule has a source, a quote and a verified date, that every cited URL is an official host and is listed in sources, and that the generated files are current.

Report a rule change

Platforms change these rules often. If something is out of date, open an issue with the rule change template. It needs a link to the official page that shows the new value; changes backed only by blogs or vendor help centers are not accepted. Pull requests: edit channels/ .json (with source, quote, verified), then run npm run sync-data && npm run generate-tables && npm test.

Limits

  • This is not legal advice and not a compliance guarantee. Platforms change rules without notice; check the verified dates and the linked pages before relying on a value.
  • The library checks timing and documented limits. It cannot know whether a user opted in, whether your app has the Human Agent permission, whether a template is approved, or what a recipient's privacy settings are; those come back as conditions.
  • Window logic uses the time you pass. Pass the newes

Only the beginning is shown; read the rest in the repo