Transform raw ecommerce transactions into actionable business intelligence.
A modern analytics platform built with Next.js, TypeScript, Tailwind CSS and a CSV-powered analytics engine.
The Intelligent E-Commerce Analytics Dashboard is a production-style SaaS analytics platform that transforms raw ecommerce transaction data into actionable business intelligence through interactive visualizations and analytics APIs.
Built using modern full-stack technologies, it combines a lightweight analytics API with an elegant dashboard interface to provide real-time insights into:
- Revenue performance
- Product trends
- Customer behavior
- Geographic sales distribution
- Operational KPIs
- AI-generated business recommendations
The repository also includes the complete analytics pipeline used to clean, transform, and analyze the underlying dataset, making it both a production-style SaaS application and a comprehensive data analytics project.
Experience the fully interactive production deployment built with Next.js and TypeScript.
Original proof-of-concept version before migration to the modern SaaS architecture.
- Monthly revenue tracking
- Dynamic trend visualization
- Growth indicators
- KPI monitoring
- Top-performing products
- Revenue contribution analysis
- Product search
- Dynamic filtering
- Customer segmentation
- Total customer metrics
- Geographic distribution
- Recent order tracking
- Country-wise revenue
- Sales contribution charts
- Regional business insights
Automatically generates observations such as:
- Highest revenue markets
- Best-selling products
- Revenue concentration
- Customer growth patterns
- Business recommendations
- Responsive layout
- Dark / Light mode
- Glassmorphism UI
- Animated interactions
- Collapsible sidebar
- Mobile navigation drawer
- Notification center
- Profile menu
- CSV export functionality
Users can dynamically filter the entire dashboard using:
- Product Search
- Country Filter
- Timeline Filter
- 7D / 30D / Full Revenue Views
All charts and KPIs update automatically.
CSV Dataset
β
βΌ
Next.js API Route
(/api/analytics)
β
ββββββββββββββββΌβββββββββββββββ
βΌ βΌ βΌ
Revenue Logic Product Logic Customer Logic
β β β
ββββββββββββββββΌβββββββββββββββ
βΌ
Analytics JSON API
β
βΌ
React Dashboard UI
β
ββββββββββββββββΌβββββββββββββββ
βΌ βΌ βΌ
Charts KPI Cards AI Insights
- Next.js 16
- React 19
- TypeScript
- Tailwind CSS
- shadcn/ui
- Recharts
- Lucide React
- Next.js API Routes
- Node.js
- PapaParse
- CSV Processing
- File System API
- Python
- Pandas
- NumPy
- SQL
- Jupyter Notebook
- Matplotlib
- Seaborn
ecommerce-saas-dashboard/
β
βββ app/ # Next.js App Router
β βββ api/
β β βββ analytics/
β β βββ route.ts # Analytics API
β βββ globals.css
β βββ layout.tsx
β βββ page.tsx # Main SaaS Dashboard
β
βββ components/
β βββ ui/ # Reusable UI components
β βββ button.tsx
β βββ card.tsx
β βββ table.tsx
β βββ tabs.tsx
β
βββ dashboard/ # Legacy Streamlit prototype
β βββ app.py
β βββ pages/
β βββ styles/
β
βββ data/
β βββ processed/
β βββ cleaned_online_retail.csv
β
βββ notebooks/ # Data analysis notebooks
β βββ 01_data_inspection.ipynb
β βββ 02_rfm_segmentation.ipynb
β βββ 03_cohort_analysis.ipynb
β βββ 04_CLV.ipynb
β βββ 05_product_analysis.ipynb
β βββ 06_churn_analysis.ipynb
β
βββ outputs/
β βββ figures/ # Generated visualizations
β βββ reports/
β βββ insights.md
β
βββ sql/
β βββ analysis_queries.sql
β
βββ src/
β βββ utils.py
β
βββ public/
βββ package.json
βββ next.config.ts
βββ eslint.config.mjs
βββ tsconfig.json
βββ README.md
This repository consists of two connected layers.
Responsible for:
- Data cleaning
- Revenue aggregation
- RFM segmentation
- CLV analysis
- Cohort analysis
- Customer churn exploration
- SQL analytics
Built using:
- Python
- Pandas
- NumPy
- SQL
- Jupyter Notebook
Provides an interactive analytics experience with:
- KPI monitoring
- Revenue visualization
- Product & customer analytics
- Geographic insights
- Intelligent business insights engine
Built using:
- Next.js
- TypeScript
- Tailwind CSS
- shadcn/ui
- Recharts
GET /api/analyticsThe analytics API processes the cleaned ecommerce dataset and dynamically generates dashboard-ready JSON.
{
"revenue": "...",
"orders": "...",
"customers": "...",
"topProducts": [],
"topCountries": [],
"recentOrders": [],
"aiInsights": []
}Source: Online Retail Dataset (UCI Machine Learning Repository)
| Field | Description |
|---|---|
| Invoice | Transaction ID |
| Customer ID | Unique Customer |
| Description | Product Name |
| Quantity | Units Purchased |
| Revenue | Transaction Revenue |
| Country | Customer Country |
| YearMonth | Aggregated Month |
git clone https://github.com/garv999/ecommerce-product-analytics.gitnpm installnpm run devVisit:
http://localhost:3000
The application is optimized for deployment on Vercel.
npm run buildProduction build is fully optimized and deployment-ready.
- API-first architecture
- CSV-driven analytics pipeline
- Responsive SaaS interface
- Persistent theme management
- Dynamic client-side filtering
- Reusable component system
- Production-ready Next.js structure
Garv Agarwal
Computer Science (Data Science) undergraduate passionate about building AI products, analytics platforms, and modern SaaS applications.
- GitHub: https://github.com/garv999
- LinkedIn: https://www.linkedin.com/in/garv-agarwal-0273161b9
This project is available under the MIT License.
Turning data into business decisions.
Built with Next.js β’ TypeScript β’ Tailwind CSS β’ Recharts β’ Data Analytics