@shrinkray-tools/speed-banner
v0.1.0
Published
Drop-in LCP and INP banner for development using web-vitals.
Maintainers
Readme
@shrinkray-tools/speed-banner
🔍 Lightweight development banner to visualize LCP and INP in real time — powered by web-vitals.
Install
npm install @shrinkray-tools/speed-bannerUsage
Vanilla JS
import { mountSpeedBanner } from '@shrinkray-tools/speed-banner';
mountSpeedBanner();A small overlay will appear in the corner showing real-time LCP and INP values.
React Component
import { SpeedBanner } from '@shrinkray-tools/speed-banner/react';
function App() {
return (
<>
<SpeedBanner />
{/* your app code */}
</>
);
}Options
containerId(default:"shrinkray-speed-banner"): DOM ID used for the banner container.
Only runs in development (NODE_ENV !== 'production'). No config needed.
