SIGN IN SIGN UP

OpenStock is an open-source alternative to expensive market platforms. Track real-time prices, set personalized alerts, and explore detailed company insights — built openly, for everyone, forever free.

0 0 1 TypeScript
2025-09-28 23:52:33 +05:30
{
2025-10-04 18:46:22 +05:30
"name": "Openstock",
2025-09-28 23:52:33 +05:30
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
"build": "next build --turbopack",
"start": "next start",
"lint": "eslint",
"test:db": "node scripts/test-db.mjs",
"test": "vitest run",
"test:watch": "vitest"
2025-09-28 23:52:33 +05:30
},
"dependencies": {
2025-09-29 13:34:13 +05:30
"@radix-ui/react-avatar": "^1.1.10",
2025-10-02 23:16:08 +05:30
"@radix-ui/react-dialog": "^1.1.15",
2025-09-29 13:34:13 +05:30
"@radix-ui/react-dropdown-menu": "^2.1.16",
2025-10-02 23:16:08 +05:30
"@radix-ui/react-label": "^2.1.7",
"@radix-ui/react-popover": "^1.1.15",
"@radix-ui/react-select": "^2.2.6",
2025-09-28 23:52:33 +05:30
"@radix-ui/react-slot": "^1.2.3",
Add Vercel Web Analytics to Next.js ## Vercel Web Analytics Implementation for OpenStock Successfully implemented Vercel Web Analytics for the OpenStock Next.js project. ### Changes Made 1. **Package Installation** - Installed `@vercel/analytics` (v1.6.1) using npm package manager - Updated package.json and package-lock.json with the new dependency 2. **App Router Configuration** - Identified the project uses Next.js App Router (app directory structure) - Added import statement: `import { Analytics } from "@vercel/analytics/next"` - Placed `<Analytics />` component in the root layout file (app/layout.tsx) - Component is positioned inside the `<body>` tag, after the Toaster component ### Files Modified - **app/layout.tsx** - Added Analytics import at the top with other imports - Added `<Analytics />` component within the body, maintaining existing code structure - All existing functionality (Toaster, metadata, fonts, styling) preserved - **package.json** - Added `@vercel/analytics: ^1.6.1` to dependencies - **package-lock.json** - Updated with new dependency and all related package information ### Verification Steps Completed ✓ Explored project structure and confirmed App Router usage ✓ Installed @vercel/analytics package successfully ✓ Added Analytics component to root layout file ✓ Verified no linting errors (eslint passed without issues) ✓ TypeScript syntax is correct for the modifications ✓ Existing code structure preserved with minimal, focused changes ### Implementation Notes - The project uses Next.js 15.5.7 with Turbopack - The Analytics component is properly positioned in the body tag after all children - No breaking changes introduced; all existing components and functionality remain unchanged - The implementation follows Next.js App Router best practices as specified in the @vercel/analytics documentation - The package is production-ready and will automatically collect analytics data when deployed to Vercel ### Dependencies Added - @vercel/analytics@^1.6.1 (701 packages total installed during setup) The implementation is complete and ready for deployment. Analytics will be automatically collected when the application is deployed to Vercel. Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
2025-12-12 17:43:52 +00:00
"@vercel/analytics": "^1.6.1",
2025-10-04 00:52:13 +05:30
"better-auth": "^1.3.25",
2025-09-28 23:52:33 +05:30
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
2025-10-02 23:16:08 +05:30
"cmdk": "^1.1.1",
"country-data-list": "^1.5.5",
"date-fns": "^4.1.0",
"dotenv": "^17.2.3",
2025-12-13 01:35:52 +05:30
"inngest": "^3.47.0",
2025-09-28 23:52:33 +05:30
"lucide-react": "^0.544.0",
"mongodb": "^6.20.0",
"mongoose": "^8.19.0",
"next": "15.5.7",
2025-10-04 00:52:13 +05:30
"next-themes": "^0.4.6",
"nodemailer": "^7.0.6",
2025-09-28 23:52:33 +05:30
"react": "19.1.0",
2025-10-02 23:16:08 +05:30
"react-circle-flags": "^0.0.23",
2025-09-28 23:52:33 +05:30
"react-dom": "19.1.0",
2025-10-02 23:16:08 +05:30
"react-hook-form": "^7.63.0",
"react-select-country-list": "^2.2.3",
2025-10-04 00:52:13 +05:30
"sonner": "^2.0.7",
2025-09-28 23:52:33 +05:30
"tailwind-merge": "^3.3.1"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
2025-10-04 00:52:13 +05:30
"@types/nodemailer": "^7.0.2",
2025-09-28 23:52:33 +05:30
"@types/react": "^19",
"@types/react-dom": "^19",
2025-10-02 23:16:08 +05:30
"@types/react-select-country-list": "^2.2.3",
2025-09-28 23:52:33 +05:30
"eslint": "^9",
"eslint-config-next": "15.5.4",
"tailwindcss": "^4",
"tw-animate-css": "^1.4.0",
"typescript": "^5",
"vitest": "^4.1.0"
2025-09-28 23:52:33 +05:30
}
}