A modern, production-ready AI-driven analytics dashboard built with Next.js 15, featuring real-time data visualization, predictive insights, and a beautiful UI powered by shadcn/ui.
- 🎨 Modern UI/UX - Beautiful, responsive design with dark mode support
- 📊 Real-time Analytics - Live data updates with animated KPI cards
- 🤖 AI-Powered Insights - Generate predictions and insights using AI
- 📈 Advanced Charts - Multiple chart types (line, bar, pie, area) using Recharts
- 🔍 Data Filtering - Advanced filters, search, and sorting capabilities
- ⚡ Performance Optimized - Built with Next.js 15 App Router and React Server Components
- 🎯 Type Safe - Full TypeScript support with strict mode
- ♿ Accessible - ARIA labels and keyboard navigation support
- 📱 Responsive - Mobile-first design with collapsible sidebar
- Framework: Next.js 15 (App Router)
- Language: TypeScript (strict mode)
- Styling: Tailwind CSS v3
- UI Components: shadcn/ui
- Data Fetching: TanStack Query
- Charts: Recharts
- AI SDK: Vercel AI SDK
- State Management: Zustand
- Icons: Lucide React
- Date Handling: date-fns
- Clone the repository
git clone <your-repo-url>
cd ai-powered-react-dashboard-1- Install dependencies
npm install
# or
yarn install
# or
pnpm install- Set up environment variables
Create a .env.local file in the root directory:
# Optional: OpenAI API Key for real AI predictions
# If not provided, the app will use mock AI responses
OPENAI_API_KEY=your_openai_api_key_here
# Next.js
NEXT_PUBLIC_APP_URL=http://localhost:3000- Run the development server
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 in your browser to see the dashboard.
The easiest way to deploy this dashboard is using Vercel:
- Push your code to GitHub
- Import your repository in Vercel
- Add environment variables (if using OpenAI API)
- Deploy!
# Build the production bundle
npm run build
# Start the production server
npm startai-powered-react-dashboard-1/
├── app/ # Next.js App Router pages
│ ├── overview/ # Overview dashboard page
│ ├── analytics/ # Analytics page with charts
│ ├── predictions/ # AI predictions page
│ ├── settings/ # Settings page
│ ├── layout.tsx # Root layout
│ ├── providers.tsx # React Query & Theme providers
│ └── globals.css # Global styles
├── components/
│ ├── ui/ # shadcn/ui components
│ └── dashboard/ # Dashboard-specific components
├── hooks/ # Custom React hooks
├── lib/ # Utilities, types, mock data
├── stores/ # Zustand stores
└── public/ # Static assets
- Telegram: https://t.me/qahtan_n
- Twitter: https://x.com/qahtann_