kanmi-perf
v0.2.2
Published
In-browser JavaScript tool for real-time Core Web Vitals insights
Maintainers
Readme
🚀 KanmiPerf
Real-time in-browser Core Web Vitals diagnostics – no setup, just insights.
KanmiPerf helps developers identify, understand, and fix web performance issues directly in the browser console.
📸 Visual Output
[KanmiPerf 🚀] ⚠️ LCP
- Largest Contentful Paint: 2300ms
- Element: IMG
→ Optimize images, text, and video content for faster loading📦 Installation
CDN (IIFE)
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/kanmi-perf.js" defer></script>ESM Module
import KanmiPerf from "https://cdn.jsdelivr.net/npm/[email protected]/dist/kanmi-perf.esm.js";
KanmiPerf.init();NPM
npm install kanmi-perfimport KanmiPerf from 'kanmi-perf';
KanmiPerf.init();🧪 Usage
- Use
.init()to auto-run on load. - Or call
.run()manually for immediate analysis.
KanmiPerf.run();
console.log(KanmiPerf.metrics);
console.log(KanmiPerf.issues);🔬 What It Detects
- 🖼️ Images missing dimensions (CLS)
- 📦 Blocking
<script>in<head> - 🌐 Sync third-party scripts
- 🧠 Long Tasks
- 🎞️ LoAF (Long Animation Frames)
- ⌛ LCP (Largest Contentful Paint)
- 🌀 CLS (Cumulative Layout Shift)
- 🖱️ INP (Interaction to Next Paint)
🔗 Related
Check out the enhanced KanmiPerf Pro with full logs, outlines, exportable data, and timeline overlays.
📄 License
MIT – Kanmi Obasa
