echo

module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 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.

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 examples): HTTP requests, WP-CLI or artisan commands, or signed webhook replays. Forms and multi-step journeys are driven by Soundcheck with --echo.

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 --fail-on broke

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 payment calls get the provider's own refusal, so a test can never charge a card. 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.

34 services are recognized out of the box, from SendGrid, Mailgun, Postmark, Resend and SES to Twilio, Vonage, WhatsApp Cloud, Slack, Teams, GA4, Meta, FCM, Stripe, HubSpot, Klaviyo and Zapier. 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
rhythm-echo is the Echo binary, normally run as `rhythm echo`.
rhythm-echo is the Echo binary, normally run as `rhythm echo`.
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 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, and 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, and the actions `snapshot` and `compare` run.
connectors
laravel/fixtures/catcher command
Command catcher runs Echo's real catcher (capture API and SMTP sink) for the Laravel connector's end-to-end test, without the rhythm-echo CLI:
Command catcher runs Echo's real catcher (capture API and SMTP sink) for the Laravel connector's end-to-end test, without the rhythm-echo CLI:
node/fixtures/catcher command
Command catcher runs Echo's real capture API on its own, for the Node connector's end-to-end test: the fixture Next.js app posts captures to it and the test reads them back from /v1/messages.
Command catcher runs Echo's real capture API on its own, for the Node connector's end-to-end test: the fixture Next.js app posts captures to it and the test reads them back from /v1/messages.
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.
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 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 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 and a standalone HTML inbox with message previews.
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 and a standalone HTML inbox with message previews.
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, and 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, and records the messages that action caused, with their issues.
Package sendmail is a sendmail-compatible shim: `rhythm-echo sendmail` reads a message on stdin, like /usr/sbin/sendmail, and hands it to Echo instead of delivering it.
Package sendmail is a sendmail-compatible shim: `rhythm-echo sendmail` reads a message on stdin, like /usr/sbin/sendmail, 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 with run.json (or comparison.json) and its screenshots.
Package store keeps Echo's files in the project's .echo/ folder: named snapshots, recent runs and comparisons, each a directory with run.json (or comparison.json) and its screenshots.
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, and for HTTP requests Echo answers whether to let it through or what to answer instead.
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, and for HTTP requests Echo answers whether to let it through or what to answer instead.

Jump to

Keyboard shortcuts

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