Aim Web Diff

Snapshot page main text twice (interval) or compare to a baseline JSON. Exit 0 = unchanged, 2 = changed, 1 = error. Headed CDP; stop after session.

BrianV1981 9b917bc 2 files · 5.4 KB Updated

File contents

aim-web-diff

# Baseline
npm run web-diff -- --url "https://example.com" --save-baseline /tmp/ex-base.json

# Compare later
npm run web-diff -- --url "https://example.com" --baseline /tmp/ex-base.json
echo $?   # 0 same, 2 changed

# Two captures in one run
npm run web-diff -- --url "https://example.com" --interval-ms 5000

BrianV1981/aim-browser/tree/main/aim-web-diff.skill commit 9b917bc33e

Frequently asked questions

npx skillmds@latest add brianv1981/aim-web-diff