web-vitals is a small JavaScript library for measuring Web Vitals metrics on real users, using the same method Chrome and other Google performance tools report. It helps developers monitor Core Web Vitals like CLS, INP, and LCP, and can optionally include attribution data for diagnosing and prioritizing performance issues.
Project status
- Actively maintained, with recent Git activity (last upstream push on 2026-06-01) and multiple tagged updates in 2025-2026 (v5.1.0, v5.2.0, v5.3.0).
- Apparent update cadence is moderately frequent, about 2 to 3 months between v5.2.0 (2026-03-25) and v5.3.0 (2026-05-28).
AI summary generated Today
Recent updates
v5.3.0
5 days agov5.3.0 removes the getFirstHiddenTime polyfill and improves INP attribution logic for deriving interaction targets. It also adjusts internal instance caching to avoid configuration objects being shared across multiple metric functions causing errors. No release notes were provided in the release_notes section, but CHANGELOG.md includes entries for these changes.
Breakingv5.2.0
2 months agoThis release introduces a new INP attribution option, includeProcessedEventEntries, and refactors several core scheduling and attribution code paths. It also changes some public TypeScript typing exports and tightens/adjusts internal event collection logic for INP and LCP attribution.
BreakingFeaturesv5.1.0
10 months agoRelease v5.1.0 was published on 2025-07-31, but no release notes were provided by the publisher. Because the notes are missing, there is no direct information available here about new features, fixes, breaking changes, or migration requirements.