@vercel/speed-insights

Vercel Speed Insights
Performance insights for your website
Overview
@vercel/speed-insights automatically tracks web vitals and other performance metrics for your website.
This package does not track data in development mode.
It has 1st class integration with:
| Framework | Package |
|---|---|
| Next.js | @vercel/speed-insights/next |
| Nuxt | @vercel/speed-insights/nuxt |
| SvelteKit | @vercel/speed-insights/sveltekit |
| Remix | @vercel/speed-insights/remix |
| React | @vercel/speed-insights/react |
| Astro | @vercel/speed-insights/astro |
| Vue | @vercel/speed-insights/vue |
It also supports other frameworks, vanilla JS and static websites.
Quickstart
-
Enable Vercel Speed Insights for a project in the Vercel Dashboard.
-
Add the
@vercel/speed-insightspackage to your project -
Inject Speed Insights to your app
- If you are using Next.js, React, Nuxt or Vue you can use the framework-specific
<SpeedInsights />component to inject the script into your app. - If you are using SvelteKit, you can use the
injectSpeedInsights()function@vercel/speed-insights/sveltekitin your top-level+layout.js/tsfile. - For other frameworks, you can use the
injectfunction add the tracking script to your app. - If you want to use Vercel Speed Insights on a static site without npm, follow the instructions in the documentation.
- If you are using Next.js, React, Nuxt or Vue you can use the framework-specific
-
Deploy your app to Vercel and see data flowing in.
Documentation
Find more details about this package in our documentation.
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.0.0 | ^3 | Apache-2.0 | |
| 1.3.1 | ^3 | Apache-2.0 | |
| 1.3.0 | ^3 | Apache-2.0 | |
| 1.2.0 | ^3 | Apache-2.0 | |
| 1.1.0 | ^3 | Apache-2.0 | |
| 1.0.14 | ^3 | Apache-2.0 | |
| 1.0.13 | ^3 | Apache-2.0 | |
| 1.0.12 | ^3 | Apache-2.0 | |
| 1.0.11 | ^3 | Apache-2.0 | |
| 1.0.10 | ^3 | Apache-2.0 | |
| 1.0.9 | ^3 | Apache-2.0 | |
| 1.0.8 | ^3 | Apache-2.0 | |
| 1.0.7 | ^3 | Apache-2.0 | |
| 1.0.6 | ^3 | Apache-2.0 | |
| 1.0.5 | ^3 | Apache-2.0 | |
| 1.0.4 | ^3.4.14 | Apache-2.0 | |
| 1.0.3 | ^3.3.4 | Apache-2.0 | |
| 1.0.2 | ^3.3.4 | Apache-2.0 | |
| 1.0.1 | ^3.3.4 | Apache-2.0 | |
| 1.0.0 | ^3.3.4 | Apache-2.0 | |
| 0.0.8 | ^3.3.4 | Apache-2.0 | |
| 0.0.7 | ^3.3.4 | MPL-2.0 | |
| 0.0.6 | ^3.3.4 | MPL-2.0 | |
| 0.0.5 | MPL-2.0 | ||
| 0.0.4 | MPL-2.0 | ||
| 0.0.3 | MPL-2.0 | ||
| 0.0.2 | MPL-2.0 | ||
| 0.0.1 | MPL-2.0 |
Pre-releases (16)
| Version | Released | Vue | License |
|---|---|---|---|
| 2.1.0-canary | ^3 | Apache-2.0 | |
| 2.0.1-canary | ^3 | Apache-2.0 | |
| 2.0.0-canary.1 | ^3 | Apache-2.0 | |
| 1.2.0-canary.4 | ^3 | Apache-2.0 | |
| 1.2.0-canary.3 | ^3 | Apache-2.0 | |
| 1.2.0-canary.2 | ^3 | Apache-2.0 | |
| 1.2.0-canary.1 | ^3 | Apache-2.0 | |
| 1.0.5-beta.1 | ^3 | Apache-2.0 | |
| 0.0.6-beta.1 | ^3.3.4 | MPL-2.0 | |
| 0.0.3-beta.0 | MPL-2.0 | ||
| 0.0.1-beta.7 | MPL-2.0 | ||
| 0.0.1-beta.6 | MPL-2.0 | ||
| 0.0.1-beta.5 | MPL-2.0 | ||
| 0.0.1-beta.3 | MPL-2.0 | ||
| 0.0.1-beta.2 | MPL-2.0 | ||
| 0.0.1-beta.1 | MPL-2.0 |