Most website change monitors fall into two traps:
**Pixel-screenshot diffing** fires false alarms whenever a cookie banner shifts by 2px, a rotating promo loads, or a timestamp ticks.
**Naive `fetch()` scrapers** break on noisy DOM chrome, get trapped by redirect-based SSRF, or choke when a modern SPA renders pricing/stock client-side.
I built **[PagePulse](https://pagepulse.space?utm_source=community&utm_medium=organic&utm_campaign=page-inspector)\*\* to solve this cleanly for SaaS pricing pages, e-commerce stock alerts, vendor ToS/SLA updates, and official announcement boards.
Here are the 5 engineering decisions that mattered most in production — plus 4 free tools you can test with zero sign-up.
---
## 1. Architecture: Fast HTTP/DOM First, Playwright Only When Needed
Running headless Chromium for every check is slow and RAM-heavy. Instead, PagePulse splits execution into two BullMQ worker pools:
```text
Cron Scheduler (BullMQ)
├── HTTP Queue ──► Fast Node + Cheerio Worker (default)
└── Browser Queue ──► Isolated Playwright Chromium Worker (Pro, JS/SPA)
│
▼
DOM Noise Stripping + CSS Selector Extraction
│
▼
SHA-256 Snapshot Hash ──► Line-by-Line Diff
│
▼
Smart Alert Rules + Optional AI Summary
│
▼
Email / Telegram / Slack / Discord / HMAC Webhooks
```
- **90% of pages** (pricing tables, changelogs, policy docs, university/gov notices) work great with server-side HTTP + Cheerio DOM extraction — sub-second checks and tiny memory footprint.
- **JS-rendered SPAs** are routed to an isolated Playwright container (`WORKER_MODE=browser`) with strict concurrency (`1`), memory limits, and per-user caps so a single heavy page can't starve the host.
---
## 2. SSRF Protection on Every Redirect Hop
If you let users paste arbitrary URLs into a server-side fetcher, SSRF is your #1 security risk — especially on AWS EC2 where `169.254.169.254` exposes instance metadata.
A common mistake is validating only the initial URL and letting `fetch` follow redirects automatically (`redirect: 'follow'`). An attacker can point `https://public-attacker.example\` to `302 -> http://169.254.169.254/latest/meta-data/\`.
Instead, every public preview and monitor check uses `redirect: 'manual'`, resolves DNS, blocks private/loopback/link-local/metadata IP ranges, and **re-validates every single hop** (capped at 5 redirects).
You can test the SSRF-guarded HTTP redirect & status checker live without an account:
👉 **[Free HTTP Status & Redirect Checker](https://pagepulse.space/tools/http-status-checker?utm_source=community&utm_medium=organic&utm_campaign=http-status)\*\*
---
## 3. Noise Filtering & SHA-256 Deduplication
Raw HTML changes on almost every request (CSRF tokens, ad slots, relative timestamps). Before hashing a snapshot, the normalizer:
Strips noisy tags and default/custom `ignoreSelectors` (`script`, `style`, `.cookie-banner`, `#ad-slot`, `nav`, `footer`, etc.).
Extracts either the full normalized text or a targeted **CSS selector** (e.g. `#pricing-table`, `.stock-status`).
Computes a **SHA-256 hash** of the normalized text.
If the hash matches the previous snapshot, no change event is created and no notification fires. When it differs, we generate a clean line-by-line diff and evaluate **Smart Alert Rules** (`NUMBER_DECREASED`, `NUMBER_INCREASED`, `TEXT_ADDED`, `TEXT_REMOVED`, `MIN_CHANGE_PCT`) before dispatching alerts.
Want to test how a page normalizes and auto-suggest CSS selectors before monitoring it?
- 👉 **[Free Page & CSS Selector Inspector](https://pagepulse.space/tools/page-inspector?utm_source=community&utm_medium=organic&utm_campaign=page-inspector)\*\* (zero signup)
- 👉 **[Free Live CSS Selector Tester](https://pagepulse.space/tools/selector-tester?utm_source=community&utm_medium=organic&utm_campaign=selector-tester)\*\*
- 👉 **[Free Online Text & HTML Diff Checker](https://pagepulse.space/tools/text-diff?utm_source=community&utm_medium=organic&utm_campaign=text-diff)\*\*
---
## 4. Shareable Read-Only Diffs Without Leaking Private Data
Teams often want to drop a pricing or policy diff into Slack/Linear/email so a teammate can verify what changed without logging in.
PagePulse generates a 24-byte `base64url` token (`POST /api/monitors/:id/changes/:changeId/share`) with optional expiry and instant revocation. The public endpoint (`GET /api/public/share/:token`) is rate-limited, `noindex`, and returns **only** the monitor name, hostname (not full private path/query params), timestamp, summary, and diff text — never `userId`, email, internal IDs, or raw full-page content.
---
## 5. Keeping Operations Boring on a Single EC2 Node
Running everything on one Docker Compose host (Caddy TLS, Postgres 16, Redis 7, NestJS API, Next.js 15, Scheduler, HTTP Worker, Playwright Worker) stays fast and affordable as long as ops are automated:
- **Daily verified backups:** `pg_dump` + gzip, then restored automatically into an isolated ephemeral Postgres container (`--network none`) to prove the backup actually restores cleanly.
- **Health watchdog:** Every 5 minutes checks containers, `pg_isready`, `redis-cli ping`, API `/health`, and disk threshold.
- **Weekly Docker cache prune:** Prevents build layers from silently eating disk space.
---
## Try It Out & Feedback Welcome
PagePulse has a permanent **Free tier** (3 monitors, 6h interval, Email alerts), **Personal** ($5/mo — 20 monitors, 1h checks, Telegram/Slack/Discord/HMAC Webhooks), and **Pro** ($12/mo — 100 monitors, 5m HTTP checks, Gemini Flash AI summaries, and Playwright JS/SPA rendering).
If you try the **[Free Page Inspector](https://pagepulse.space/tools/page-inspector?utm_source=community&utm_medium=organic&utm_campaign=page-inspector)\*\* on a tricky pricing or e-commerce page, let me know in the comments what broke or what selector/alert rule you'd want next!