// seo-check.mjs --baseline last.json
Catch the deploy that quietly broke your SEO.
Save a run, then compare the next one against it. Crawlspace re-checks every page from the baseline and grades what got worse. A P1 regression makes the run exit 1, so it can stop a deploy before anyone notices the traffic dip.
Ship a change (examples)
10
kinds of drift graded
4 of them P1: status, noindex, canonical, search crawler blocked
3
changes listed to confirm
titles, descriptions and H1s that changed: maybe on purpose
±
score and kinds, gained and gone
the audit uses it to prove its own fixes
In CI
# save a run from production once node scripts/seo-check.mjs --url https://your-site.com --json seo-main.json # then on every preview deploy node scripts/seo-check.mjs --url $PREVIEW_URL --baseline seo-main.json # exits 1 on P1 drift