Free open-source image editor for the browser
Add analytics and speed insights
Rodrigo0311b040104b
diff --git a/bun.lock b/bun.lockindex 19ff72b..b28f3d0 100644--- a/bun.lock+++ b/bun.lock@@ -7,6 +7,8 @@"dependencies": {"@fontsource-variable/geist": "^5.3.0","@tailwindcss/vite": "^4.3.3",+ "@vercel/analytics": "^2.0.1",+ "@vercel/speed-insights": "^2.0.0","class-variance-authority": "^0.7.1","cn": "^0.2.4","react": "^19.2.8",@@ -174,6 +176,10 @@"@typescript/typescript-win32-x64": ["@typescript/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g=="],+ "@vercel/analytics": ["@vercel/[email protected]", "", { "peerDependencies": { "@remix-run/react": "^2", "@sveltejs/kit": "^1 || ^2", "next": ">= 13", "nuxt": ">= 3", "react": "^18 || ^19 || ^19.0.0-rc", "svelte": ">= 4", "vue": "^3", "vue-router": "^4" }, "optionalPeers": ["@remix-run/react", "@sveltejs/kit", "next", "nuxt", "react", "svelte", "vue", "vue-router"] }, "sha512-MTQG6V9qQrt1tsDeF+2Uoo5aPjqbVPys1xvnIftXSJYG2SrwXRHnqEvVoYID7BTruDz4lCd2Z7rM1BdkUehk2g=="],++ "@vercel/speed-insights": ["@vercel/[email protected]", "", { "peerDependencies": { "@sveltejs/kit": "^1 || ^2", "next": ">= 13", "nuxt": ">= 3", "react": "^18 || ^19 || ^19.0.0-rc", "svelte": ">= 4", "vue": "^3", "vue-router": "^4" }, "optionalPeers": ["@sveltejs/kit", "next", "nuxt", "react", "svelte", "vue", "vue-router"] }, "sha512-jwkNcrTeafWxjmWq4AHBaptSqZiJkYU5adLC9QBSqeim0GcqDMgN5Ievh8OG1rJ6W3A4l1oiP7qr9CWxGuzu3w=="],+"@vgpu/adapter-mock": ["@vgpu/[email protected]", "", { "dependencies": { "@vgpu/core": "0.3.1" } }, "sha512-uZxTFPHLYd1nOxGxluvni50tsjnUTQ2eOhjJ/YwWynO7k906AD0byJxN0V6BbYb1MK/xM/EF+/cA8tKCrvY0yA=="],"@vgpu/adapter-node": ["@vgpu/[email protected]", "", { "dependencies": { "@vgpu/core": "0.3.1", "webgpu": "0.4.0" } }, "sha512-DtGxI8q3bAh3aN1JdT2EJhUEEbiuVC3U5nd3JLCbn+8zQlxmzs/+lsLo3TzD0gXr7fWHHdOiYYv0xIvAC/1UnQ=="],diff --git a/package.json b/package.jsonindex 432617b..71503ab 100644--- a/package.json+++ b/package.json@@ -11,6 +11,8 @@"dependencies": {"@fontsource-variable/geist": "^5.3.0","@tailwindcss/vite": "^4.3.3",+ "@vercel/analytics": "^2.0.1",+ "@vercel/speed-insights": "^2.0.0","class-variance-authority": "^0.7.1","cn": "^0.2.4","react": "^19.2.8",diff --git a/src/main.tsx b/src/main.tsxindex 56e56a1..001bd81 100644--- a/src/main.tsx+++ b/src/main.tsx@@ -1,5 +1,8 @@+import { Analytics } from "@vercel/analytics/react";+import { SpeedInsights } from "@vercel/speed-insights/react";import { createRoot } from "react-dom/client";import { GpuProvider } from "vgpu-react";+import App from "./app";import "./index.css";@@ -7,8 +10,12 @@ const root = document.getElementById("root");if (root) {createRoot(root).render(- <GpuProvider>- <App />- </GpuProvider>,+ <>+ <GpuProvider>+ <App />+ </GpuProvider>+ <Analytics />+ <SpeedInsights />+ </>,);}