Production-ready AI SaaS Starter Kit for data science teams, analytics dashboards, and business intelligence platforms.
- 🔐 JWT Authentication - Secure user management
- 📊 CSV Data Upload - Drag & drop interface with previews
- 🤖 AutoML Pipeline - Classification, Regression, Clustering
- 📈 Interactive Visualizations - Charts, confusion matrices, ROC curves
- 🧠 AI-Generated Insights - GPT-4 powered analysis
- 📄 Report Export - PDF and CSV downloads
- 🌙 Dark Mode - Responsive design with theme toggle
- 🔍 Data Preprocessing - Auto-detect types, handle missing values
- 📊 Model Performance - Accuracy, RMSE, Silhouette scores
- 🎯 Best Model Selection - Scikit-learn and LazyPredict integration
- 📱 Mobile Responsive - Modern UI with Tailwind CSS
- FastAPI - High-performance Python web framework
- Pandas - Data manipulation and analysis
- Scikit-learn - Machine learning algorithms
- LazyPredict - Automated model selection
- Pydantic - Data validation
- SQLite - Database (easily switchable to PostgreSQL)
- JWT - Authentication
- React - Modern UI framework
- Tailwind CSS - Utility-first styling
- Chart.js - Interactive visualizations
- Axios - HTTP client
- OpenAI GPT-4 - Insight generation
- Plotly - Advanced charts
- PyMuPDF - PDF report generation
- Python 3.8+
- Node.js 16+
- OpenAI API key
- Clone the repository
git clone <repository-url>
cd InsightAI- Backend Setup
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt- Frontend Setup
cd frontend
npm install- Environment Configuration
# Backend (.env)
OPENAI_API_KEY=your_openai_api_key
SECRET_KEY=your_secret_key
DATABASE_URL=sqlite:///./insightai.db
# Frontend (.env)
VITE_API_URL=http://localhost:8000- Run the Application
# Backend (Terminal 1)
cd backend
uvicorn app.main:app --reload
# Frontend (Terminal 2)
cd frontend
npm run devVisit http://localhost:5173 to access the application.
InsightAI/
├── backend/
│ ├── app/
│ │ ├── main.py
│ │ ├── routes/
│ │ │ ├── auth.py
│ │ │ ├── upload.py
│ │ │ ├── ml.py
│ │ │ └── reports.py
│ │ ├── services/
│ │ │ ├── ml_service.py
│ │ │ ├── report_service.py
│ │ │ └── llm_service.py
│ │ ├── models/
│ │ │ ├── user.py
│ │ │ └── dataset.py
│ │ └── utils/
│ │ ├── auth.py
│ │ └── data_processing.py
│ ├── requirements.txt
│ └── .env
├── frontend/
│ ├── src/
│ │ ├── components/
│ │ ├── pages/
│ │ ├── services/
│ │ └── assets/
│ ├── package.json
│ └── .env
└── README.md
- No-code AutoML Dashboards - Enable non-technical users to run ML models
- Internal Analytics SaaS - Business intelligence for teams
- Freelancer Toolkit - Client reporting and analysis
- AI-powered BI Platforms - Enterprise analytics solutions
POST /auth/register- User registrationPOST /auth/login- User loginGET /auth/me- Get current user
POST /upload/csv- Upload CSV datasetGET /datasets- List user datasetsGET /datasets/{id}- Get dataset details
POST /ml/train- Train ML modelGET /ml/results/{id}- Get model resultsGET /ml/insights/{id}- Get AI-generated insights
GET /reports/{id}/pdf- Download PDF reportGET /reports/{id}/csv- Download CSV results
- Dashboard - Overview of datasets and models
- Upload Interface - Drag & drop CSV upload with preview
- Model Selection - Interactive task and algorithm selection
- Results Visualization - Charts, metrics, and insights
- Report Generation - Export functionality
- JWT-based authentication
- Input validation and sanitization
- Rate limiting
- CORS configuration
- Secure file upload handling
- Data Upload - CSV parsing and validation
- Preprocessing - Type detection, missing value handling
- Task Selection - Classification, Regression, Clustering
- Model Training - Automated algorithm selection
- Evaluation - Performance metrics calculation
- Visualization - Charts and plots generation
- Insight Generation - AI-powered analysis
- Report Export - PDF/CSV download
# Production with Gunicorn
pip install gunicorn
gunicorn app.main:app -w 4 -k uvicorn.workers.UvicornWorker# Build for production
npm run build
# Serve with nginx or similar- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
MIT License - see LICENSE file for details
For support, email [email protected] or create an issue in the repository.
Built with ❤️ for the AI/ML community