Skip to the content

// 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)
/robots.txtbaseline → this run
BASELINE
User-agent: *
Allow: /

Googlebot: allowed
THIS RUN
User-agent: *
Disallow: /

Googlebot: blocked
P1 drift.robots-search

robots.txt now blocks Googlebot from the home page (Disallow: /); it was allowed at the baseline.

deploy gateexit 1 · deploy blockedP1 drift fails the run.
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