6ab52a2499
Backend & Auth: - Add @clerk/nextjs for production authentication - Create src/proxy.ts with clerkMiddleware() for route protection - Implement multi-tenant auth with role-based access control - Add Clerk components (Show, UserButton, SignInButton, SignUpButton) Billing & Payments: - Full Stripe integration (subscriptions, add-ons, customer portal) - Plan tiers: Starter 9/mo, Farm 49/mo, Enterprise 99/mo - Webhook handling for subscription events - createSubscription(), createAddonSubscription(), createCustomerPortalSession() API & Security: - Rate limiting with @upstash/ratelimit (100 req/min API, 20 req/min checkout) - Zod validation schemas for all endpoints (orders, products, campaigns, etc.) - Security headers (CSP, HSTS, X-Frame-Options) - API routes: /api/v1/ with validated, rate-limited endpoints Monitoring: - Sentry error tracking with performance monitoring - PostHog analytics for feature usage, funnels, cohorts - User activity logging and breadcrumb tracking Admin Features: - Analytics dashboard with revenue charts, customer growth, conversion funnel - Onboarding flow with 6-step interactive tour - Referral system with share tracking and reward redemption - Changelog feed with in-app notifications PWA & SEO: - Web app manifest with icons and shortcuts - Service worker for offline support and caching - Full SEO metadata, OpenGraph, Twitter cards - Structured data (JSON-LD) for organization and products Database: - Add referral_codes, changelogs, onboarding_progress tables - Add user_activity_logs, api_keys, notification_preferences - Comprehensive RLS policies for all new tables - Seed data for demo brands and products
64 lines
1.7 KiB
JSON
64 lines
1.7 KiB
JSON
{
|
|
"name": "route-commerce-platform",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "node fix-agents.js && next dev --webpack -H 0.0.0.0",
|
|
"build": "next build --webpack",
|
|
"start": "next start",
|
|
"lint": "eslint",
|
|
"lint:fix": "eslint --fix",
|
|
"migrate": "node supabase/push-migrations.js",
|
|
"migrate:one": "node supabase/push-migrations.js",
|
|
"type-check": "npx tsc --noEmit",
|
|
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
"postinstall": "next-env file generation"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "^0.96.0",
|
|
"@clerk/nextjs": "^7.4.2",
|
|
"@google/generative-ai": "^0.24.1",
|
|
"@gsap/react": "^2.1.2",
|
|
"@sentry/nextjs": "^10.55.0",
|
|
"@supabase/ssr": "^0.10.2",
|
|
"@supabase/supabase-js": "^2.105.3",
|
|
"@upstash/ratelimit": "^2.0.8",
|
|
"@upstash/redis": "^1.38.0",
|
|
"exceljs": "^4.4.0",
|
|
"framer-motion": "^12.40.0",
|
|
"gsap": "^3.15.0",
|
|
"next": "^16.2.6",
|
|
"next-themes": "^0.4.6",
|
|
"openai": "^6.37.0",
|
|
"papaparse": "^5.5.3",
|
|
"pdf-lib": "^1.17.1",
|
|
"posthog-node": "^5.35.11",
|
|
"qrcode": "^1.5.4",
|
|
"react": "19.2.4",
|
|
"react-dom": "19.2.4",
|
|
"server-only": "^0.0.1",
|
|
"square": "^44.0.1",
|
|
"stripe": "^22.1.1",
|
|
"uuid": "^11.1.1",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.60.0",
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/node": "^20",
|
|
"@types/papaparse": "^5.5.2",
|
|
"@types/qrcode": "^1.5.6",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@types/uuid": "^11.0.0",
|
|
"dotenv": "^17.4.2",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.2.5",
|
|
"pg": "^8.20.0",
|
|
"playwright": "^1.59.1",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^5"
|
|
},
|
|
"overrides": "{}"
|
|
}
|