lacspace-inspect

Audit any website — SEO, meta, social, security and more, graded A–F.

● Live · v0.2.0npmSource
terminal
npx lacspace-inspect example.com
What it does

Everything, in one command

lacspace-inspect fetches a page, parses it with the scraper engine, and runs opinionated checks in each category, rolling every finding up into a letter grade — and now suggests a concrete fix for each one. Crawl a whole site (--crawl --depth --max) for a per-page leaderboard plus site-wide duplicate-title and broken-link detection, save a --baseline and fail CI when the grade regresses, enforce --budget limits, and hand a PR a clean Markdown or HTML report. Eleven new checks (response time, gzip/brotli, http→https, www canonical, lazy images, rel=noopener, hreflang, thin content, apple-touch-icon and more) join the originals. Note: performance checks are static-HTML heuristics, not a runtime Lighthouse audit, and it reads server-rendered HTML.

Features

What's inside

8 graded categories

SEO/meta, social/OG, structured data, content + a11y, links, static perf, security headers, crawlability.

One A–F grade

Every finding is scored and rolled up into a category grade and an overall grade.

CI gate

--min-grade B exits non-zero below the bar — fail the build on an SEO or security regression.

Broken-link scan

--links checks each link's status with a bounded, polite pool and grades redirects and 404s.

Tech sniff

Informational detection of the frameworks and services the page is built on.

JSON or terminal

A clean sectioned report by default, or --json for machine output.

Fix suggestions

Every finding ships a concrete fix — not just what's wrong, but what to change.

Whole-site crawl

--crawl --depth --max grades every page, with a leaderboard and site-wide duplicate-title/broken-link detection.

Baseline & regressions

--save-baseline then --baseline exits non-zero when the grade regresses — CI catches slips.

Perf budgets

--budget "html<100kb,scripts<10,requests<50" fails when a page blows a size/count limit.

How to use

Copy, paste, done

Real commands and snippets — from a one-liner to the typed library.

Markdown report for a PR
terminal
npx lacspace-inspect https://example.com -f md -o report.md

A clean Markdown report to attach to a pull request (-f html for a standalone page).

Crawl a whole site
terminal
npx lacspace-inspect https://example.com \
  --crawl --depth 2 --max 25 --min-grade B

Per-page leaderboard + site-wide duplicate titles and broken links.

Fail CI on regressions
terminal
npx lacspace-inspect https://example.com --save-baseline base.json
# later:
npx lacspace-inspect https://example.com --baseline base.json

Exits non-zero the moment the grade drops below the saved baseline.

Enforce a performance budget
terminal
npx lacspace-inspect https://example.com \
  --budget "html<100kb,scripts<10,requests<50"

Fails the build when a page exceeds any limit.

Use it as a library
typescript
import { inspectUrl, analyzeHtml } from "lacspace-inspect";
const report = await inspectUrl("example.com");
// analyzeHtml(html, { url }) runs the same checks with no network
Good for

What people build with it

Pre-launch SEO & accessibility checks

Guard metadata and security in CI

Audit a list of pages

Catch missing OG/JSON-LD before sharing a link

Start now

Run lacspace-inspect today

Free, open-source, no API keys. It's a CLI and a typed library.

terminal
npx lacspace-inspect example.com