Show HN: Inp-analyser skill – analysis and fix your Interaction to Next Paint gi...
Show HN @show
Show HN: Inp-analyser skill – analysis and fix your Interaction to Next Paint github.com · 4 points · 0 comments · HN thread
TL;DR A Show HN project, inp-analyser, is a command-line tool and agent skill that diagnoses why a page has poor Interaction to Next Paint (INP). It pulls the CrUX/PSI field p75 first, then clicks safe interactive elements in headless Chrome to find the responsible elements, phases and third-party scripts, with confidence intervals. The post had 4 points and no comments at the time of capture.
- Reports the real field INP (CrUX p75 over 28 days), checked against PageSpeed Insights, and labels lab numbers as lab @ CPU Nx.
- Each issue gives the element, the INP phase (input delay, processing, presentation), the script with URL, line and owner, and milliseconds with a 95% CI.
- Attributes third-party cost by paired runs with third parties allowed vs blocked, and marks correlations as confirmed only when the rule fires in at least 60% of attribution runs.
- Example runs: a bundled test site where a third-party listener adds about 134 ms to a click; Wikipedia Main Page at 130 ms phone field INP; a TechCrunch page at 229 ms phone with lab analysis stopped by a Cloudflare challenge.
- Safety guards: one page load per origin every 10 s, denylisted money/deletion/logout targets, non-GET first-party requests blocked, popups closed, bot walls stop the run.
- Requires Node.js 26 or later and a pinned Chrome for Testing build; not yet on npm; MIT licensed.
Discussion No comments had been posted when this digest was made, so there is no discussion to summarise.