diff --git a/frontend/.vade-report b/frontend/.vade-report
new file mode 100644
index 00000000..b58b3927
--- /dev/null
+++ b/frontend/.vade-report
@@ -0,0 +1,42 @@
+# Vercel Speed Insights Implementation
+
+## Summary
+Successfully implemented Vercel Speed Insights for the React-based ecommerce application to enable real-time performance monitoring.
+
+## Changes Made
+
+### 1. Installed Dependencies
+- Added `@vercel/speed-insights` package (v1.3.1) to project dependencies
+- Updated package-lock.json to reflect the new dependency and its sub-dependencies
+
+### 2. Modified Files
+- **src/App.jsx**: Added SpeedInsights component integration
+ - Imported `SpeedInsights` from `@vercel/speed-insights/react`
+ - Added `` component inside the BrowserRouter, after the Layout component
+ - This ensures Speed Insights tracks all routes and page transitions in the React Router application
+
+## Implementation Details
+
+The SpeedInsights component was placed strategically inside the BrowserRouter context so it can properly track route changes and performance metrics across the entire application. It's positioned after the Layout component to ensure it doesn't interfere with the main application rendering while still being able to monitor all user interactions.
+
+## Framework Context
+This is a React application built with Vite, using React Router for navigation. The implementation follows the official Vercel documentation for React applications (similar to create-react-app setup).
+
+## Verification Steps Completed
+1. ✅ Package installation completed successfully
+2. ✅ Build verified - application builds without errors
+3. ✅ Linting verified - no new linting errors introduced in modified files
+4. ✅ Component integration follows React best practices
+
+## Next Steps for User
+Once deployed to Vercel:
+1. Enable Speed Insights in the Vercel dashboard (Project > Speed Insights tab)
+2. The Speed Insights script will be automatically injected at `/_vercel/speed-insights/script.js`
+3. Performance metrics will begin appearing in the Vercel dashboard after users visit the site
+4. Data will be available in the Speed Insights tab of the Vercel dashboard
+
+## Technical Notes
+- The SpeedInsights component is a lightweight wrapper that only loads the tracking script
+- It automatically handles route tracking in React Router applications
+- No additional configuration is required for basic usage
+- The component is positioned to work seamlessly with the existing CartProvider and BrowserRouter structure
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 72dea78e..bdbd6450 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -8,6 +8,7 @@
"name": "frontend",
"version": "0.0.0",
"dependencies": {
+ "@vercel/speed-insights": "^1.3.1",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react-router-dom": "^7.4.1"
@@ -1443,6 +1444,40 @@
"@types/react": "^19.2.0"
}
},
+ "node_modules/@vercel/speed-insights": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/@vercel/speed-insights/-/speed-insights-1.3.1.tgz",
+ "integrity": "sha512-PbEr7FrMkUrGYvlcLHGkXdCkxnylCWePx7lPxxq36DNdfo9mcUjLOmqOyPDHAOgnfqgGGdmE3XI9L/4+5fr+vQ==",
+ "license": "Apache-2.0",
+ "peerDependencies": {
+ "@sveltejs/kit": "^1 || ^2",
+ "next": ">= 13",
+ "react": "^18 || ^19 || ^19.0.0-rc",
+ "svelte": ">= 4",
+ "vue": "^3",
+ "vue-router": "^4"
+ },
+ "peerDependenciesMeta": {
+ "@sveltejs/kit": {
+ "optional": true
+ },
+ "next": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ },
+ "svelte": {
+ "optional": true
+ },
+ "vue": {
+ "optional": true
+ },
+ "vue-router": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@vitejs/plugin-react": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.1.2.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index 4e3eb052..5900e39e 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -10,6 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
+ "@vercel/speed-insights": "^1.3.1",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react-router-dom": "^7.4.1"
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx
index a64f35bc..b1f75c12 100644
--- a/frontend/src/App.jsx
+++ b/frontend/src/App.jsx
@@ -1,4 +1,5 @@
import { BrowserRouter, Routes, Route } from 'react-router-dom';
+import { SpeedInsights } from '@vercel/speed-insights/react';
import { CartProvider } from './context/CartContext';
import Layout from './components/Layout';
import Home from './pages/Home';
@@ -27,6 +28,7 @@ export default function App() {
} />
+
);