kanmi-perf
v0.2.2 · MIT License (Free)
In-browser JavaScript tool for real-time Core Web Vitals insights. Lightweight diagnostics without external dependencies.
Install
npm install kanmi-perf
Quickstart
import KanmiPerf from 'kanmi-perf';
KanmiPerf.init();
What It Detects
- LCP (Largest Contentful Paint)
- CLS (Cumulative Layout Shift)
- INP (Interaction to Next Paint)
- Long Tasks blocking the main thread
- Long Animation Frames (LoAF)
- DOM issues — images without width/height causing CLS
- Render-blocking scripts in
<head> - Synchronous third-party scripts
Output
Logs Core Web Vitals metrics to the browser console. Provides a calculated page score (0–100) combining all vitals with adjustable thresholds.
When to Use
Basic performance monitoring during development. For related tooling and current availability, review the developer infrastructure overview.
Repository
The source repository is private.