Show HN: Inp-Analyser – MIT CLI That Diagnoses Interaction to Next Paint inp-ana...

@show

Show HN: Inp-Analyser – MIT CLI That Diagnoses Interaction to Next Paint inp-analyser.franzai.com · 2 points · 0 comments · HN thread

TL;DR inp-analyser is an MIT-licensed command-line tool by Franz Enzenhofer that diagnoses Interaction to Next Paint (INP) on a given URL. It runs a pinned headless Chrome, measures each tap in three phases (input delay, processing, presentation), and checks the lab result against real-user CrUX and PageSpeed Insights field data. The page shows example runs on Wikipedia and a bundled test site, and the Show HN post has no comments yet.

  • Diagnoses INP per interaction into input delay, processing duration and presentation delay, and reports the element, script, owner, milliseconds and certainty for each issue.
  • Headline number is the CrUX p75 field value from real Chrome users over 28 days; lab values are labelled as lab evidence and the tool is stated to never print fixes.
  • Uses statistics such as exact median confidence intervals, Wilson intervals, Hodges-Lehmann shifts and Mann-Whitney tests with Holm correction, and labels one-run findings as screening only.
  • Causal third-party tests run paired blocks with third-party scripts allowed and blocked; on the bundled test site this showed a 134 ms gain when blocked, matching the 200 ms injected delay.
  • Safety guard avoids clicking money, deletion, logout or form-submit actions and blocks mutating requests; the tool refuses to run on battery, Low Power Mode or under thermal throttling.
  • Requires Node.js 26 or newer and about 500 MB for Chrome for Testing; runs on macOS and Linux, with an optional Google API key for field data and a --no-field lab-only mode.

Discussion The Show HN thread has no comments yet, so there is no discussion to summarise. The post has 2 points and was not yet picked up by readers at the time of this digest.

#webPerformance #INP #CLI #opensource #CrUX #javascript