Menu

Filtering Clocks, CSRF Nonces, and 500 Errors Out of Website Diffs (Chronosync)
📰

Filtering Clocks, CSRF Nonces, and 500 Errors Out of Website Diffs (Chronosync)

DEV Community·Ayush Agarwal·3 days ago
#GS5zVUnD
#dev#pages#chronosync#playwright#relative
Long article (298 words) — no AI summary yet.
Reading 0:00
15s threshold

If you wire Playwright to take snapshots on a cron loop and diff HTML strings, it stops being useful within an hour. Relative clocks ( 2 mins ago ), CSRF nonces, and A/B banners change every reload, and an HTTP 500 outage looks like the entire store page vanished.

I built Chronosync with FastAPI, Playwright, and SQLite to handle the boring edge cases that break naive monitors:

Separating watches from pages

If 200 users subscribe to the same product page with slightly different UTM tracking params or trailing slashes, you shouldn't spin up 200 headless browser runs. app/normalizer.py canonicalizes URLs and maps many user watches onto a single scheduled pages row in SQLite, gated by robots.txt rules and per-domain jitter.

Catching 5xx outages and CAPTCHAs before diffing

Before touching snapshot history, app/classifier.py classifies responses into ok , error ( 5xx /timeouts), or blocked ( 401/403/429 /CAPTCHA).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.