Home / Docs

Documentation

How DiffMon works across monitoring, alerts, security, and API integration.

Website monitoring

Monitor HTML pages for meaningful changes with normalized diffs and optional ignore rules.

Website monitoring

Watch critical pages for content, metadata, and structural changes without being spammed by noise.

Normalization

HTML responses are normalized by collapsing whitespace and stripping redundant attributes before hashing.

Ignore rules

Use CSS selectors or regex to ignore rotating banners, A/B test containers, or other volatile regions.

TypeScript
const result = applyIgnoreSelectors(bodyText, selectors, monitor.ignoreRegex);
if (result.ok) {
  const normalized = normalizeHtmlForDiff(result.content);
  diffText = normalized;
  contentHash = hash(normalized);
}

Good targets

  • Landing pages, pricing tables, docs, or compliance statements.
  • robots.txt, sitemaps, and canonical/meta tags.

JS-heavy pages

If content is rendered client-side, use Browser Render instead of plain fetch.

Start with:

  • wait_until: "networkidle" for SPAs.
  • wait_for_selector for a stable ready signal.
  • focused ignoreSelectors to suppress non-meaningful changes.

Alerting

Email alerts include the status code, latency, and request ID so you can correlate with server logs.