echo

module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2026 License: MIT

README

rhythm echo

Is your site still saying what it should?
Echo captures every email, SMS, webhook and API call your site sends, seals staging so nothing reaches real people and shows what each form, order or sign-up sends before and after a change. Built for PHP & WordPress, with Laravel and Next.js connectors.

Release CI License npm Packagist

Install · Seal a site · Check a change · What it catches · Docs · Benchmark



The Rhythm set

Asks Checks
Tuner Is my site safe? what an attacker can find
Soundcheck Did my change break anything? what visitors see and do
Echo Is my site still saying what it should? everything the site sends

Install

curl -fsSL https://rythm.sh/install | sh               # macOS · Linux
irm https://rythm.sh/install.ps1 | iex                 # Windows (PowerShell)
go install github.com/RhythmShahriar/echo/cmd/rhythm-echo@latest

Every download is checked against the release checksums, which are signed with cosign.

rhythm echo and rhythm-echo are the same command: the rhythm CLI runs the rhythm-echo binary for you. Use either; the examples here use rhythm echo.

Seal a site

Start Echo, then connect the site. Nothing the site sends leaves the machine; Echo answers in each service's place, so the site carries on as if the email went out and the SMS was delivered.

rhythm echo up                                   # API :8025 (live view), SMTP :1025
rhythm echo install wordpress /var/www/staging   # or: laravel, next, node, generic
rhythm echo doctor                               # canaries through every layer
rhythm echo watch                                # see each message as it's sent
Stack Connector Catches
WordPress one mu-plugin, written by install every wp_mail() (beats FluentSMTP, Post SMTP), every wp_remote_*() call (SMS plugins, Woo webhooks, Slack, GA4, Meta CAPI, API mailers) and raw cURL SDKs through Echo's proxy
Laravel composer require rhythmsh/echo-laravel every mailer and transport, the Http client, Vonage and Slack notifications, queued jobs (the action follows them)
Next.js · Node npm i -D @rhythmsh/echo + instrumentation.ts fetch (Node and Edge), http/https (axios, SDKs), Nodemailer; built for Vercel previews too
Anything SMTP, sendmail_path, HTTPS_PROXY mail and outbound HTTPS from any language, through Echo's SMTP sink and MITM proxy

Connectors switch themselves off in production. For a seal that can't be bypassed, run the app on an internal Docker network or behind a firewall with Echo as its only way out: recipes.

Check a change

List the actions that make your site send things in .echo/config.yaml (rhythm echo init writes a first one for WordPress, Laravel, Next.js, Node or PHP): HTTP requests, WP-CLI or artisan commands, or signed webhook replays. Forms and multi-step journeys are driven by Soundcheck with --echo.

# .echo/config.yaml: ask WordPress for a password reset, which sends one email
site: https://staging.shop.test
actions:
  - name: Lost password
    http:
      method: POST
      url: /wp-login.php?action=lostpassword
      form: {user_login: admin}
    expect: {email: 1}

Each action counts as done when nothing new arrives for quiet (default 2s), or after timeout (default 30s). Echo caps quiet at 30s and timeout at 60s: a longer value acts as the cap. For one run, --quiet 500ms and --timeout 10s on snapshot, compare and run override them (within the same caps; a value outside them is refused).

Commands find .echo/config.yaml in the folder you're in or one above it, so they work from any subfolder: flush and command actions run in the project's folder. Snapshot, compare, run and doctor name the config they use. The search stops at the repository root (below your home folder outside a repository) and skips a folder above that isn't yours or that anyone can write to (such as /tmp), since a config there could run someone else's commands. Snapshots and runs are kept next to the config; --config points at another one (its snapshots come with it) and --store <dir> keeps them elsewhere.

[!WARNING] .echo/config.yaml is code. A command action or a flush entry runs in your shell on every snapshot, compare and run. ${env:NAME} puts an environment variable into an http action, which sends it to the URL the action names. Read a config from a repository you didn't write before you run Echo in it, as you would a Makefile.

rhythm echo snapshot --name before-update        # what each action sends now
# …update plugins, deploy…
rhythm echo compare --open                       # what changed, in a report
Class Means
BROKE a message sent in the snapshot is missing now, fails, or has a new error (an unfilled {first_name}, a PHP warning in the email)
NEW a message or a problem that wasn't there before
CHANGED the same message but different: recipient, subject, text, sender, fields of a payload
FIXED a problem from the snapshot is gone
You want to… Run
Check the contact form still emails the office rhythm soundcheck compare staging.shop.test --echo
Replay a Stripe payment and see the order email rhythm echo replay payment_intent.succeeded --to /?wc-api=wc_stripe
Check SPF, DKIM and DMARC for the sender you use rhythm echo check shop.com --from-mail received.eml
Fail CI when a message stops being sent rhythm echo compare (exits 1 on BROKE by default; --fail-on new is stricter)
Compare in CI with a baseline from another job rhythm echo snapshot --export base.tgz there, rhythm echo compare --against base.tgz here
Get the login code or magic link just sent, in a test code=$(rhythm echo latest --to ann@shop.test --code) (--link --kind magic for the link; looks back 1m and waits up to --wait, default 10s, then exits 1). A test that signs the same user in again should pass --run or a short --since 5s, or run rhythm echo clear --to ann@shop.test first, or it may get the previous code
Stream what the site sends into a script rhythm echo watch --json (one JSON object per line)
Read any result in a script --json on any command: one shape, with kind, summary, verdict and data
Accept a change you meant to make rhythm echo compare --accept <key> (compare -v shows each change's key)
Add a check of your own, such as an old phone number rules: in .echo/config.yaml, then rhythm echo checks --test
Let a coding agent read what the site sent claude mcp add echo -- rhythm-echo mcp
Let a client sign off on an email before launch relay: {allow: ["*@client.example"]} in .echo/config.yaml and the SMTP account in RHYTHM_ECHO_RELAY=smtp://user:pass@smtp.agency.example:587, then rhythm echo up --login client:<password>. Release in Echo Inbox's email view, or rhythm echo release <id> --to ann@client.example
Watch many client sites from one Echo rhythm echo hub, rhythm echo schedule for update windows and rhythm echo report --site <id> --store <dir> --pdf for the client

What it catches

📭 Lost messages

The admin notification that stopped, the autoresponder a plugin update removed, the SMS a gateway change broke, the Slack alert, the GA4 purchase event, the queued mail stuck in a job, the webhook Zapier no longer receives.

✍️ Wrong content

Unfilled placeholders ({first_name}, *|FNAME|*, [your-name]), PHP warnings printed into emails, links to staging or localhost, garbled encoding, emails too big for Gmail, SMS that cost three parts, payloads that lost fields.

🔒 Staging that talks to real people

Sealed by default: email, SMS, WhatsApp, webhooks, analytics and push are answered by Echo. Live-mode calls to Stripe, PayPal, Adyen, Braintree, Square, Authorize.net, Mollie and Razorpay get the gateway's own refusal in every mode, so a test can never charge a card through them, even in observe mode or on an allowlisted host. In observe mode, any real recipient outside your allowlist is flagged.

📬 Deliverability

SPF (including the 10-lookup limit), DKIM keys, DMARC policy and alignment for the service you actually send through, MX, MTA-STS and TLS-RPT. headers reads a received email and tells you who sent it and why it passed or failed. Never sends anything.

53 services are recognized out of the box, from SendGrid, Mailgun, Postmark, Resend, SES and the Gmail and Microsoft Graph APIs to Twilio, Vonage, WhatsApp Cloud, Slack, Teams, GA4, Segment, Meta, FCM, APNs, Stripe, HubSpot, Klaviyo and Zapier (rhythm echo providers lists them). Anything else is captured as a generic webhook.

Why Echo

  • Compares, not just catches. Mail catchers show you an inbox. Echo tells you what changed in what your site sends, ranked, after every update.
  • Every channel. Email, SMS, WhatsApp, chat, webhooks, analytics, push and payment calls, in one place.
  • No test code. Actions are a few lines of YAML; Soundcheck drives real forms; replay sends signed webhooks.
  • Local and free. One binary, your machine or your CI. Captured messages stay on your machine, with credentials masked before they're stored.

CI

- uses: RhythmShahriar/echo@v1
  with:
    mode: compare
    fail-on: broke

Or start Echo for Soundcheck: mode: up, then rhythm soundcheck compare … --echo. More in the CI guide.

Docs

Your first run seal a site and check a change, in ten minutes
Connectors WordPress, Laravel, Next.js, Node, anything
Sealing staging what's caught, what's faked, hard seals
Actions and compare .echo/config.yaml, snapshots, classes
With Soundcheck forms and flows, with their messages
CLI reference every command, flag and exit code

All of it lives in the Rhythm documentation wiki.

Contributing

git clone https://github.com/RhythmShahriar/echo && cd echo
make hooks   # Conventional Commits check
make check   # lint + tests

The connectors have their own tests: make -C connectors/laravel check (Docker), cd connectors/node && npm test. See CONTRIBUTING.

Responsible use & disclaimer

Echo is built to help people test their own sites safely.

  • Use it only on sites you own or are authorized to test. Replays and actions send real requests to the site you point them at.
  • Captured messages contain personal data. They stay on your machine (or CI runner); credentials are masked, content isn't. Treat .echo/ like a database dump and use test data on staging.
  • Observe mode really sends. Seal is the default for a reason; use observe only where real delivery is safe.
  • No warranty. Echo is provided "as is", as set out in the license. A connector can miss a message sent in a way it doesn't hook; use a hard seal where a leak would matter.

Found a vulnerability in Echo itself? Please report it privately.

License

MIT.

Part of rhythm · Useful ideas. Working systems.

Directories

Path Synopsis
Package catcher is Echo's running side: an inbox of captured messages, the HTTP API connectors and tools talk to, the seal policy that decides what may leave and the SMTP sink.
Package catcher is Echo's running side: an inbox of captured messages, the HTTP API connectors and tools talk to, the seal policy that decides what may leave and the SMTP sink.
Package check finds problems in captured messages: placeholders that were never filled in, PHP errors printed into an email, links to a development machine, SMS that cost several parts, webhooks that fail.
Package check finds problems in captured messages: placeholders that were never filled in, PHP errors printed into an email, links to a development machine, SMS that cost several parts, webhooks that fail.
Package client talks to a running Echo (`rhythm echo up`) over its HTTP API.
Package client talks to a running Echo (`rhythm echo up`) over its HTTP API.
cmd
rhythm-echo command
Command rhythm-echo captures every email, SMS, webhook and API call a site sends, seals staging so none of it reaches real people and compares what each action sends before and after a change.
Command rhythm-echo captures every email, SMS, webhook and API call a site sends, seals staging so none of it reaches real people and compares what each action sends before and after a change.
rhythm-echo/internal/started
Package started records when the process started, before the packages that can hold it up do.
Package started records when the process started, before the packages that can hold it up do.
Package codes finds what an end-to-end test needs from a message it just caused: the one-time code in a login or checkout email or SMS and the links that sign someone in, verify an address, reset a password or unsubscribe.
Package codes finds what an end-to-end test needs from a message it just caused: the one-time code in a login or checkout email or SMS and the links that sign someone in, verify an address, reset a password or unsubscribe.
Package compare diffs two runs: for each action that's in both, it matches the messages sent before and after and reports the ones that stopped (BROKE), appeared (NEW), changed (who they go to, the subject, the text, the fields of a payload, how many times) or problems that went away (FIXED).
Package compare diffs two runs: for each action that's in both, it matches the messages sent before and after and reports the ones that stopped (BROKE), appeared (NEW), changed (who they go to, the subject, the text, the fields of a payload, how many times) or problems that went away (FIXED).
Package compat checks a captured email the way a comparison page expects a mail catcher to: HTML reports the HTML and CSS features that common clients drop (flexbox in Outlook for Windows, a <style> block Gmail throws away and similar) and Spam asks a SpamAssassin daemon for a score.
Package compat checks a captured email the way a comparison page expects a mail catcher to: HTML reports the HTML and CSS features that common clients drop (flexbox in Outlook for Windows, a <style> block Gmail throws away and similar) and Spam asks a SpamAssassin daemon for a score.
Package config loads Echo's project settings from .echo/config.yaml: how the catcher behaves (seal or observe, what may be reached), what counts as staging and production, plus the actions `snapshot` and `compare` run.
Package config loads Echo's project settings from .echo/config.yaml: how the catcher behaves (seal or observe, what may be reached), what counts as staging and production, plus the actions `snapshot` and `compare` run.
Package conformance checks a connector against Echo's wire protocol.
Package conformance checks a connector against Echo's wire protocol.
cmd/conformance command
Command conformance runs Echo's strict stand-in on its own, for the connectors' end-to-end tests until `rhythm echo conformance` exists:
Command conformance runs Echo's strict stand-in on its own, for the connectors' end-to-end tests until `rhythm echo conformance` exists:
gen command
Command gen writes wire/schema.json, Echo's wire protocol as a JSON Schema, from the Go types in package wire.
Command gen writes wire/schema.json, Echo's wire protocol as a JSON Schema, from the Go types in package wire.
connectors
wordpress
Package wordpress installs Echo's WordPress connector: one mu-plugin, embedded in the binary, that reports every wp_mail() and wp_remote_*() call to Echo and obeys its seal.
Package wordpress installs Echo's WordPress connector: one mu-plugin, embedded in the binary, that reports every wp_mail() and wp_remote_*() call to Echo and obeys its seal.
wordpress/cmd/plugin-zip command
Command plugin-zip writes Echo Staging Seal as a zip, the form WordPress.org and Plugins > Add New > Upload take:
Command plugin-zip writes Echo Staging Seal as a zip, the form WordPress.org and Plugins > Add New > Upload take:
Package dns checks a domain's mail deliverability records (SPF, DKIM, DMARC, MX, MTA-STS, TLS-RPT and BIMI) without sending anything.
Package dns checks a domain's mail deliverability records (SPF, DKIM, DMARC, MX, MTA-STS, TLS-RPT and BIMI) without sending anything.
Package headers analyzes a received email's headers: what the receiving server concluded about SPF, DKIM and DMARC, how the message is signed, which service sent it and the path it took.
Package headers analyzes a received email's headers: what the receiving server concluded about SPF, DKIM and DMARC, how the message is signed, which service sent it and the path it took.
Package hub is Echo for agencies: one catcher that many staging sites send to, which keeps what each site sent apart and across restarts.
Package hub is Echo for agencies: one catcher that many staging sites send to, which keeps what each site sent apart and across restarts.
integrations
action
Package action tests Echo's GitHub Action (action.yml at the repository root) and the shell scripts it runs: the release check in .github/scripts and the summary and comment helpers next to this file.
Package action tests Echo's GitHub Action (action.yml at the repository root) and the shell scripts it runs: the release check in .github/scripts and the summary and comment helpers next to this file.
ci-fixture
Package cifixture tests the CI fixture in this folder: a one-page PHP shop that Echo's GitHub Action tests and the Windows and macOS CI jobs snapshot and compare.
Package cifixture tests the CI fixture in this folder: a one-page PHP shop that Echo's GitHub Action tests and the Windows and macOS CI jobs snapshot and compare.
image
Package image tests Echo's container image (the Dockerfile at the repository root) and the promise behind it: an image that replaces Mailpit in Docker Compose, DDEV, Lando and Sail needs Mailpit's API to answer in Mailpit's shape.
Package image tests Echo's container image (the Dockerfile at the repository root) and the promise behind it: an image that replaces Mailpit in Docker Compose, DDEV, Lando and Sail needs Mailpit's API to answer in Mailpit's shape.
internal
flagtext
Package flagtext words flag errors the way every rhythm echo command does: flags spelled as the help spells them (--fail-on, not -fail-on) and an unknown one with the flag it most likely meant.
Package flagtext words flag errors the way every rhythm echo command does: flags spelled as the help spells them (--fail-on, not -fail-on) and an unknown one with the flag it most likely meant.
kitcheck
Package kitcheck holds contract tests for what Echo relies on in the rhythm kit: masking in kit/secrets, the temp-file cleanup in kit/cache and the fail-closed signature check in kit/update.
Package kitcheck holds contract tests for what Echo relies on in the rhythm kit: masking in kit/secrets, the temp-file cleanup in kit/cache and the fail-closed signature check in kit/update.
Package mask hides credentials in what Echo stores: headers, URLs, text, JSON payloads and raw MIME.
Package mask hides credentials in what Echo stores: headers, URLs, text, JSON payloads and raw MIME.
Package mcp is Echo's Model Context Protocol server, so coding agents can ask what a site sent ("what did checkout send?", "what changed since the snapshot?") instead of scraping a terminal.
Package mcp is Echo's Model Context Protocol server, so coding agents can ask what a site sent ("what did checkout send?", "what changed since the snapshot?") instead of scraping a terminal.
Package model holds what Echo records: the messages a site sends (email, SMS, webhooks, chat alerts, analytics and payment calls), the actions that made it send them and the issues and changes found when checking and comparing runs.
Package model holds what Echo records: the messages a site sends (email, SMS, webhooks, chat alerts, analytics and payment calls), the actions that made it send them and the issues and changes found when checking and comparing runs.
Package proxy is Echo's HTTP(S) proxy: the bridge for apps and SDKs that send without going through a connector's hooks (the Twilio and Stripe PHP SDKs call cURL directly, Python and Go read HTTPS_PROXY).
Package proxy is Echo's HTTP(S) proxy: the bridge for apps and SDKs that send without going through a connector's hooks (the Twilio and Stripe PHP SDKs call cURL directly, Python and Go read HTTPS_PROXY).
Package recognize turns an outbound HTTP request into a message: it works out the channel (SMS, chat, webhook…), the provider and the recipients and content and says what a sealed staging site should be answered with.
Package recognize turns an outbound HTTP request into a message: it works out the channel (SMS, chat, webhook…), the provider and the recipients and content and says what a sealed staging site should be answered with.
Package relay lets a client see a captured email in their own inbox before launch without breaking the seal: a reader releases one message to one address, the address must match the relay's allowlist and the message goes out through the agency's own SMTP account over TLS.
Package relay lets a client see a captured email in their own inbox before launch without breaking the seal: a reader releases one message to one address, the address must match the relay's allowlist and the message goes out through the agency's own SMTP account over TLS.
Package replay sends signed test webhooks (Stripe, Standard Webhooks, GitHub, WooCommerce, generic HMAC) to a staging site, so Echo can capture what the site sends in response: "payment_intent.succeeded → order email + SMS + CRM call".
Package replay sends signed test webhooks (Stripe, Standard Webhooks, GitHub, WooCommerce, generic HMAC) to a staging site, so Echo can capture what the site sends in response: "payment_intent.succeeded → order email + SMS + CRM call".
Package report renders Echo's results: a live line per captured message (`rhythm echo watch`), the terminal summary of a run or a comparison, plain text for logs and screen readers, JSON, Markdown, JUnit XML, a standalone HTML inbox with message previews and a print-ready agency report that sums up a site's comparisons.
Package report renders Echo's results: a live line per captured message (`rhythm echo watch`), the terminal summary of a run or a comparison, plain text for logs and screen readers, JSON, Markdown, JUnit XML, a standalone HTML inbox with message previews and a print-ready agency report that sums up a site's comparisons.
Package runner runs a project's actions against a running Echo: for each one it triggers the site (an HTTP request, a command, a replayed webhook), lets queued senders catch up, waits until the site falls quiet, then records the messages that action caused, with their issues.
Package runner runs a project's actions against a running Echo: for each one it triggers the site (an HTTP request, a command, a replayed webhook), lets queued senders catch up, waits until the site falls quiet, then records the messages that action caused, with their issues.
Package sendmail is a sendmail-compatible shim: `rhythm-echo sendmail` reads a message on stdin (as /usr/sbin/sendmail does) and hands it to Echo instead of delivering it.
Package sendmail is a sendmail-compatible shim: `rhythm-echo sendmail` reads a message on stdin (as /usr/sbin/sendmail does) and hands it to Echo instead of delivering it.
Package store keeps Echo's files in the project's .echo/ folder: named snapshots, recent runs and comparisons, each a directory holding run.json (or comparison.json).
Package store keeps Echo's files in the project's .echo/ folder: named snapshots, recent runs and comparisons, each a directory holding run.json (or comparison.json).
Package web is Echo Inbox, the live view `rhythm echo up` serves at /: one list of everything captured (email, SMS, chat, webhooks, payments, analytics), a detail pane with HTML, Text, Headers, Raw, JSON, Checks and Attachments tabs, search, filters, delete, live updates and, when up has a relay, Release for one email.
Package web is Echo Inbox, the live view `rhythm echo up` serves at /: one list of everything captured (email, SMS, chat, webhooks, payments, analytics), a detail pane with HTML, Text, Headers, Raw, JSON, Checks and Attachments tabs, search, filters, delete, live updates and, when up has a relay, Release for one email.
Package wire is the small JSON protocol between Echo and the connectors inside a site (the WordPress mu-plugin, the Laravel package, the Node package): a connector reports each email and each outbound HTTP request.
Package wire is the small JSON protocol between Echo and the connectors inside a site (the WordPress mu-plugin, the Laravel package, the Node package): a connector reports each email and each outbound HTTP request.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL