AI search and agent readiness JavaScript

storefront-vitalsCore Web Vitals for online stores, page type by page type

storefront-vitals finds your home, collection and product pages, pulls real-user LCP, INP and CLS from Google, and lists the fixes that matter for shoppers, including which third-party apps slow you down.

npx npx storefront-vitals --store https://your-store.com

Free · MIT license · runs on your machine · no signup npm ↗GitHub ↗

How storefront-vitals works

Most store owners test their home page. Shoppers decide on product and collection pages, which are often the slowest: big galleries, review widgets, upsell apps and variant pickers.

storefront-vitals finds those pages from your home page, then pulls real-user LCP, INP and CLS and a lab test from Google PageSpeed Insights for each. It shows which element is your largest contentful paint, which fixes save the most time, and which third-party apps cost the most main-thread time, by name.

The advice is written for stores: do not lazy-load your hero image, reserve space for review stars, load chat and popups after the first tap. It works for Shopify, WooCommerce and custom stores.

Try it

npx storefront-vitals --store https://your-store.com

Free and open source under the MIT license. Want this done for your store, or need help with the findings? Book a call.

Agent skill included

Let your AI coding agent run storefront-vitals for you

The storefront-vitals skill works with Claude Code, Codex, Cursor, Gemini CLI and other agents that read SKILL.md files. It runs the tool, explains each finding in plain words and helps you fix it.

npx skills add MuhammadAhmadZia/storefront-vitals --skill storefront-vitals

Using the Claude or ChatGPT apps instead? Download the skill ZIP from the GitHub releases page and upload it under Skills.

See all 30 agent skills →

Questions about storefront-vitals

Can it tell me why LCP is slow?

Yes. With a free Google API key and --crux, it splits real-user LCP into server time, load delay, download time and render delay, and points you at the slowest part.

Is my site getting faster or slower?

With --history it reads up to 40 weeks of Chrome UX Report data and says whether LCP, INP and CLS are improving, stable or getting worse.

Do I need an API key?

Not for a quick test. For regular use, create a free PageSpeed Insights API key so you do not hit rate limits.

Why do real-user numbers change slowly?

They are a 28-day rolling window from Chrome users, so improvements show up gradually.

UN Sustainable Development Goals

How each tool maps to SDG targets →

Want this set up and tuned for your store?

The tools are free. If you would rather have the checks run, the findings fixed and the results measured for you, that is what I do for clients.