A Next.js application for building and deploying market intelligence dashboards with Excel/CSV data upload capabilities.
- Dashboard Builder: Upload Excel/CSV files to create custom dashboards
- Automatic Aggregation Level Detection: Intelligently determines aggregation levels based on selected segments
- Deployment Package Generation: Generate ready-to-deploy Next.js packages
- Multiple Chart Types: Bar charts, line charts, heatmaps, tables, waterfall charts, and more
- Intelligence Data Support: Customer, distributor, and competitive intelligence data
- Stack Overflow Protection: Iterative algorithms prevent maximum call stack errors
- Node.js 18+
- npm or yarn
npm installnpm run devThe application will run on http://localhost:3002
npm run build
npm startThis project is configured for Vercel deployment:
- Connect your GitHub repository to Vercel
- Vercel will automatically detect Next.js and configure the build
- API routes have extended timeouts (up to 10 minutes) for large file processing
- Environment variables are not required for basic functionality
/api/process-excel- Process Excel/CSV files (maxDuration: 300s)/api/generate-dashboard- Generate deployment packages (maxDuration: 600s)/api/process-intelligence-file- Process intelligence data files/api/process-competitive-intelligence- Process competitive intelligence data
frontend-clean/
├── app/
│ ├── api/ # API routes
│ ├── dashboard-builder/ # Dashboard builder page
│ └── page.tsx # Main dashboard page
├── components/ # React components
│ ├── charts/ # Chart components
│ ├── filters/ # Filter components
│ └── dashboard-builder/ # Dashboard builder components
├── lib/ # Utility libraries
│ ├── json-processor.ts # JSON processing with stack overflow protection
│ ├── data-processor.ts # Data filtering and processing
│ └── dashboard-generator.ts # Deployment package generator
└── excel-upload-tool/ # Excel processing library
All recursive functions have been converted to iterative implementations using stack-based algorithms to prevent maximum call stack errors:
calculateAggregations()- Iterative aggregation calculationremoveYearData()- Iterative data structure traversal- Directory traversal functions - Stack-based file system navigation
The system automatically determines the appropriate aggregation level based on selected segments, hiding complexity from users.
Generate complete, deployment-ready Next.js applications with:
- All necessary configuration files
- Processed data files
- Component and library files
- Ready-to-deploy structure
Private - Coherent Market Insights