A complete production-ready AI SaaS platform built with Next.js, Tailwind CSS, and MySQL
- 🤖 Multi-AI Provider Support - Google Gemini, OpenAI GPT-4, Anthropic Claude, xAI Grok
- 💬 Real-time Streaming - Smooth typing animation with streaming responses
- 🎨 Premium UI/UX - Glassmorphism design, dark/light mode, responsive
- 🔐 Enterprise Security - JWT auth, rate limiting, CSRF protection, XSS prevention
- 💳 Multi-Gateway Payments - Stripe, PayPal, Razorpay, PayHere, Paddle, LemonSqueezy
- 📊 Admin Dashboard - Complete SaaS management panel
- 🛡️ License System - Envato purchase code verification
- 📱 Fully Responsive - Perfect on mobile, tablet, and desktop
- Chat with multiple AI models
- Conversation history with search
- Message editing, deletion, regeneration
- Code syntax highlighting
- Image generation (Pro+)
- Subscription management
- Dark/Light theme
- Revenue analytics dashboard
- User management (ban, roles, etc.)
- AI provider configuration
- Payment gateway settings
- Subscription plan editor
- Coupon management
- Blog/content management
- Support ticket system
- System settings
- Node.js 18+
- MySQL 5.7+
- npm or yarn
- Upload files to your server
- Navigate to your domain - Installer will launch automatically
- Follow the wizard - System checks, license, database, admin setup
- Done! Access your admin panel
# Clone the repository
git clone <repo-url> lumora-ai
cd lumora-ai
# Install dependencies
npm install
# Configure environment
cp .env.example .env.local
# Edit .env.local with your settings
# Import database
mysql -u root -p lumora_ai < src/lib/database/schema.sql
# Run development server
npm run dev
# Build for production
npm run build
npm startlumora-ai/
├── src/
│ ├── app/ # Next.js App Router pages
│ │ ├── (admin)/ # Admin panel routes
│ │ ├── (auth)/ # Authentication pages
│ │ ├── (dashboard)/ # User dashboard routes
│ │ ├── (public)/ # Public marketing pages
│ │ ├── api/ # API routes
│ │ └── install/ # Installation wizard
│ ├── components/ # Reusable UI components
│ │ ├── ui/ # Base UI primitives
│ │ ├── chat/ # Chat interface components
│ │ └── layout/ # Layout components
│ ├── config/ # App configuration
│ ├── hooks/ # Custom React hooks
│ ├── lib/ # Core libraries
│ │ ├── ai-providers/ # AI API integrations
│ │ ├── database/ # MySQL connection & schema
│ │ ├── email/ # Email service
│ │ ├── payments/ # Payment gateways
│ │ └── security/ # Auth, encryption, validation
│ ├── providers/ # React context providers
│ └── utils/ # Utility functions
├── public/ # Static assets
├── .env.example # Environment template
├── next.config.mjs # Next.js configuration
├── tailwind.config.js # Tailwind CSS configuration
└── package.json # Dependencies
Add your API keys in .env.local:
GEMINI_API_KEY- Google AI StudioOPENAI_API_KEY- OpenAI PlatformCLAUDE_API_KEY- Anthropic ConsoleGROK_API_KEY- xAI Platform
Configure payment providers:
STRIPE_SECRET_KEY/STRIPE_PUBLIC_KEYPAYPAL_CLIENT_ID/PAYPAL_CLIENT_SECRETRAZORPAY_KEY_ID/RAZORPAY_KEY_SECRET
Configure transactional emails:
SMTP_HOST,SMTP_PORT,SMTP_USER,SMTP_PASSWORD
- Password hashing with bcrypt (12 rounds)
- JWT token authentication with secure cookies
- Rate limiting on all sensitive endpoints
- CSRF token validation
- XSS prevention through input sanitization
- SQL injection prevention (parameterized queries)
- Security headers (CSP, HSTS-ready)
- Encrypted API key storage
This is a commercial product. A valid Envato purchase code is required for installation.
For support, please create a ticket through the admin panel or contact us via the marketplace.