Share an Unlighthouse report
A single Lighthouse score is a fact about one URL, and every performance conversation immediately outgrows it. The homepage is 94. The pages people actually land on from search are 61, and nobody knows that, because auditing them one at a time is nobody's job.
Unlighthouse crawls the site and audits every route. The result is the report worth arguing over — and it is a static directory on whatever machine ran the scan.
Publish it
npx unlighthouse-ci --site "$SITE" --build-static
curl -fsS -X PATCH \
"https://commareports.com/api/v1/reports/$COMMA_REPORT_ID" \
-H "Authorization: Bearer $COMMA_API_TOKEN" \
-H "Content-Type: application/json" \
-d "$(jq -n --rawfile html .unlighthouse/index.html \
--arg title "Site audit — $SITE — $(date +%F)" \
'{title: $title, html: $html}')"
Dragging the whole .unlighthouse/ directory into
the app is usually better here — the report
is a small app, and uploading the directory brings the JS, CSS and
per-route data along with references rewritten to the uploaded copies.
Publishing index.html alone gives you a shell with no data in it.